/* ByteX LinkGen - estilos do front (widget, verificacao, aviso, barra de leitura). Paleta: roxo -> magenta. */
:root { --bx-p:#8b5cf6; --bx-p6:#7c3aed; --bx-p9:#5b21b6; --bx-a:#d946ef; --bx-grad:linear-gradient(135deg,#8b5cf6 0%,#d946ef 100%); --bx-soft:#f5f3ff; --bx-line:#ddd6fe; --bx-ink:#1e1b4b; --bx-mute:#6b7280; --bx-ok:#10b981; --bx-ring:rgba(139,92,246,.35); }
/* ===== Widget principal ===== */
.bx-widget { margin: clamp(20px, 5vw, 40px) auto; padding: clamp(18px, 4vw, 28px); background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(91,33,182,.12); border: 1px solid transparent; background-image: linear-gradient(#fff,#fff), var(--bx-grad); background-origin: border-box; background-clip: padding-box, border-box; text-align: center; position: relative; width: calc(100% - 24px); max-width: 800px; box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bx-ad { margin: 20px auto; min-height: 100px; width: 100%; max-width: 100%; overflow: hidden; text-align: center; display: flex !important; justify-content: center; align-items: center; }
.bx-interstitial-overlay { position: fixed; inset: 0; background: rgba(30,27,75,.88); z-index: 999999; display: flex; justify-content: center; align-items: center; padding: 12px; box-sizing: border-box; }
.bx-interstitial-box { background: #fff; max-width: 700px; width: 100%; border-radius: 20px; padding: clamp(16px, 4vw, 30px); text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; border-top: 4px solid var(--bx-p); }
.bx-interstitial-box h3 { margin: 0 0 10px; color: var(--bx-ink); font-size: clamp(18px, 5vw, 22px); }
.bx-interstitial-box .bx-ad { margin: 15px 0; min-height: 100px; }
.bx-interstitial-box .bx-close-btn { margin-top: 20px; padding: 14px 32px; min-height: 48px; max-width: 100%; border: none; border-radius: 50px; background: #e5e7eb; color: #9ca3af; font-weight: 700; font-size: 16px; cursor: not-allowed; transition: .3s; }
.bx-interstitial-box .bx-close-btn.active { background: var(--bx-grad); color: #fff; cursor: pointer; box-shadow: 0 8px 20px -6px var(--bx-ring); }
.bx-interstitial-box .bx-close-btn.active:hover { filter: brightness(1.06); }
.bx-interstitial-timer { font-size: 14px; color: #4b5563; margin: 10px 0; }
.bx-interstitial-ad-label { font-size: 12px; color: #9ca3af; margin-bottom: 5px; }
.bx-interstitial-msg { color: var(--bx-mute); font-size: 14px; margin: 0 0 12px; }
#bx-int-status { display: none; font-size: 13px; font-weight: 700; color: var(--bx-p); margin: 10px 0; }
#bx-int-hint { display: none; font-size: 12px; color: var(--bx-p); margin: 8px 0; font-weight: 600; }
.bx-step { font-size: 11px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; background: var(--bx-grad); padding: 5px 14px; border-radius: 20px; display: inline-block; margin-bottom: 18px; box-shadow: 0 4px 12px -4px var(--bx-ring); }
.bx-action-btn { display: inline-block; max-width: 100%; box-sizing: border-box; margin-top: 10px; padding: clamp(14px, 4vw, 20px) clamp(20px, 7vw, 40px); min-height: 48px; border-radius: 50px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: clamp(13px, 3.8vw, 16px); line-height: 1.25; text-decoration: none !important; border: none; cursor: default; transition: all .4s ease; user-select: none; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere; }
.bx-locked-red { background: #fdf4ff; color: #a21caf !important; border: 2px solid #f0abfc; animation: bx-pulse-red 2s infinite; cursor: pointer; }
.bx-locked-gray { background: var(--bx-soft); color: #a78bfa !important; border: 2px solid var(--bx-line); cursor: not-allowed; }
.bx-locked-blue { background: #ede9fe; color: var(--bx-p6) !important; border: 2px solid #c4b5fd; animation: bx-pulse-blue 2s infinite; cursor: pointer; }
.bx-action-btn.active { background: var(--bx-grad); color: #fff !important; border: none; opacity: 1; pointer-events: auto; cursor: pointer; box-shadow: 0 10px 25px -5px var(--bx-ring); transform: translateY(-2px); animation: none; }
.bx-action-btn.active:hover { transform: translateY(-4px); box-shadow: 0 15px 30px -5px rgba(139,92,246,.55); }
.bx-action-btn:focus-visible, .bx-verify-label:focus-within { outline: 3px solid var(--bx-ring); outline-offset: 3px; }
@keyframes bx-pulse-red { 0% { box-shadow: 0 0 0 0 rgba(217,70,239,.4); } 50% { box-shadow: 0 0 0 10px rgba(217,70,239,0); } 100% { box-shadow: 0 0 0 0 rgba(217,70,239,0); } }
@keyframes bx-pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(139,92,246,.4); } 50% { box-shadow: 0 0 0 10px rgba(139,92,246,0); } 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); } }
#bx-cap-box { margin-bottom: 20px; background: var(--bx-soft); border: 1px solid var(--bx-line); padding: 15px; border-radius: 14px; }
#bx-cap-box p { margin: 0 0 10px; font-size: 14px; color: #4b5563; }
#bx-ans { width: 72px; min-height: 44px; text-align: center; border: 2px solid var(--bx-line); border-radius: 10px; font-weight: bold; font-size: 16px; padding: 4px; box-sizing: border-box; }
#bx-ans:focus { outline: none; border-color: var(--bx-p); box-shadow: 0 0 0 3px var(--bx-ring); }
.bx-cap-ok { background: var(--bx-grad); color: #fff; border: none; padding: 0 22px; min-height: 44px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; }
.bx-verify-bottom { margin: clamp(20px, 5vw, 40px) auto; padding: clamp(16px, 4vw, 30px); width: calc(100% - 24px); background: var(--bx-soft); border: 2px dashed var(--bx-p); border-radius: 16px; text-align: center; max-width: 600px; box-sizing: border-box; box-shadow: 0 4px 15px rgba(91,33,182,.08); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bx-verify-bottom h4 { margin: 0 0 15px 0; color: var(--bx-ink); font-size: clamp(16px, 4.5vw, 20px); font-weight: 800; text-transform: uppercase; }
.bx-verify-label { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; box-sizing: border-box; background: #fff; padding: 14px 20px; min-height: 48px; border-radius: 12px; border: 1px solid var(--bx-line); cursor: pointer; font-size: 16px; font-weight: 600; color: #4b5563; transition: all .3s; box-shadow: 0 2px 5px rgba(0,0,0,.02); text-align: left; }
.bx-verify-label:hover { border-color: var(--bx-p); }
.bx-verify-checkbox { width: 26px; height: 26px; flex-shrink: 0; margin-right: 12px; cursor: pointer; accent-color: var(--bx-p); }
.bx-success-msg { color: var(--bx-ok); font-weight: 800; font-size: 18px; display: none; margin-top: 15px; }
.bx-btn-wrapper { position: relative; display: inline-block; max-width: 100%; }
.bx-inv-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.001; z-index: 99999; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.bx-floating-bar, .bx-widget--floating { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 9999; background: #fff; padding: 12px 20px; width: calc(100% - 24px); max-width: 520px; margin: 0; box-sizing: border-box; border-radius: 20px; box-shadow: 0 10px 40px rgba(91,33,182,.25); border: 1px solid var(--bx-line); text-align: center; animation: none !important; }
.bx-widget--floating .bx-step { margin-bottom: 8px; }
.bx-widget--floating .bx-progress { margin-bottom: 10px; }
.bx-widget--floating .bx-dest { display: none; }
.bx-ad-slot.bx-ad-highlight { border-radius: 14px; box-shadow: 0 0 0 3px var(--bx-p), 0 10px 28px rgba(139,92,246,.28); transition: box-shadow .3s ease; }
@keyframes bx-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bx-action-btn.bx-shake { animation: bx-shake .35s ease; }
@media (max-width: 420px) { .bx-widget, .bx-verify-bottom { width: calc(100% - 16px); border-radius: 16px; } .bx-btn-wrapper, .bx-action-btn { display: block; width: 100%; } .bx-verify-label { width: 100%; justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .bx-locked-red, .bx-locked-blue { animation: none; } .bx-action-btn { transition: none; } }
/* ===== Verificacao Nao sou um robo ===== */
#bx-hv-overlay { position: fixed; inset: 0; z-index: 2147483000; background: radial-gradient(circle at 20% 10%, #ede9fe 0%, #f5f3ff 45%, #fae8ff 100%); display: flex; align-items: center; justify-content: center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding: 16px; box-sizing: border-box; overflow-y: auto; }
#bx-hv-card { background: #fff; width: 100%; max-width: 400px; border-radius: 20px; box-shadow: 0 20px 50px rgba(91,33,182,.18); padding: 26px clamp(16px, 5vw, 22px) 24px; text-align: center; box-sizing: border-box; border-top: 5px solid var(--bx-p); }
#bx-hv-card h2 { margin: 6px 0 8px; font-size: clamp(19px, 5.5vw, 22px); font-weight: 800; color: var(--bx-ink); }
#bx-hv-card p { margin: 0 0 18px; font-size: 14px; color: var(--bx-mute); }
.bx-hv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bx-soft); border: 1px solid var(--bx-line); border-radius: 12px; padding: 14px; min-height: 56px; cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.bx-hv-row:hover, .bx-hv-row:focus-visible { border-color: var(--bx-p); box-shadow: 0 0 0 3px var(--bx-ring); outline: none; }
.bx-hv-left { display: flex; align-items: center; gap: 12px; font-size: clamp(15px, 4.5vw, 17px); font-weight: 600; color: #1f2937; }
#bx-hv-box { width: 30px; height: 30px; border: 2.5px solid #a78bfa; border-radius: 7px; background: #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .2s; }
#bx-hv-box svg { display: none; }
.bx-hv-ok #bx-hv-box { background: var(--bx-grad); border-color: transparent; }
.bx-hv-ok #bx-hv-box svg { display: block; }
.bx-hv-busy #bx-hv-box { border-color: var(--bx-p); border-top-color: transparent; border-radius: 50%; animation: bx-hv-spin .7s linear infinite; }
.bx-hv-shield { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--bx-p6); gap: 2px; flex-shrink: 0; }
#bx-hv-msg { min-height: 18px; margin-top: 12px; font-size: 13px; color: #dc2626; }
.bx-hv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@keyframes bx-hv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bx-hv-busy #bx-hv-box { animation-duration: 2s; } }
/* ===== Popup de aviso ===== */
#bx-notice-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(30,27,75,.78); display: none; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#bx-notice-box { background: #fff; width: 100%; max-width: 420px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; padding: 26px clamp(16px, 5vw, 22px) 22px; box-sizing: border-box; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); text-align: left; border-top: 5px solid var(--bx-p); }
#bx-notice-icon { width: 56px; height: 56px; border-radius: 50%; background: #fef3c7; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
#bx-notice-box h3 { margin: 0 0 12px; font-size: clamp(18px, 5.5vw, 21px); line-height: 1.25; font-weight: 800; color: var(--bx-ink); text-align: center; }
#bx-notice-box p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: #374151; }
#bx-notice-btn { display: block; width: 100%; margin-top: 18px; padding: 15px 18px; min-height: 50px; border: 0; border-radius: 12px; background: var(--bx-grad); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -8px var(--bx-ring); -webkit-tap-highlight-color: transparent; }
#bx-notice-btn:active { filter: brightness(.92); }
#bx-notice-btn:focus-visible { outline: 3px solid var(--bx-ring); outline-offset: 2px; }
/* ===== Barra de leitura ===== */
#bx-rd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; background: #fff; border-top: 3px solid transparent; border-image: var(--bx-grad) 1; box-shadow: 0 -8px 28px rgba(91,33,182,.14); padding: 12px clamp(12px, 4vw, 16px) calc(12px + env(safe-area-inset-bottom)); box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--bx-ink); }
#bx-rd-bar .bx-rd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 15px; }
#bx-rd-bar .bx-rd-head strong { font-weight: 700; }
#bx-rd-bar .bx-rd-rem { font-size: 13px; color: var(--bx-mute); white-space: nowrap; }
#bx-rd-bar .bx-rd-rem b { color: var(--bx-p6); }
#bx-rd-bar .bx-rd-cols { display: flex; gap: 16px; }
#bx-rd-bar .bx-rd-col { flex: 1; min-width: 0; }
#bx-rd-bar .bx-rd-lbl { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--bx-mute); margin-bottom: 4px; }
#bx-rd-bar .bx-rd-track { position: relative; height: 9px; background: #ede9fe; border-radius: 99px; overflow: visible; }
#bx-rd-bar .bx-rd-fill { height: 100%; width: 0; background: linear-gradient(90deg, #8b5cf6, #d946ef); border-radius: 99px; transition: width .25s linear; box-shadow: 0 0 10px rgba(139,92,246,.45); }
#bx-rd-bar .bx-rd-mark { position: absolute; top: -3px; width: 3px; height: 15px; background: var(--bx-ink); border-radius: 2px; }
#bx-rd-bar .bx-rd-status { margin-top: 8px; font-size: 12px; color: var(--bx-mute); }
#bx-rd-bar.bx-rd-done .bx-rd-status { color: var(--bx-p6); font-weight: 600; }
@media (max-width: 360px) { #bx-rd-bar .bx-rd-cols { flex-direction: column; gap: 8px; } #bx-rd-bar .bx-rd-head { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { #bx-rd-bar .bx-rd-fill { transition: none; } }

/* ===== Slots de anuncio: espaco reservado, rotulo e carregamento sob demanda ===== */
.bx-ad-slot { margin: 25px auto; width: 100%; max-width: 100%; text-align: center; }
.bx-ad-tag { display: block; font: 600 10px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #a78bfa; margin: 0 0 6px; }
.bx-ad-slot .bx-ad { margin: 0 auto; min-height: var(--bx-ad-h, 100px); transition: min-height .25s ease; }
/* Responsivo: reserva padrao (300x250) e o JS ajusta a altura ao anuncio real */
.bx-ad-slot .bx-ad--resp { min-height: 250px; }
.bx-ad-slot .bx-ad--resp > * { max-width: 100%; }
.bx-ad.bx-loading { background: linear-gradient(100deg, #f5f3ff 30%, #ede9fe 50%, #f5f3ff 70%); background-size: 220% 100%; animation: bx-shimmer 1.6s linear infinite; border-radius: 12px; }
.bx-ad.bx-ready { background: none; animation: none; }
@keyframes bx-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ===== Progresso entre etapas ===== */
.bx-progress { display: flex; gap: 6px; max-width: 320px; margin: 0 auto 18px; }
.bx-progress i { flex: 1; height: 6px; border-radius: 99px; background: var(--bx-line); position: relative; overflow: hidden; }
.bx-progress i.done { background: var(--bx-grad); }
.bx-progress i.now::after { content: ""; position: absolute; inset: 0; background: var(--bx-grad); transform-origin: left center; animation: bx-seg 1.4s ease-in-out infinite alternate; }
@keyframes bx-seg { from { transform: scaleX(.25); } to { transform: scaleX(.8); } }

/* ===== Previa do destino ===== */
.bx-dest { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; margin: 16px auto 0; padding: 9px 14px; box-sizing: border-box; background: var(--bx-soft); border: 1px solid var(--bx-line); border-radius: 12px; font-size: 13px; color: var(--bx-mute); text-align: left; }
.bx-dest-ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bx-grad); color: #fff; font: 800 13px/26px system-ui, sans-serif; text-align: center; text-transform: uppercase; }
.bx-dest b { color: var(--bx-ink); overflow-wrap: anywhere; }

/* ===== Contador circular ===== */
.bx-ring { display: none; position: relative; width: 84px; height: 84px; margin: 4px auto 6px; }
.bx-ring.on { display: block; }
.bx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.bx-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.bx-ring .tr { stroke: var(--bx-line); }
.bx-ring .pg { stroke: url(#bx-ring-grad); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1s linear; }
.bx-ring-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 22px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--bx-ink); }
.bx-ring-n svg { width: 34px; height: 34px; transform: none; display: none; }
.bx-ring.done .pg { stroke-dashoffset: 0; }
.bx-ring.done .bx-ring-n span { display: none; }
.bx-ring.done .bx-ring-n svg { display: block; animation: bx-pop .5s cubic-bezier(.34,1.56,.64,1); }

/* ===== Microinteracoes ===== */
.bx-widget { animation: bx-in .45s ease both; }
@keyframes bx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bx-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.bx-action-btn.active.bx-pop { animation: bx-pop .5s cubic-bezier(.34,1.56,.64,1); }
.bx-success-msg { animation: bx-pop .4s cubic-bezier(.34,1.56,.64,1); }
.bx-confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.bx-confetti i { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; background: var(--c, #8b5cf6); opacity: 0; animation: bx-conf .95s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bx-conf { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.bx-btn-wrapper { position: relative; }

@media (prefers-reduced-motion: reduce) {
    .bx-widget, .bx-progress i.now::after, .bx-ad.bx-loading, .bx-success-msg, .bx-action-btn.active.bx-pop, .bx-ring.done .bx-ring-n svg { animation: none !important; }
    .bx-ring .pg { transition: none; }
    .bx-confetti { display: none; }
}

/* ===== Estratégia Tela Única (Mobile-First, Cadeados Duplos + Anúncios Adaptativos) ===== */
#bx-ss-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 2147483640;
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 6px calc(32px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #F4F4F5;
    /* Pré-carregado fora da tela com largura real (availableWidth > 0) para anúncios 0ms sem erro de AdSense */
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 105%, 0);
    transition: opacity .28s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
}
#bx-ss-overlay.bx-ss-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}
.bx-ss-shell {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}
.bx-ss-header {
    background: #14141A;
    border: 1px solid #27272F;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.bx-ss-top-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.bx-ss-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(139, 92, 246, .16);
    color: #C4B5FD;
    border: 1px solid rgba(139, 92, 246, .35);
}
.bx-ss-pill--locks {
    background: rgba(245, 158, 11, .14);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, .35);
}
.bx-ss-pill--locks.is-all-open {
    background: rgba(16, 185, 129, .16);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, .42);
}
.bx-ss-title {
    margin: 0 0 8px !important;
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.015em;
}
.bx-ss-inst {
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #D4D4D8 !important;
    background: #1C1C24;
    border: 1px solid #2E2E38;
    border-radius: 12px;
    padding: 10px 12px;
}
.bx-ss-card {
    position: relative;
    background: #14141A;
    border: 2px solid #2E2E38;
    border-radius: 16px;
    padding: 12px 0 10px;
    box-sizing: border-box;
    transition: border-color .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.bx-ss-card.is-active {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .2), 0 14px 32px rgba(0, 0, 0, .45);
}
.bx-ss-card.is-unlocked {
    border-color: #10B981;
    background: linear-gradient(180deg, rgba(16, 185, 129, .08) 0%, #14141A 100%);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .18);
}
.bx-ss-card-head {
    padding: 0 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.bx-ss-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: rgba(239, 68, 68, .14);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, .35);
}
.bx-ss-card.is-unlocked .bx-ss-lock-badge {
    background: rgba(16, 185, 129, .18);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, .45);
}
.bx-ss-lock-badge svg {
    flex-shrink: 0;
}
.bx-ss-lock-badge .ico-open { display: none; }
.bx-ss-card.is-unlocked .bx-ss-lock-badge .ico-closed { display: none; }
.bx-ss-card.is-unlocked .bx-ss-lock-badge .ico-open { display: inline-block; }

.bx-ss-callout {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #F4F4F5;
    margin: 2px 0 0;
}
.bx-ss-card.is-unlocked .bx-ss-callout {
    color: #6EE7B7;
}
.bx-ss-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #C4B5FD;
    margin-top: 2px;
    animation: bx-ss-bounce 1.2s ease-in-out infinite;
}
.bx-ss-card.is-unlocked .bx-ss-arrow,
.bx-ss-card.is-waiting-prev .bx-ss-arrow {
    display: none;
}
@keyframes bx-ss-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Container adaptativo do anúncio: aceita 300x250, 336x280, 350x350, 336x550, 300x600 ou 100% responsivo sem cortar */
.bx-ss-ad-body {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 6px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
}
.bx-ss-ad-micro {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #71717A;
    margin-bottom: 5px;
}
.bx-ad.bx-ss-ad-unit {
    margin: 0 auto !important;
    width: auto !important;
    min-width: 280px;
    max-width: 100% !important;
    min-height: 200px;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.bx-ss-step-guard {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(9, 9, 11, 0.74);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
}
.bx-ss-card.is-waiting-prev .bx-ss-step-guard {
    display: flex;
}
.bx-ss-step-guard span {
    background: #18181F;
    border: 1px solid #3F3F46;
    color: #E4E4E7;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.bx-ss-status {
    padding: 6px 12px 2px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: #A1A1AA;
    line-height: 1.4;
}
.bx-ss-status.is-warn { color: #FCD34D; }
.bx-ss-status.is-ok { color: #6EE7B7; font-weight: 700; }

/* Bloco final: contagem regressiva 30–40s + botão verde com cadeado aberto */
#bx-ss-final-box {
    display: none;
    background: #14141A;
    border: 2px solid #10B981;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(16, 185, 129, .18);
}
#bx-ss-final-box.is-visible {
    display: block;
    animation: bx-in .35s ease both;
}
.bx-ss-timer-msg {
    font-size: 14px;
    font-weight: 700;
    color: #E4E4E7;
    margin: 0 0 10px;
    line-height: 1.4;
}
.bx-ss-timer-num {
    font-size: 32px;
    font-weight: 900;
    color: #6EE7B7;
    line-height: 1.1;
    margin: 0 0 10px;
    font-variant-numeric: tabular-nums;
}
.bx-ss-timer-bar {
    width: 100%;
    height: 8px;
    background: #27272F;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 4px;
}
.bx-ss-timer-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 99px;
    transition: width .35s linear;
}
#bx-ss-advance-btn {
    display: none;
    width: 100%;
    min-height: 54px;
    padding: 15px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF !important;
    font-size: clamp(15px, 4.4vw, 17px);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 26px -4px rgba(16, 185, 129, .5);
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    transition: transform .2s ease, filter .2s ease;
}
#bx-ss-advance-btn.is-ready {
    display: inline-flex;
    animation: bx-pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
#bx-ss-advance-btn:active {
    transform: scale(.98);
    filter: brightness(.95);
}
#bx-ss-advance-btn svg {
    flex-shrink: 0;
}
@media (min-width: 520px) {
    #bx-ss-overlay {
        padding: 24px 16px 40px;
    }
    .bx-ss-header {
        padding: 20px 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #bx-ss-overlay { transition: none; }
    .bx-ss-arrow, #bx-ss-advance-btn.is-ready, #bx-ss-final-box.is-visible { animation: none !important; }
    .bx-ss-timer-fill { transition: none; }
}
