/* ==========================================================================
   POLMEXBOT PRODUCTION — Editorial Layer (Blog, 16 Articles, Daily AI Brief, Privacy)
   Celestial obsidian & liquid-gold glass, Space Grotesk display typography,
   zero dark cloud blobs, zero aurora blobs, zero orange/cyan clashes,
   and crisp mobile ergonomics.
   ========================================================================== */

:root {
  --pmx-gold: #f0c64f;
  --pmx-gold-hi: #fae39e;
  --pmx-gold-deep: #cf9224;
  --pmx-gold-line: rgba(240, 198, 79, 0.34);
  --pmx-hair: rgba(235, 214, 170, 0.14);
  --pmx-ink: #fbf8f1;
  --pmx-ink-2: #d3c6ae;
  --pmx-ink-3: #9d8f76;
  --pmx-up: #34e08a;
  --pmx-down: #f45872;
}

body.pmx-ed-v2 {
  background:
    radial-gradient(1000px 600px at 14% -6%, rgba(240, 198, 79, 0.14), transparent 62%),
    radial-gradient(860px 640px at 90% 14%, rgba(34, 58, 108, 0.24), transparent 64%),
    radial-gradient(860px 620px at 50% 108%, rgba(168, 118, 34, 0.14), transparent 62%),
    linear-gradient(175deg, #0d0c0f 0%, #12100d 46%, #0c0c10 100%) !important;
  color: var(--pmx-ink-2) !important;
  overflow-x: hidden !important;
  position: relative;
}

/* Kill legacy clouds, brown sky gradients, and neon aurora blobs */
body.pmx-ed-v2::before,
body.pmx-ed-v2::after,
body.pmx-ed-v2 #k2-aurora,
body.pmx-ed-v2 #k2-stars,
body.pmx-ed-v2 #k2-glow {
  display: none !important;
}

.pmx-app-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 44vw at 48% -12vh, rgba(240, 198, 79, 0.10), transparent 70%),
    radial-gradient(48vw 48vw at 96% 96%, rgba(44, 78, 138, 0.15), transparent 70%);
}

#pmxSpaceCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

body.pmx-ed-v2 > .navbar,
body.pmx-ed-v2 > header {
  position: relative;
  z-index: 200 !important;
}

body.pmx-ed-v2 > main,
body.pmx-ed-v2 > footer {
  position: relative;
  z-index: 2;
}

body.pmx-ed-v2 .markets-dropdown a,
body.pmx-ed-v2 .games-dropdown a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

/* Typography upgrade: Space Grotesk display + Nunito clean body */
body.pmx-ed-v2 h1,
body.pmx-ed-v2 h2,
body.pmx-ed-v2 h3,
body.pmx-ed-v2 h4,
body.pmx-ed-v2 .nav-label,
body.pmx-ed-v2 .chip,
body.pmx-ed-v2 .neon-static,
body.pmx-ed-v2 .nav-card,
body.pmx-ed-v2 .navbar a,
body.pmx-ed-v2 .navbar summary {
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* ── Floating Glass Pill Navbar ──────────────────────────────────────────── */
body.pmx-ed-v2 > .navbar {
  background: linear-gradient(180deg, rgba(28, 24, 18, 0.88), rgba(15, 14, 16, 0.94)) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  border: 1px solid rgba(240, 198, 79, 0.32) !important;
  border-top-color: rgba(250, 227, 158, 0.50) !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 218, 0.12),
    0 16px 40px -18px rgba(0, 0, 0, 0.90) !important;
  width: min(1120px, calc(100% - 24px)) !important;
  margin: 14px auto 0 !important;
}

body.pmx-ed-v2 .navbar .gradient-text,
body.pmx-ed-v2 .navbar .font-bold {
  background: linear-gradient(125deg, #fbf0ce 0%, #f0c64f 52%, #cf9224 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 700 !important;
}

body.pmx-ed-v2 .navbar a.btn-ghost {
  color: var(--pmx-ink-2) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

body.pmx-ed-v2 .navbar a.btn-ghost:hover {
  background: rgba(240, 198, 79, 0.12) !important;
  color: #ffffff !important;
}

body.pmx-ed-v2 .navbar a.btn-ghost[aria-current="page"] {
  background: rgba(240, 198, 79, 0.16) !important;
  border: 1px solid rgba(240, 198, 79, 0.42) !important;
  color: var(--pmx-gold-hi) !important;
}

/* Primary CTA buttons -> liquid brushed gold (replacing orange toy buttons) */
body.pmx-ed-v2 .neon-static {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 44%, #d69828 88%) !important;
  color: #181207 !important;
  border: 1px solid rgba(255, 246, 218, 0.68) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px -10px rgba(240, 198, 79, 0.72) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

body.pmx-ed-v2 > .navbar .navbar-start {
  width: auto !important;
  flex: 0 0 auto !important;
}

body.pmx-ed-v2 > .navbar .navbar-end {
  width: auto !important;
  flex: 1 1 auto !important;
  gap: 2px !important;
}

body.pmx-ed-v2 .neon-static:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  color: #181207 !important;
}

/* ── Article Cards, Sidebar Nav Cards & Brief Cards ──────────────────────── */
body.pmx-ed-v2 .post,
body.pmx-ed-v2 .brief-card,
body.pmx-ed-v2 .day-card,
body.pmx-ed-v2 .b-card,
body.pmx-ed-v2 .card {
  background: linear-gradient(166deg, rgba(34, 29, 22, 0.88) 0%, rgba(15, 14, 17, 0.95) 100%) !important;
  border: 1px solid rgba(240, 198, 79, 0.28) !important;
  border-top-color: rgba(250, 227, 158, 0.44) !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 218, 0.09),
    0 20px 48px -24px rgba(0, 0, 0, 0.90),
    0 0 32px -18px rgba(240, 198, 79, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.pmx-ed-v2 .post {
  border-left: 3px solid var(--pmx-gold) !important;
}

body.pmx-ed-v2 .post.a-emerald {
  border-left-color: var(--pmx-up) !important;
}

body.pmx-ed-v2 .post h2,
body.pmx-ed-v2 .post h3,
body.pmx-ed-v2 h1 {
  color: var(--pmx-ink) !important;
  letter-spacing: -0.02em !important;
}

body.pmx-ed-v2 .post h2.t-rules,
body.pmx-ed-v2 .post h2.t-const,
body.pmx-ed-v2 .post h2.t-btc,
body.pmx-ed-v2 .t-rules,
body.pmx-ed-v2 .t-const,
body.pmx-ed-v2 .t-btc {
  color: var(--pmx-gold-hi) !important;
}

body.pmx-ed-v2 .post h2.t-simple,
body.pmx-ed-v2 .t-simple {
  color: var(--pmx-up) !important;
}

body.pmx-ed-v2 .post p,
body.pmx-ed-v2 .post li {
  color: var(--pmx-ink-2) !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
}

body.pmx-ed-v2 .post a,
body.pmx-ed-v2 .post a[style],
body.pmx-ed-v2 .post span[style*="#22e8f0"],
body.pmx-ed-v2 .post span[style*="#0bb6cc"],
body.pmx-ed-v2 .post span[style*="#f79d45"],
body.pmx-ed-v2 main a[style*="#f79d45"],
body.pmx-ed-v2 main a[style*="#22e8f0"],
body.pmx-ed-v2 main a[style*="#0bb6cc"],
body.pmx-ed-v2 main a.link {
  color: var(--pmx-gold-hi) !important;
}

body.pmx-ed-v2 .nav-card {
  background: linear-gradient(165deg, rgba(24, 21, 17, 0.88), rgba(14, 13, 15, 0.94)) !important;
  border: 1px solid var(--pmx-hair) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.06) !important;
  color: var(--pmx-ink-2) !important;
  font-weight: 600 !important;
}

body.pmx-ed-v2 .nav-card:hover {
  background: rgba(240, 198, 79, 0.11) !important;
  border-color: rgba(240, 198, 79, 0.46) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px -14px rgba(240, 198, 79, 0.45) !important;
}

body.pmx-ed-v2 .nav-card[style] {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 45%, #d69828 100%) !important;
  border-color: rgba(255, 246, 218, 0.65) !important;
  color: #181207 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px -8px rgba(240, 198, 79, 0.72) !important;
}

/* Chips */
body.pmx-ed-v2 .chip {
  background: rgba(240, 198, 79, 0.11) !important;
  border: 1px solid rgba(240, 198, 79, 0.34) !important;
  color: var(--pmx-gold-hi) !important;
}

body.pmx-ed-v2 .chip.c-simple {
  background: rgba(52, 224, 138, 0.12) !important;
  border-color: rgba(52, 224, 138, 0.36) !important;
  color: var(--pmx-up) !important;
}

body.pmx-ed-v2 .chip.c-date {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--pmx-hair) !important;
  color: var(--pmx-ink-3) !important;
}

/* Tables & code blocks inside articles/briefs */
body.pmx-ed-v2 pre,
body.pmx-ed-v2 code {
  background: rgba(10, 10, 13, 0.90) !important;
  border-color: rgba(240, 198, 79, 0.22) !important;
  color: var(--pmx-gold-hi) !important;
}

body.pmx-ed-v2 pre {
  overflow-x: auto !important;
  max-width: 100% !important;
  border-radius: 12px !important;
}

/* Footer -> warm obsidian-gold (kills neon azure footer links) */
body.pmx-ed-v2 > footer {
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.92), rgba(10, 10, 12, 0.98)) !important;
  border-top: 1px solid rgba(240, 198, 79, 0.24) !important;
  color: var(--pmx-ink-3) !important;
}

body.pmx-ed-v2 > footer a {
  color: var(--pmx-gold-hi) !important;
  font-weight: 700 !important;
}

body.pmx-ed-v2 > footer a:hover {
  color: #ffffff !important;
}

/* ── Mobile Polish (<=768px) ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  body.pmx-ed-v2 > .navbar {
    border-radius: 20px !important;
    padding: 8px 10px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    row-gap: 6px !important;
  }
  body.pmx-ed-v2 > .navbar .navbar-start {
    width: 100% !important;
    justify-content: space-between !important;
  }
  body.pmx-ed-v2 > .navbar .navbar-end {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    padding-bottom: 2px !important;
  }
  body.pmx-ed-v2 > .navbar .navbar-end::-webkit-scrollbar {
    display: none !important;
  }
  body.pmx-ed-v2 > .navbar .navbar-end > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  body.pmx-ed-v2 .post {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }
  body.pmx-ed-v2 h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem) !important;
  }
  body.pmx-ed-v2 .neon-static {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
}

/* Show ALL top-level menu items cleanly on PC (>=1060px) */
@media (min-width: 1060px) {
  body.pmx-ed-v2 > .navbar {
    width: min(1260px, calc(100% - 24px)) !important;
    max-width: 1260px !important;
    padding: 8px 12px 8px 14px !important;
    gap: 8px !important;
  }
  body.pmx-ed-v2 > .navbar .navbar-end {
    gap: 2px !important;
    flex-wrap: nowrap !important;
  }
  body.pmx-ed-v2 > .navbar .navbar-end a.btn-ghost,
  body.pmx-ed-v2 > .navbar .navbar-end summary.btn-ghost {
    font-size: 13px !important;
    padding: 6px 8px !important;
    min-height: 0 !important;
    height: auto !important;
    white-space: nowrap !important;
  }
  body.pmx-ed-v2 > .navbar .neon-static {
    padding: 9px 15px !important;
    font-size: 12.5px !important;
    margin-left: 4px !important;
  }
}
@media (min-width: 1060px) and (max-width: 1280px) {
  body.pmx-ed-v2 > .navbar .navbar-end a.btn-ghost,
  body.pmx-ed-v2 > .navbar .navbar-end summary.btn-ghost {
    font-size: 12px !important;
    padding: 5px 6px !important;
  }
}
/* Games dropdown inside blog/editorial navbar */
body.pmx-ed-v2 .games-nav { position: relative; list-style: none; }
body.pmx-ed-v2 .games-nav > summary { display: inline-flex; align-items: center; gap: 5px; color: var(--pmx-gold-hi); cursor: pointer; list-style: none; white-space: nowrap; }
body.pmx-ed-v2 .games-nav > summary::-webkit-details-marker { display: none; }
body.pmx-ed-v2 .games-nav > summary svg { width: 13px; height: 13px; }
body.pmx-ed-v2 .games-beta { display: inline-flex; align-items: center; padding: 2px 5px; border-radius: 4px; color: #181207; background: linear-gradient(180deg, #ffe9a7, #e9b541); font-size: 8px; font-weight: 900; letter-spacing: .07em; }
body.pmx-ed-v2 .games-dropdown { position: absolute; z-index: 120; top: calc(100% + 12px); left: 50%; display: none; min-width: 185px; padding: 7px; border: 1px solid rgba(240, 198, 79, 0.42); border-radius: 14px; background: #181410; box-shadow: 0 14px 35px rgba(0,0,0,.65); transform: translateX(-50%); }
body.pmx-ed-v2 .games-nav[open] > .games-dropdown { display: block; }
body.pmx-ed-v2 .games-dropdown a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--pmx-ink-2); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
body.pmx-ed-v2 .games-dropdown a:hover { color: #fff; background: rgba(240, 198, 79, 0.12); }
