/* NebulaTools AI — centralized Adsterra placements */
.nebula-ad{display:flex;justify-content:center;align-items:center;width:100%;margin:24px auto;overflow:hidden;min-height:50px;text-align:center}
.nebula-ad iframe{border:0;display:block;margin:auto;max-width:100%}
.nebula-ad-label{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;opacity:.55;margin-bottom:6px}
.nebula-ad-desktop{display:flex}.nebula-ad-mobile{display:none}
.nebula-ad-native{display:block;min-height:120px;max-width:1100px}
.ad-slot{background:transparent!important;border:0!important;color:transparent!important;min-height:0!important;padding:0!important}
@media(max-width:767px){.nebula-ad-desktop{display:none}.nebula-ad-mobile{display:flex}.nebula-ad{margin:18px auto}.nebula-ad-native{min-height:180px}}

/* Direct Adsterra embeds: scripts execute in the real page context, not srcdoc. */
.nebula-ad-responsive,.nebula-ad-square{display:block;text-align:center;overflow-x:auto}
.nebula-ad-responsive iframe,.nebula-ad-square iframe{display:block;margin:0 auto;border:0;max-width:100%}

/* NebulaTools FINAL monetization and homepage layout */
/* Empty sidebar ad placeholders were removed; center the real tool experience. */
.tool-layout{grid-template-columns:minmax(0,1120px)!important;justify-content:center!important;max-width:1160px!important}
.side-ad{display:none!important}

/* Popular tools are intentionally near the top while the complete library remains below. */
.home-popular-tools{padding-top:40px!important;padding-bottom:48px!important}
.home-popular-tools .popular-grid{max-width:1180px;margin:24px auto 0}
.home-popular-tools .card{min-height:210px}
.home-section-action{display:flex;justify-content:center;margin-top:28px}

/* Honest, clearly labelled SmartLink placement — never disguised as a tool action. */
.sponsored-offers-strip{padding:0 20px 44px}
.sponsored-offers-inner{width:min(1100px,100%);margin:auto;border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.sponsored-offers-inner h3{margin:5px 0 6px;font-size:20px}
.sponsored-offers-inner p{margin:0;color:var(--muted);line-height:1.55}
.sponsored-label{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-weight:800}
.sponsored-btn{white-space:nowrap}

/* Keep working banners visible and centered without broken placeholder styling. */
.nebula-ad:empty{display:none!important;min-height:0!important;margin:0!important}
@media(max-width:930px){.tool-layout{display:block!important;max-width:none!important}}
@media(max-width:700px){
 .sponsored-offers-inner{align-items:flex-start;flex-direction:column}
 .sponsored-btn{width:100%;text-align:center}
 .home-popular-tools{padding-top:28px!important}
}
