/* ============================================================
   AD BANNERS — Tipe 1 (Promo Bestindotech) & Tipe 2 (Brand Space)
   Mengisi placeholder iklan selama AdSense/ad network belum aktif.
   ============================================================ */

.bit-bn {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  gap: 16px;
  padding: 16px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.bit-bn-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #ff0033;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  position: relative;
  z-index: 1;
}

.bit-bn-logo svg { width: 100%; height: 100%; display: block; }

.bit-bn-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(239,68,68,.28);
  position: relative;
  z-index: 1;
}

.bit-bn-icon svg { width: 55%; height: 55%; }

.bit-bn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.bit-bn-title {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
}

.bit-bn-sub {
  font-weight: 600;
  font-size: 12px;
  opacity: .88;
  line-height: 1.3;
}

.bit-bn-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ff0033;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,0,51,.35);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.bit-bn-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
  font-size: 10px;
  white-space: nowrap;
  z-index: 2;
}

.bit-bn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: bitBnDotPulse 1.8s ease-in-out infinite;
}

@keyframes bitBnDotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ---------- Tipe 1: Promo Bestindotech ---------- */
.bit-bn--promo {
  background: linear-gradient(120deg, #1d4ed8 0%, #1d9bd1 35%, #0ea5a5 70%, #1d4ed8 100%);
  background-size: 240% 240%;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 120, 158, .25);
}

.bit-bn--promo .bit-bn-title,
.bit-bn--promo .bit-bn-sub {
  color: #ffffff;
}

.bit-bn--promo.bit-bn--animated {
  animation: bitBnGradientShift 9s ease infinite;
}

.bit-bn--promo.bit-bn--animated .bit-bn-cta {
  animation: bitBnPulse 2.6s ease-in-out infinite;
}

.bit-bn--promo:hover {
  box-shadow: 0 10px 24px rgba(23, 120, 158, .32);
}

@keyframes bitBnGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes bitBnPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(255,0,51,.35), 0 0 0 0 rgba(255,255,255,.45); }
  50%      { box-shadow: 0 4px 12px rgba(255,0,51,.35), 0 0 0 6px rgba(255,255,255,0); }
}

.bit-bn--promo:hover .bit-bn-cta {
  transform: translateY(-1px);
}

.bit-bn--promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.22), transparent 38%),
    radial-gradient(circle at 4% 92%, rgba(255,255,255,.14), transparent 34%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Tipe 2: Brand Ad Space ---------- */
.bit-bn--brand {
  background-color: #ffffff;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(120deg, #1d9bd1, #a855f7, #f59e0b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  color: #1f2937;
}

.bit-bn--brand:hover {
  box-shadow: 0 10px 22px rgba(29,155,209,.18);
}

.bit-bn--brand .bit-bn-title {
  color: #111827;
}

.bit-bn--brand .bit-bn-sub {
  color: #6b7280;
  opacity: 1;
}

.bit-bn-cta--brand {
  background: linear-gradient(120deg, #1d9bd1, #17789e);
  box-shadow: 0 6px 16px rgba(23,120,158,.35);
}

.bit-bn--brand:hover .bit-bn-cta--brand {
  transform: translateY(-1px);
}

/* ---------- Shape: BAR (tipis & lebar) — leaderboard, sticky bottom ---------- */
.bit-bn--bar {
  padding: 10px 20px !important;
  gap: 14px !important;
  justify-content: flex-start !important;
}

.bit-bn--bar .bit-bn-logo  { width: 34px; height: 34px; padding: 7px; }
.bit-bn--bar .bit-bn-icon  { width: 36px; height: 36px; border-radius: 11px; }
.bit-bn--bar .bit-bn-sub   { display: none; }
.bit-bn--bar .bit-bn-badge { display: none; }
.bit-bn--bar .bit-bn-title { font-size: 15px; }
.bit-bn--bar .bit-bn-cta   { height: 34px; padding: 0 16px; font-size: 13px; }

@media (max-width: 600px) {
  .bit-bn--bar { padding: 8px 14px !important; gap: 10px !important; }
  .bit-bn--bar .bit-bn-logo  { width: 28px; height: 28px; padding: 6px; }
  .bit-bn--bar .bit-bn-icon  { width: 30px; height: 30px; }
  .bit-bn--bar .bit-bn-title { font-size: 13px; }
  .bit-bn--bar .bit-bn-cta   { height: 30px; padding: 0 12px; font-size: 12px; }
}

.bit-sticky-ads-inner .bit-bn--bar,
.bit-sticky-ads-mobile-inner .bit-bn--bar {
  border-radius: 0;
}

/* ---------- Shape: BIG (kotak besar) — billboard home & in-article ---------- */
.bit-bn--big {
  padding: 26px 36px !important;
  gap: 24px !important;
  justify-content: center !important;
}

.bit-bn--big .bit-bn-logo  { width: 60px; height: 60px; padding: 15px; }
.bit-bn--big .bit-bn-icon  { width: 62px; height: 62px; border-radius: 18px; }
.bit-bn--big .bit-bn-title { font-size: 19px; }
.bit-bn--big .bit-bn-sub   { font-size: 13px; }
.bit-bn--big .bit-bn-cta   { height: 42px; padding: 0 22px; font-size: 13px; margin-left: 0; }
.bit-bn--big .bit-bn-text  { max-width: 320px; }
.bit-bn--big .bit-bn-badge { top: 14px; left: 14px; transform: none; }

@media (max-width: 600px) {
  .bit-bn--big {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 48px 16px 20px !important;
    gap: 12px !important;
  }
  .bit-bn--big .bit-bn-logo  { width: 46px; height: 46px; padding: 11px; }
  .bit-bn--big .bit-bn-icon  { width: 48px; height: 48px; }
  .bit-bn--big .bit-bn-title { font-size: 15px; }
  .bit-bn--big .bit-bn-sub   { font-size: 12px; display: block; }
  .bit-bn--big .bit-bn-cta   { height: 36px; padding: 0 18px; font-size: 12px; margin-left: 0; }
  .bit-bn--big .bit-bn-text  { max-width: 100%; align-items: center; }
  .bit-bn--big .bit-bn-badge { top: 12px; left: 50%; transform: translateX(-50%); }
}

/* ---------- Shape: TOWER (vertikal sempit) — sidebar skyscraper 160x600 ---------- */
.bit-bn--tower {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  padding: 30px 16px 22px !important;
  gap: 16px !important;
}

.bit-bn--tower .bit-bn-text  { align-items: center; }
.bit-bn--tower .bit-bn-logo  { width: 48px; height: 48px; padding: 12px; }
.bit-bn--tower .bit-bn-icon  { width: 48px; height: 48px; border-radius: 14px; }
.bit-bn--tower .bit-bn-title { font-size: 14px; }
.bit-bn--tower .bit-bn-sub   { font-size: 11px; }
.bit-bn--tower .bit-bn-cta   { height: 36px; padding: 0 18px; font-size: 11.5px; margin-left: 0; }
.bit-bn--tower .bit-bn-badge { top: 12px; left: 50%; transform: translateX(-50%); font-size: 9.5px; }

/* Brand tower (sidebar) — konten lebih padat, disusun dari atas, bukan numpuk di tengah */
.bit-bn--brand.bit-bn--tower {
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 40px 14px 20px !important;
}

.bit-bn--brand.bit-bn--tower .bit-bn-icon { width: 40px; height: 40px; }
.bit-bn--brand.bit-bn--tower .bit-bn-cta  { margin-top: auto; }

.bit-bn-tower-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1.3;
}

.bit-bn-tower-divider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: rgba(31,41,55,.10);
  flex-shrink: 0;
}

.bit-bn-tower-rotator {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 28px;
  flex-shrink: 0;
}

.bit-bn-tower-rot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #1d9bd1;
  white-space: nowrap;
}

.bit-bn-tower-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  color: #374151;
  flex-shrink: 0;
}

.bit-bn-tower-feat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bit-bn-tower-feat i {
  position: relative;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  display: inline-block;
}

.bit-bn-tower-feat i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #10b981;
  border-bottom: 2px solid #10b981;
  transform: rotate(45deg);
}

/* Judul+sub gantian (promo shape "big" & "tower") — reuse animasi bitBnRot1-4 */
.bit-bn-text--multirot {
  position: relative;
  flex-shrink: 0;
}

.bit-bn--big .bit-bn-text--multirot {
  height: 64px;
  flex: 1 1 auto;
  min-width: 0;
}

.bit-bn--tower .bit-bn-text--multirot {
  height: 92px;
  width: 100%;
}

.bit-bn-rotpair {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.bit-bn--tower .bit-bn-rotpair { align-items: center; text-align: center; }

@media (max-width: 600px) {
  .bit-bn--big .bit-bn-text--multirot {
    height: 56px;
    width: 100%;
    flex: 0 0 auto;
  }
  .bit-bn--big .bit-bn-rotpair { align-items: center; text-align: center; }
}

/* ---------- Foto random dari artikel (promo) ---------- */
.bit-bn--photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.bit-bn--photo.bit-bn--animated {
  animation: none !important;
}

.bit-bn--photo::before {
  display: none;
}

.bit-bn-photo-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bit-bn-photo-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
}

.bit-bn-photo-rot--1 { animation: bitBnPhotoRot1 12s infinite; }
.bit-bn-photo-rot--2 { animation: bitBnPhotoRot2 12s infinite; }
.bit-bn-photo-rot--3 { animation: bitBnPhotoRot3 12s infinite; }
.bit-bn-photo-rot--4 { animation: bitBnPhotoRot4 12s infinite; }

@keyframes bitBnPhotoRot1 {
  0%, 19%  { opacity: 1; }
  23%, 96% { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes bitBnPhotoRot2 {
  0%, 19%  { opacity: 0; }
  23%, 44% { opacity: 1; }
  48%, 96% { opacity: 0; }
  100%     { opacity: 0; }
}

@keyframes bitBnPhotoRot3 {
  0%, 44%  { opacity: 0; }
  48%, 69% { opacity: 1; }
  73%, 96% { opacity: 0; }
  100%     { opacity: 0; }
}

@keyframes bitBnPhotoRot4 {
  0%, 69%   { opacity: 0; }
  73%, 94%  { opacity: 1; }
  98%, 100% { opacity: 0; }
}

.bit-bn-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,9,20,.52);
  z-index: 0;
  pointer-events: none;
}

/* Overlay udah pekat merata (lihat $style_attr di functions.php),
   teks cukup dikasih text-shadow tebal, gak perlu chip terpisah lagi. */
.bit-bn--big.bit-bn--photo .bit-bn-title,
.bit-bn--big.bit-bn--photo .bit-bn-sub {
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.45);
}

.bit-bn--big.bit-bn--photo .bit-bn-cta {
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}

/* Avatar host — cuma dipakai di shape "big" */
.bit-bn-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
  background: #1d9bd1;
}

.bit-bn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .bit-bn-avatar { width: 46px; height: 46px; }
}

/* Thumbnail kecil — dipakai di shape "bar" & "tower" */
.bit-bn-thumb {
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.bit-bn--tower .bit-bn-thumb {
  width: 100%;
  height: 90px;
  border-radius: 12px;
}

.bit-bn-thumb-stack {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.bit-bn--tower .bit-bn-thumb-stack {
  width: 100%;
  height: 90px;
  border-radius: 12px;
}

/* ---------- Dekorasi & rotasi teks — khusus shape "bar" promo ---------- */
.bit-bn-decor {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: bitBnMarquee 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.bit-bn-decor-half {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 50px;
  font-weight: 900;
  color: rgba(255,255,255,.09);
  letter-spacing: -1px;
}

.bit-bn-decor-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
  z-index: 0;
}

.bit-bn-decor-circle--1 { left: 34%; top: -34px; width: 100px; height: 100px; }
.bit-bn-decor-circle--2 { left: 58%; bottom: -40px; width: 70px; height: 70px; background: rgba(255,255,255,.07); }
.bit-bn-decor-circle--3 { left: 78%; top: -20px; width: 36px; height: 36px; background: transparent; border: 2px solid rgba(255,255,255,.18); }

.bit-bn-shine {
  position: absolute;
  top: 0;
  left: -30%;
  height: 100%;
  width: 22%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  animation: bitBnShine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.bit-bn-shine--brand {
  background: linear-gradient(100deg, transparent, rgba(29,155,209,.12), transparent);
}

.bit-bn-logo--pulse {
  animation: bitBnIconScale 2.4s ease-in-out infinite;
}

.bit-bn-icon--wiggle {
  animation: bitBnWiggle 4s ease-in-out infinite;
}

.bit-bn-text--rotator {
  position: relative;
  flex: 1;
  height: 32px;
  min-width: 0;
}

.bit-bn-rot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 17px;
  white-space: nowrap;
  z-index: 1;
}

.bit-bn-rot--1 { animation: bitBnRot1 12s infinite; }
.bit-bn-rot--2 { animation: bitBnRot2 12s infinite; }
.bit-bn-rot--3 { animation: bitBnRot3 12s infinite; }
.bit-bn-rot--4 { animation: bitBnRot4 12s infinite; }

/* ---------- Rotasi badge & judul — khusus shape "big" brand ---------- */
.bit-bn-badge--rot1 { animation: bitBnBadgeRot1 9s infinite; }
.bit-bn-badge--rot2 { animation: bitBnBadgeRot2 9s infinite; }

.bit-bn-text--rotator2 {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 46px;
}

.bit-bn--big .bit-bn-text--rotator2 { max-width: 330px; }

.bit-bn-rot2 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.bit-bn-rot2--1 { animation: bitBnRot2a 9s infinite; }
.bit-bn-rot2--2 { animation: bitBnRot2b 9s infinite; }

@keyframes bitBnMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes bitBnShine {
  0%   { left: -30%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

@keyframes bitBnIconScale {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@keyframes bitBnWiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  84%           { transform: rotate(-8deg); }
  88%           { transform: rotate(8deg); }
  92%           { transform: rotate(-5deg); }
  96%           { transform: rotate(0deg); }
}

@keyframes bitBnRot1 {
  0%, 19%  { opacity: 1; transform: translateX(0); }
  23%, 96% { opacity: 0; transform: translateX(-14px); }
  100%     { opacity: 1; transform: translateX(0); }
}

@keyframes bitBnRot2 {
  0%, 19%  { opacity: 0; transform: translateX(14px); }
  23%, 44% { opacity: 1; transform: translateX(0); }
  48%, 96% { opacity: 0; transform: translateX(-14px); }
  100%     { opacity: 0; transform: translateX(14px); }
}

@keyframes bitBnRot3 {
  0%, 44%  { opacity: 0; transform: translateX(14px); }
  48%, 69% { opacity: 1; transform: translateX(0); }
  73%, 96% { opacity: 0; transform: translateX(-14px); }
  100%     { opacity: 0; transform: translateX(14px); }
}

@keyframes bitBnRot4 {
  0%, 69%   { opacity: 0; transform: translateX(14px); }
  73%, 94%  { opacity: 1; transform: translateX(0); }
  98%, 100% { opacity: 0; transform: translateX(-14px); }
}

@keyframes bitBnBadgeRot1 {
  0%, 42%  { opacity: 1; }
  50%, 96% { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes bitBnBadgeRot2 {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}

@keyframes bitBnRot2a {
  0%, 42%  { opacity: 1; transform: translateX(0); }
  50%, 92% { opacity: 0; transform: translateX(-14px); }
  100%     { opacity: 1; transform: translateX(0); }
}

@keyframes bitBnRot2b {
  0%, 42%  { opacity: 0; transform: translateX(14px); }
  50%, 92% { opacity: 1; transform: translateX(0); }
  100%     { opacity: 0; transform: translateX(14px); }
}

@media (max-width: 600px) {
  .bit-bn-decor-half { font-size: 32px; }
  .bit-bn-decor-circle--1 { width: 70px; height: 70px; top: -24px; }
  .bit-bn-decor-circle--2 { width: 50px; height: 50px; bottom: -28px; }
  .bit-bn-decor-circle--3 { width: 26px; height: 26px; }
  .bit-bn-text--rotator { height: 38px; }
  .bit-bn-rot {
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    padding: 0 2px;
  }

  .bit-bn-text--rotator2 {
    width: 100%;
    height: 70px;
  }
  .bit-bn-rot2 {
    text-align: center;
    align-items: center;
    white-space: normal;
  }
}
