/* Blackbox conversion layer (site3). Loaded after the site's own CSS; unlayered, so it wins over Tailwind utilities. */

/* ---------- Primary = every free-group button is solid white ---------- */
header a[href*="t.me/blackboxtradingfree"],
.hero-cta-row a[href*="t.me/blackboxtradingfree"],
#access a[href*="t.me/blackboxtradingfree"]{
  background:#fff;color:#050505;border-color:#fff;font-weight:600;
}
header a[href*="t.me/blackboxtradingfree"]:hover,
.hero-cta-row a[href*="t.me/blackboxtradingfree"]:hover,
#access a[href*="t.me/blackboxtradingfree"]:hover{background:#e6e6e6;color:#050505}

/* ---------- Secondary = premium / admin buttons are outlined ---------- */
#access a[href*="black_box_admin"]{
  background:transparent;color:var(--color-ink);border:1.5px solid rgba(255,255,255,.55);
}
#access a[href*="black_box_admin"]:hover{background:#fff;color:#050505}

/* ---------- Hero CTA: Telegram icon + reassurance line ---------- */
.hero-cta-row a[href*="t.me/blackboxtradingfree"]{
  position:relative;gap:10px;padding-inline:20px;font-size:15px;
}
.hero-cta-row a[href*="t.me/blackboxtradingfree"]::before{
  content:"";flex:none;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.94 4.3 18.7 19.6c-.24 1.08-.88 1.35-1.79.84l-4.94-3.64-2.38 2.29c-.26.26-.49.48-1 .48l.36-5.03 9.15-8.27c.4-.35-.09-.55-.62-.2L6.17 13.2 1.3 11.68c-1.06-.33-1.08-1.06.22-1.57L20.55 2.8c.88-.33 1.65.2 1.39 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.94 4.3 18.7 19.6c-.24 1.08-.88 1.35-1.79.84l-4.94-3.64-2.38 2.29c-.26.26-.49.48-1 .48l.36-5.03 9.15-8.27c.4-.35-.09-.55-.62-.2L6.17 13.2 1.3 11.68c-1.06-.33-1.08-1.06.22-1.57L20.55 2.8c.88-.33 1.65.2 1.39 1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-cta-row a[href*="t.me/blackboxtradingfree"]::after{
  content:"Free \00B7  Opens Telegram \00B7  Leave anytime";
  position:absolute;left:0;top:calc(100% + 9px);
  font-size:12px;font-weight:400;letter-spacing:.01em;color:var(--color-muted);white-space:nowrap;pointer-events:none;
}

/* Tagline: keep it clear of the CTA row and readable over the glass; the return figure carries its disclaimer */
.hero-tagline::after{content:"*Historical average. Not a guarantee of future results.";display:block;margin-top:10px;max-width:46ch;font-size:11px;font-weight:400;line-height:1.4;letter-spacing:0;color:var(--color-muted);text-shadow:none}
.hero-tagline{max-width:min(36vw,560px);font-size:clamp(22px,2.3vw,38px);text-shadow:0 2px 22px rgba(0,0,0,.8)}

/* ---------- Phones ---------- */
@media (max-width:640px){
  .hero-arrows,.hero-dots{display:none}
  .hero .hero-figure,.hero-line{display:none}
  .hero-cta-row{left:var(--pad-x);right:var(--pad-x);bottom:46px;flex-wrap:nowrap}
  .hero-cta-row a[href*="t.me/blackboxtradingfree"]{flex:1 1 auto;width:100%;justify-content:center;height:54px;font-size:16px}
  .hero-cta-row a[href*="t.me/blackboxtradingfree"]::after{left:0;right:0;text-align:center}
  .hero-tagline{max-width:none;right:var(--pad-x);bottom:126px;font-size:21px;line-height:1.25}

  /* round floating Telegram button -> full-width sticky bar */
  a.fixed.bottom-5.right-5[href*="t.me/blackboxtradingfree"]{
    left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom));
    width:auto;height:54px;border-radius:12px;display:flex;gap:10px;justify-content:center;align-items:center;
    background:#fff;color:#050505;font:600 16px/1 var(--font-sans);
  }
  a.fixed.bottom-5.right-5[href*="t.me/blackboxtradingfree"]::after{content:"Join the free group"}
  a.fixed.bottom-5.right-5[href*="t.me/blackboxtradingfree"] svg{width:20px;height:20px}
}
@media (max-width:640px) and (max-height:700px){
  .hero-tagline{font-size:19px;bottom:118px}
  .hero-cta-row{bottom:40px}
  .hero-cta-row a[href*="t.me/blackboxtradingfree"]{height:50px}
}
@media (min-width:641px) and (max-width:900px){
  .hero-tagline{max-width:70vw}
}
/* hide the floating button once the final call to action is on screen */
html.bbx-near-end a.fixed.bottom-5.right-5[href*="t.me/blackboxtradingfree"]{opacity:0!important;pointer-events:none!important}

/* ---------- Instant first screen while the 3D loads ---------- */
.bbx-pre{position:relative;min-height:100svh;background:#050505;color:#f2f2f2;opacity:0;animation:bbx-in .35s ease .6s forwards;font-family:var(--font-sans)}
@keyframes bbx-in{to{opacity:1}}
.bbx-pre-logo{position:absolute;top:22px;left:var(--pad-x,20px);display:flex;align-items:center;gap:10px;font-size:15px}
.bbx-pre-logo svg{width:28px;height:28px}
.bbx-pre-mark{position:absolute;left:50%;top:44%;width:min(40svh,56vw);height:auto;transform:translate(-50%,-50%);opacity:.14}
.bbx-pre-bottom{position:absolute;left:var(--pad-x,20px);right:var(--pad-x,20px);bottom:46px;max-width:560px}
.bbx-pre-tag{font-size:clamp(21px,2.3vw,38px);font-weight:300;line-height:1.25;margin-bottom:24px}
.bbx-pre-tag strong{display:block;font-weight:700}
.bbx-pre-foot{display:block;margin-top:10px;font-size:11px;line-height:1.4;color:#a6a6a6}
.bbx-pre-cta{display:flex;align-items:center;justify-content:center;height:54px;border-radius:6px;background:#fff;color:#050505;font-weight:600;font-size:16px;text-decoration:none;max-width:360px}
.bbx-pre-note{display:block;margin-top:9px;font-size:12px;color:#a6a6a6;max-width:360px;text-align:center}
