/*!
 * BlockTicker v2 — Shared Component CSS
 * Applies to all pages that carry the new design system.
 * Requires bt-tokens.css (loaded first) for CSS custom properties.
 *
 * Sections:
 *   §1  Base reset & global
 *   §2  .wrap container
 *   §3  Ticker strip
 *   §4  Navigation
 *   §5  Buttons
 *   §6  Breadcrumb
 *   §7  Footer
 *   §8  Responsive
 */

/* ============================================================
   §1  BASE RESET & GLOBAL
   ============================================================ */

body.btv2 *,
body.btv2 *::before,
body.btv2 *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.btv2 {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

body.btv2 a { color: inherit; text-decoration: none; }
body.btv2 button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body.btv2 ::selection { background: var(--btc); color: #0a0a0a; }

/* ============================================================
   §2  .wrap CONTAINER
   ============================================================ */

body.btv2 .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

body.btv2 .container {
  max-width: var(--maxw-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   §3  TICKER STRIP
   ============================================================ */

body.btv2 .ticker {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,10,.7);
  backdrop-filter: blur(12px);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}

body.btv2 .ticker__live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  border-right: 1px solid var(--line);
  color: var(--neon);
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

body.btv2 .ticker__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: btv2-pulse 1.6s ease-in-out infinite;
}

@keyframes btv2-pulse { 0%,100% { opacity:1 } 50% { opacity:.4 } }

body.btv2 .ticker__track {
  display: flex;
  gap: 36px;
  padding-left: 24px;
  animation: btv2-scroll 60s linear infinite;
  white-space: nowrap;
}

@keyframes btv2-scroll { from { transform:translateX(0) } to { transform:translateX(-50%) } }

body.btv2 .ticker__item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--txt-2);
}

body.btv2 .ticker__sym { color: var(--txt); font-weight: 600; }
body.btv2 .ticker__chg--up   { color: var(--up); }
body.btv2 .ticker__chg--down { color: var(--down); }

/* ============================================================
   §4  NAVIGATION
   ============================================================ */

/* Sticky wrapper that holds ticker + nav as one band */
body.btv2 .bt-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

body.btv2 .nav {
  position: relative;
  z-index: auto;
  background: rgba(7,8,10,.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

body.btv2 .nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

body.btv2 .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--txt);
}

body.btv2 .brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg,var(--btc),#ff6b00);
  display: grid;
  place-items: center;
  color: #0a0a0a;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(247,147,26,.4);
  flex-shrink: 0;
}

body.btv2 .brand__name { font-size: 15px; }
body.btv2 .brand__name b { color: var(--btc); }

body.btv2 .nav__links {
  display: flex;
  gap: 4px;
  font-size: 13.5px;
  color: var(--txt-2);
}

body.btv2 .nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .15s color,.15s background;
}

body.btv2 .nav__links a:hover { color: var(--txt); background: rgba(255,255,255,.04); }
body.btv2 .nav__links a.active { color: var(--txt); }
body.btv2 .nav__caret { font-size: 9px; color: var(--txt-3); }

body.btv2 .nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.btv2 .nav__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  width: 260px;
  color: var(--txt-3);
  font-size: 13px;
  cursor: text;
}

body.btv2 .nav__search kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--txt-3);
}

/* ============================================================
   §5  BUTTONS
   ============================================================ */

body.btv2 .btn,
body.btv2 .btlp .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  /* v119.28.55 — !important on visibility props because legacy `.btn { background: var(--accent); color: var(--bg); }`
     in landing-revamp.css (line 83) makes default buttons invisible on this dark theme. */
  color: var(--txt) !important;
  border: 1px solid var(--line-2) !important;
  background: var(--panel) !important;
  transition: .15s all;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

body.btv2 .btn:hover,
body.btv2 .btlp .btn:hover {
  color: var(--txt) !important;
  border-color: var(--line-strong) !important;
  background: var(--panel-2) !important;
}

body.btv2 .btn--primary,
body.btv2 .btlp .btn--primary {
  /* v119.28.55 — !important to win over the new .btn !important above. */
  background: var(--btc) !important;
  color: #0a0a0a !important;
  border-color: var(--btc) !important;
}
body.btv2 .btn--primary:hover,
body.btv2 .btlp .btn--primary:hover {
  background: var(--btc-soft) !important;
  border-color: var(--btc-soft) !important;
  box-shadow: 0 0 24px rgba(247,147,26,.35);
}

body.btv2 .btn--neon,
body.btv2 .btlp .btn--neon {
  background: var(--neon) !important;
  color: #0a0a0a !important;
  border-color: var(--neon) !important;
}
body.btv2 .btn--neon:hover,
body.btv2 .btlp .btn--neon:hover { box-shadow: 0 0 24px rgba(184,255,60,.4); }

body.btv2 .btn--lg { padding: 12px 20px; font-size: 14px; border-radius: 12px; }
body.btv2 .btn--ghost { background: transparent; border-color: var(--line); }

/* ============================================================
   §6  BREADCRUMB
   ============================================================ */

body.btv2 .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 0;
  font-size: 12px;
  color: var(--txt-3);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

body.btv2 .crumb a:hover { color: var(--txt-2); }
body.btv2 .crumb .sep { opacity: .4; }

body.btv2 .crumb__right {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

body.btv2 .crumb__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--up);
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* ============================================================
   §7  SHARED FOOTER
   ============================================================ */

body.btv2 .foot {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr repeat(4,1fr);
  gap: 48px;
}

body.btv2 .foot__brand p {
  font-size: 13px;
  color: var(--txt-3);
  max-width: 30ch;
  margin-top: 18px;
  line-height: 1.6;
}

body.btv2 .foot__socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

body.btv2 .foot__socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--txt-3);
  transition: .15s;
}

body.btv2 .foot__socials a:hover { color: var(--btc); border-color: var(--btc); }
body.btv2 .foot__socials svg { width: 14px; height: 14px; }

body.btv2 .foot__col h4 {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: .14em;
  color: var(--txt-3);
  text-transform: uppercase;
  margin-bottom: 14px;
}

body.btv2 .foot__col ul { list-style: none; display: grid; gap: 8px; }
body.btv2 .foot__col a { font-size: 13px; color: var(--txt-2); }
body.btv2 .foot__col a:hover { color: var(--txt); }

body.btv2 .foot__legal {
  grid-column: 1/-1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-3);
}

/* Disclaimer strip */
body.btv2 .disclaim {
  margin: 48px 0;
  padding: 18px 24px;
  background: rgba(255,176,32,.04);
  border: 1px solid rgba(255,176,32,.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--txt-2);
  line-height: 1.55;
}

body.btv2 .disclaim__ico { color: var(--warn); font-size: 18px; }
body.btv2 .disclaim b { color: var(--txt); }
body.btv2 .disclaim a {
  color: var(--btc);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(247,147,26,.3);
}

/* Chip / pill */
body.btv2 .chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--txt-2);
  letter-spacing: .03em;
}

body.btv2 .chip--rank  { color: var(--btc); border-color: rgba(247,147,26,.3); background: rgba(247,147,26,.08); }
body.btv2 .chip--live  { color: var(--neon); border-color: rgba(184,255,60,.3); background: rgba(184,255,60,.06); }
body.btv2 .chip--live::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  margin-right: 5px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--neon);
}

/* ============================================================
   §8  RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  body.btv2 .nav__links,
  body.btv2 .nav__search { display: none; }
  body.btv2 .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body.btv2 .foot { grid-template-columns: 1fr; }
}

/* ============================================================
   §9  LEGACY CHROME COMPATIBILITY
   Maps old btlp class names used in templates/landing.php chrome
   to v2 visual equivalents under body.btv2 scope.
   ============================================================ */

/* Nav brand */
body.btv2 .nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--txt);
}

body.btv2 .nav__logo,
body.btv2 .brand__mark,
.btlp .nav__logo,
.btlp .brand__mark {
  /* v119.28.56 — !important + multi-scope so the orange tile wins on every
     page (signal archive, asset pages, AI tools) regardless of legacy CSS
     that still sets background: var(--accent) globally. */
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--btc, #F7931A), #ff6b00) !important;
  display: grid !important;
  place-items: center !important;
  color: #0a0a0a !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  box-shadow: 0 0 24px rgba(247,147,26,.4) !important;
  flex-shrink: 0;
}

body.btv2 .nav__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--txt);
}

body.btv2 .nav__name span { color: var(--btc); }

/* Nav actions (right side) */
body.btv2 .nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Nav login/signup buttons inside chrome */
body.btv2 .nav__login {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--txt-2);
  border-radius: 8px;
  transition: .15s color;
}

body.btv2 .nav__login:hover { color: var(--txt); }

body.btv2 .nav__signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--btc);
  background: var(--btc);
  color: #0a0a0a;
  transition: .15s all;
}

body.btv2 .nav__signup:hover {
  background: var(--btc-soft);
  border-color: var(--btc-soft);
  box-shadow: 0 0 20px rgba(247,147,26,.3);
}

/* Nav icon button (search) */
body.btv2 .nav__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--txt-3);
  cursor: pointer;
  transition: .15s;
}

body.btv2 .nav__icon-btn:hover { color: var(--txt); border-color: var(--line-strong); }

/* Lang select */
body.btv2 .bt-lang-select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--txt-2);
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* Avatar */
body.btv2 .nav__avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  color: var(--txt-2);
  cursor: pointer;
  transition: .15s;
}

body.btv2 .nav__avatar-btn:hover { border-color: var(--line-strong); color: var(--txt); }

body.btv2 .nav__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btc), #ff6b00);
  display: grid;
  place-items: center;
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
}

/* Hamburger */
body.btv2 .nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

body.btv2 .nav__hamburger span {
  height: 2px;
  background: var(--txt-2);
  border-radius: 2px;
  transition: .15s;
}

@media (max-width: 900px) {
  body.btv2 .nav__hamburger { display: flex; }
  body.btv2 .nav__cta-default { display: none; }
}

/* Nav links — style both <a> and <button> nav items identically */
body.btv2 .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--txt-2);
  background: none;
  border: 0;
  cursor: pointer;
  transition: .15s color, .15s background;
  line-height: 1;
  white-space: nowrap;
}
body.btv2 .nav__link:hover { color: var(--txt); background: rgba(255,255,255,.04); }
body.btv2 .nav__group:focus-within .nav__link { color: var(--txt); }
body.btv2 .nav__group:focus-within .nav__caret { color: var(--neon); }

/* Ticker v1 compatibility: inline .ticker__live inside .ticker__track */
body.btv2 .ticker__track > .ticker__live {
  display: none; /* hidden when used inline; visible only as a sibling of .ticker__track */
}

/* Disclaim strip (legacy) */
body.btv2 .disclaim-strip {
  background: rgba(255,176,32,.04);
  border-bottom: 1px solid rgba(255,176,32,.12);
  font-size: 12px;
  color: var(--txt-2);
  line-height: 1.55;
}

body.btv2 .disclaim-strip__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}

body.btv2 .disclaim-strip__ico { color: var(--warn); font-size: 14px; }
body.btv2 .disclaim-strip__link { color: var(--btc); margin-left: auto; white-space: nowrap; }
