/*
 * CryptoLoveYou — Neural Heart global identity v2
 * Applied after legacy page CSS so every public surface shares one brand system.
 */

:root {
  --clu-v2-bg: #03060d;
  --clu-v2-bg-elevated: #07101d;
  --clu-v2-panel: rgba(8, 14, 26, 0.88);
  --clu-v2-panel-strong: rgba(10, 17, 31, 0.96);
  --clu-v2-gold: #e8b84c;
  --clu-v2-gold-soft: #f4d58a;
  --clu-v2-cyan: #28d7ff;
  --clu-v2-violet: #8b5cf6;
  --clu-v2-green: #39ee9b;
  --clu-v2-red: #ff6684;
  --clu-v2-white: #f7f9fd;
  --clu-v2-text: #c4ccda;
  --clu-v2-muted: #8491a7;
  --clu-v2-line: rgba(132, 163, 212, 0.17);
  --clu-v2-line-gold: rgba(232, 184, 76, 0.3);
  --clu-v2-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --clu-v2-radius: 20px;
}

html[data-clu-brand="neural-heart-v2"] {
  color-scheme: dark;
  background: var(--clu-v2-bg);
}

html[data-clu-brand="neural-heart-v2"] body,
body.clu-brand-v2 {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(232, 184, 76, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(40, 215, 255, 0.09), transparent 30rem),
    radial-gradient(circle at 72% 78%, rgba(139, 92, 246, 0.08), transparent 32rem),
    linear-gradient(145deg, #03060d 0%, #050914 50%, #03060d 100%) !important;
  color: var(--clu-v2-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.clu-brand-v2::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(116, 145, 190, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 145, 190, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

body.clu-brand-v2 a { color: inherit; }
body.clu-brand-v2 a:hover { color: var(--clu-v2-gold-soft); }
body.clu-brand-v2 h1,
body.clu-brand-v2 h2,
body.clu-brand-v2 h3,
body.clu-brand-v2 h4,
body.clu-brand-v2 h5,
body.clu-brand-v2 h6 { color: var(--clu-v2-white); }
body.clu-brand-v2 p,
body.clu-brand-v2 li { color: var(--clu-v2-text); }

/* One global product header */
body.clu-brand-v2 .topbar,
body.clu-brand-v2 nav,
body.clu-brand-v2 .nav,
body.clu-brand-v2 .navbar,
body.clu-brand-v2 .site-nav,
body.clu-brand-v2 #masthead,
body.clu-brand-v2 .smart-head-main,
body.clu-brand-v2 .smart-head-mid,
body.clu-brand-v2 .smart-head-top {
  background: rgba(3, 7, 15, 0.91) !important;
  border-color: var(--clu-v2-line) !important;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

body.clu-brand-v2 .nav {
  min-height: 70px;
  border-bottom: 1px solid var(--clu-v2-line-gold) !important;
}

body.clu-brand-v2 .nav .container { min-height: 70px; height: auto; }
body.clu-brand-v2 .nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--clu-v2-white) !important;
}
body.clu-brand-v2 .nav-logo-img,
body.clu-brand-v2 .nav-logo > img,
body.clu-brand-v2 nav .custom-logo,
body.clu-brand-v2 nav .site-logo img {
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 13px rgba(232, 184, 76, 0.48));
}
body.clu-brand-v2 .nav-logo-text {
  color: var(--clu-v2-white) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}
body.clu-brand-v2 .nav-logo-sub {
  margin-top: 2px;
  color: var(--clu-v2-gold) !important;
  font: 700 0.55rem/1.2 "DM Mono", ui-monospace, monospace !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}
body.clu-brand-v2 .nav-links a,
body.clu-brand-v2 .nav-links button,
body.clu-brand-v2 .topbar a { color: #9ba8bd !important; }
body.clu-brand-v2 .nav-links a:hover,
body.clu-brand-v2 .nav-links button:hover,
body.clu-brand-v2 .nav-links a.active,
body.clu-brand-v2 .topbar a:hover { color: var(--clu-v2-white) !important; }
body.clu-brand-v2 .dropdown {
  background: rgba(5, 10, 19, 0.98) !important;
  border: 1px solid var(--clu-v2-line-gold) !important;
  border-radius: 14px !important;
  box-shadow: var(--clu-v2-shadow) !important;
}

/* Page identity and hero surfaces */
body.clu-brand-v2 .hero,
body.clu-brand-v2 [class*="hero-"],
body.clu-brand-v2 .site-hero,
body.clu-brand-v2 .page-hero,
body.clu-brand-v2 .category-hero,
body.clu-brand-v2 .article-header,
body.clu-brand-v2 .page-header {
  border-color: var(--clu-v2-line) !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(40, 215, 255, 0.13), transparent 25rem),
    radial-gradient(circle at 18% 80%, rgba(139, 92, 246, 0.12), transparent 28rem),
    linear-gradient(145deg, rgba(8, 14, 26, 0.97), rgba(4, 8, 16, 0.98)) !important;
}
body.clu-brand-v2 .article-header,
body.clu-brand-v2 .page-header,
body.clu-brand-v2 .category-hero {
  position: relative;
  overflow: hidden;
}
body.clu-brand-v2 .article-header::before,
body.clu-brand-v2 .page-header::before,
body.clu-brand-v2 .category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(117, 148, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 148, 196, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(100deg, #000, transparent 74%);
}
body.clu-brand-v2 h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
body.clu-brand-v2 .category-kicker,
body.clu-brand-v2 .eyebrow,
body.clu-brand-v2 .badge,
body.clu-brand-v2 .tag {
  color: var(--clu-v2-gold) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Glass intelligence system across legacy and new layouts */
body.clu-brand-v2 .card,
body.clu-brand-v2 .panel,
body.clu-brand-v2 .widget,
body.clu-brand-v2 .article-card,
body.clu-brand-v2 .future-card,
body.clu-brand-v2 .cat-card,
body.clu-brand-v2 .vid-card,
body.clu-brand-v2 .ai-feat,
body.clu-brand-v2 .hero-main,
body.clu-brand-v2 .pc,
body.clu-brand-v2 .bybit,
body.clu-brand-v2 .stock-feature-card,
body.clu-brand-v2 .stock-story-card,
body.clu-brand-v2 .signal-card,
body.clu-brand-v2 [class*="-panel"] {
  background: linear-gradient(145deg, rgba(10, 17, 31, 0.94), rgba(6, 11, 21, 0.9)) !important;
  border: 1px solid var(--clu-v2-line) !important;
  border-radius: var(--clu-v2-radius) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 22px 66px rgba(0, 0, 0, 0.26) !important;
}
body.clu-brand-v2 .card:hover,
body.clu-brand-v2 .article-card:hover,
body.clu-brand-v2 .future-card:hover,
body.clu-brand-v2 .cat-card:hover,
body.clu-brand-v2 .vid-card:hover,
body.clu-brand-v2 .signal-card:hover {
  border-color: rgba(40, 215, 255, 0.34) !important;
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.36), 0 0 28px rgba(40, 215, 255, 0.05) !important;
}
body.clu-brand-v2 .sec-title {
  color: var(--clu-v2-white) !important;
  border-color: var(--clu-v2-gold) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em !important;
}
body.clu-brand-v2 .date,
body.clu-brand-v2 .meta,
body.clu-brand-v2 .muted,
body.clu-brand-v2 small { color: var(--clu-v2-muted) !important; }

/* Buttons and actions */
body.clu-brand-v2 .future-btn,
body.clu-brand-v2 .btn-primary,
body.clu-brand-v2 .cta-button,
body.clu-brand-v2 .ad-btn,
body.clu-brand-v2 button[type="submit"],
body.clu-brand-v2 .wp-block-button__link {
  border: 1px solid rgba(232, 184, 76, 0.46) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #edc35f, #bd8422) !important;
  color: #07090d !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 34px rgba(189, 132, 34, 0.18) !important;
}
body.clu-brand-v2 .future-btn:hover,
body.clu-brand-v2 .btn-primary:hover,
body.clu-brand-v2 .cta-button:hover,
body.clu-brand-v2 .ad-btn:hover,
body.clu-brand-v2 button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
body.clu-brand-v2 input,
body.clu-brand-v2 textarea,
body.clu-brand-v2 select {
  border: 1px solid var(--clu-v2-line) !important;
  border-radius: 10px !important;
  background: rgba(4, 9, 18, 0.92) !important;
  color: var(--clu-v2-white) !important;
}
body.clu-brand-v2 input:focus,
body.clu-brand-v2 textarea:focus,
body.clu-brand-v2 select:focus {
  border-color: var(--clu-v2-cyan) !important;
  outline: 2px solid rgba(40, 215, 255, 0.12) !important;
}

/* Article and legal reading surfaces */
body.clu-brand-v2 .article-container,
body.clu-brand-v2 .article-content,
body.clu-brand-v2 .entry-content,
body.clu-brand-v2 .future-article-shell,
body.clu-brand-v2 main > article {
  color: var(--clu-v2-text) !important;
}
body.clu-brand-v2 .article-content a,
body.clu-brand-v2 .entry-content a,
body.clu-brand-v2 main > article a { color: var(--clu-v2-cyan) !important; }
body.clu-brand-v2 blockquote {
  border-left: 3px solid var(--clu-v2-gold) !important;
  background: rgba(232, 184, 76, 0.055) !important;
  color: var(--clu-v2-white) !important;
}
body.clu-brand-v2 table {
  overflow: hidden;
  border: 1px solid var(--clu-v2-line) !important;
  border-radius: 14px;
  background: rgba(6, 11, 21, 0.82) !important;
}
body.clu-brand-v2 th { background: rgba(40, 215, 255, 0.075) !important; color: var(--clu-v2-white) !important; }
body.clu-brand-v2 td,
body.clu-brand-v2 th { border-color: var(--clu-v2-line) !important; }

/* Consistent branded footer, injected without deleting existing navigation */
body.clu-brand-v2 footer {
  margin-top: 64px;
  padding-top: 0 !important;
  border-top: 1px solid var(--clu-v2-line-gold) !important;
  background: rgba(2, 5, 11, 0.97) !important;
  color: var(--clu-v2-text) !important;
}
.clu-footer-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 34px;
  padding: 30px 22px 24px;
  border-bottom: 1px solid var(--clu-v2-line);
}
.clu-footer-identity { display: flex; align-items: center; gap: 15px; }
.clu-footer-identity img {
  width: 58px !important;
  height: 58px !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 14px rgba(232, 184, 76, 0.4));
}
.clu-footer-name { display: block; color: var(--clu-v2-white); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.clu-footer-tagline { display: block; margin-top: 3px; color: var(--clu-v2-gold); font: 700 0.62rem/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.clu-footer-proof { max-width: 420px; color: var(--clu-v2-muted); font-size: 0.78rem; text-align: right; }

body.clu-brand-v2 ::selection { background: rgba(232, 184, 76, 0.28); color: var(--clu-v2-white); }
body.clu-brand-v2 ::-webkit-scrollbar { width: 8px; }
body.clu-brand-v2 ::-webkit-scrollbar-track { background: #03060d; }
body.clu-brand-v2 ::-webkit-scrollbar-thumb { background: linear-gradient(var(--clu-v2-gold), var(--clu-v2-violet)); border-radius: 999px; }

@media (max-width: 780px) {
  body.clu-brand-v2 .nav { min-height: 62px; }
  body.clu-brand-v2 .nav .container { min-height: 62px; }
  body.clu-brand-v2 .nav-logo-img,
  body.clu-brand-v2 .nav-logo > img { width: 44px !important; height: 44px !important; }
  body.clu-brand-v2 .nav-logo-sub { display: block !important; font-size: 0.48rem !important; letter-spacing: 0.07em !important; }
  body.clu-brand-v2 h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .clu-footer-brandbar { display: block; padding-inline: 18px; }
  .clu-footer-proof { margin-top: 18px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  body.clu-brand-v2 *,
  body.clu-brand-v2 *::before,
  body.clu-brand-v2 *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
