/**
 * ONECOBULL Core Layout — header / footer (copied from fxchart-wp-reset.css)
 * Scope: .page-header, .onecobull-footer-legal*
 */

#fxchart-root .page-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(2, 5, 14, 0.95), rgba(0, 0, 0, 0.95));
  border-bottom: 1px solid rgba(216, 177, 95, 0.12);
  padding: 12px var(--safe-inline, 18px);
}

#fxchart-root .page-header .site-description {
  font-size: 0.92rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  text-align: center;
}

.fx-layout-top .page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.fx-layout-top .page-header h1 {
  color: #fdf7eb;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.4rem;
  margin: 0;
}

.fx-layout-top .page-header .site-description {
  font-size: 0.92rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

/* Phase 4.4 — Article compact sticky header (.page-header--compact only) */
.onecobull-page-shell .page-header.page-header--compact {
  --header-compact-accent: #ff3b57;
  --price-up: #6ecfff;
  --price-down: #ff6b6b;
  --price-flash-up-rgb: 110, 207, 255;
  --price-flash-down-rgb: 255, 107, 107;
  --change-up: #8fdcff;
  --change-down: #ff9999;
  --pct-up-1: #a8c8e0;
  --pct-up-2: #82d8ff;
  --pct-up-3: #5ccfff;
  --pct-up-4: #33d4ff;
  --pct-up-5: #66ffff;
  --pct-down-1: #d4aaaa;
  --pct-down-2: #ffa8a8;
  --pct-down-3: #ff7070;
  --pct-down-4: #ff4545;
  --pct-down-5: #ff5577;
  --compact-flash-glow-boost: 1.18;
  --compact-flash-alpha-boost: 1.12;
  --price-flash-duration: 8s;
  --price-card-glow-fade: 3.6s;
  --price-card-glow-fade-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --price-card-text-fade: 2.2s;
  --price-card-fade-ease: ease-out;
  --price-flash-fade-ease: ease-out;
  --box-shadow-emboss: -1px -1px 0 rgba(255, 255, 255, 0.18), 1px 1px 0 rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 0;
  z-index: var(--oc-z-header, 100);
  width: 100%;
  min-height: 72px;
  display: block;
  padding: 0;
  margin: 0;
  text-align: left;
  overflow: visible;
  background: rgba(5, 8, 12, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 59, 87, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: min-height 0.25s ease, box-shadow 0.25s ease;
}

.onecobull-page-shell .page-header.page-header--compact::after {
  display: none;
}

.onecobull-page-shell .page-header.page-header--compact.is-scrolled {
  min-height: 56px;
  box-shadow:
    inset 0 -1px 0 rgba(255, 59, 87, 0.22),
    0 6px 20px rgba(0, 0, 0, 0.28);
}

.onecobull-page-shell .page-header--compact .page-header__compact-inner {
  --compact-brand-width: clamp(340px, 34vw, 420px);
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 2vw, 16px);
  width: 100%;
  max-width: 1200px;
  min-height: inherit;
  margin: 0 auto;
  padding: 8px clamp(14px, 3vw, 24px);
  box-sizing: border-box;
}

.onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__compact-inner {
  --compact-brand-width: clamp(124px, 13vw, 156px);
}

.onecobull-page-shell .page-header--compact .page-header__quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.onecobull-page-shell .page-header--compact .page-header__brand,
.onecobull-page-shell .page-header--compact .header-left {
  flex: 0 0 auto;
  width: var(--compact-brand-width, clamp(420px, 42vw, 560px));
  max-width: var(--compact-brand-width, clamp(420px, 42vw, 560px));
  min-width: 0;
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.onecobull-page-shell .page-header--compact .page-header__quotes {
  flex: 1 1 auto;
  min-width: 0;
}

.onecobull-page-shell .page-header--compact .page-header__title,
.onecobull-page-shell .page-header--compact #page-title {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 1.4em;
  margin: 0;
  font-size: clamp(0.82rem, 1.7vw, 1.02rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fdf6ec;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  transition: font-size 0.25s ease, letter-spacing 0.25s ease;
}

.onecobull-page-shell .page-header.page-header--compact .page-header__brand .page-header__title,
.onecobull-page-shell .page-header.page-header--compact .page-header__brand #page-title {
  font-size: 2.15rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 0 rgba(0, 0, 0, 0.42),
    0 6px 16px rgba(0, 0, 0, 0.42);
}

.onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__brand .page-header__title,
.onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__brand #page-title {
  font-size: 1.42rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 0 rgba(0, 0, 0, 0.36),
    0 5px 12px rgba(0, 0, 0, 0.38);
}

.onecobull-page-shell .page-header--compact .page-header__title-full,
.onecobull-page-shell .page-header--compact .page-header__title-short {
  grid-area: 1 / 1;
  display: block;
  min-width: 0;
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease;
}

.onecobull-page-shell .page-header--compact .page-header__title-short {
  opacity: 0;
  transform: translateX(14px) scale(0.94);
  filter: blur(2px);
}

.onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__title-full {
  opacity: 0;
  transform: translateX(-18px) scale(0.92);
  filter: blur(2px);
}

.onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__title-short {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__title,
.onecobull-page-shell .page-header.page-header--compact.is-scrolled #page-title {
  font-size: clamp(0.74rem, 1.55vw, 0.88rem);
  letter-spacing: 0.06em;
}

.onecobull-page-shell .page-header--compact .compact-price-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--box-shadow-emboss);
  overflow: hidden;
  box-sizing: border-box;
  transition:
    box-shadow var(--price-card-glow-fade) var(--price-card-glow-fade-ease),
    background-color var(--price-card-text-fade) var(--price-card-fade-ease),
    border-color 0.35s ease;
}

.onecobull-page-shell .page-header--compact .compact-price-card__meta,
.onecobull-page-shell .page-header--compact .compact-mini-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.onecobull-page-shell .page-header--compact .compact-price-card__pair {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.onecobull-page-shell .page-header--compact .compact-price-card__price {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  line-height: 1.2;
}

.onecobull-page-shell .page-header--compact .compact-price-card__change {
  font-size: 0.66rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-1 { color: var(--pct-up-1); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-2 { color: var(--pct-up-2); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-3 { color: var(--pct-up-3); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-4 { color: var(--pct-up-4); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-5 { color: var(--pct-up-5); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-1 { color: var(--pct-down-1); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-2 { color: var(--pct-down-2); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-3 { color: var(--pct-down-3); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-4 { color: var(--pct-down-4); }
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-5 { color: var(--pct-down-5); }

.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-2.change-glow,
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-3.change-glow,
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-4.change-glow,
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-plus.change-tier-5.change-glow {
  text-shadow: 0 0 10px rgba(110, 207, 255, 0.55);
}

.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-2.change-glow,
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-3.change-glow,
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-4.change-glow,
.onecobull-page-shell .page-header--compact .compact-price-card__change.change-minus.change-tier-5.change-glow {
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.55);
}

.onecobull-page-shell .page-header--compact .compact-price-card__change.change-zero {
  color: #94a3b8;
}

.onecobull-page-shell .page-header--compact .compact-price-card.up .compact-price-card__price {
  color: var(--price-up);
  text-shadow: 0 0 10px rgba(110, 207, 255, 0.38);
}

.onecobull-page-shell .page-header--compact .compact-price-card.down .compact-price-card__price {
  color: var(--price-down);
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.38);
}

.onecobull-page-shell .page-header--compact .compact-mini-spark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  pointer-events: none;
  opacity: 0.86;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175));
  transition: filter var(--price-card-text-fade) var(--price-card-fade-ease), opacity 0.25s ease;
}

.onecobull-page-shell .page-header--compact .compact-price-card.up .compact-mini-spark {
  opacity: 0.94;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175))
    drop-shadow(0 0 10px rgba(110, 207, 255, 0.42))
    drop-shadow(0 0 18px rgba(110, 207, 255, 0.22));
}

.onecobull-page-shell .page-header--compact .compact-price-card.down .compact-mini-spark {
  opacity: 0.94;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175))
    drop-shadow(0 0 10px rgba(255, 107, 107, 0.4))
    drop-shadow(0 0 18px rgba(255, 107, 107, 0.2));
}

.onecobull-page-shell .page-header--compact .compact-price-card.spark-pulse .compact-mini-spark {
  animation: onecobull-compact-spark-pulse 0.65s ease-out;
}

@keyframes onecobull-compact-spark-pulse {
  0% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); opacity: 0.86; }
  35% { filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.48)); opacity: 1; }
  100% { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175)); opacity: 0.94; }
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-up,
.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-down {
  transition: background-color var(--price-card-text-fade) var(--price-card-fade-ease);
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-up .compact-price-card__price {
  color: var(--flash-price-color, var(--price-up));
  text-shadow:
    0 0 12px rgba(var(--flash-rgb, var(--price-flash-up-rgb)), 0.72),
    0 0 22px rgba(var(--flash-rgb, var(--price-flash-up-rgb)), 0.38);
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-down .compact-price-card__price {
  color: var(--flash-price-color, var(--price-down));
  text-shadow:
    0 0 12px rgba(var(--flash-rgb, var(--price-flash-down-rgb)), 0.72),
    0 0 22px rgba(var(--flash-rgb, var(--price-flash-down-rgb)), 0.38);
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-up {
  animation: onecobull-compact-price-flash-outer-up var(--price-flash-duration) var(--price-card-glow-fade-ease) forwards;
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-down {
  animation: onecobull-compact-price-flash-outer-down var(--price-flash-duration) var(--price-card-glow-fade-ease) forwards;
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-up::after,
.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-down::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: rgba(var(--flash-rgb), calc(var(--flash-alpha, 0.58) * var(--compact-flash-alpha-boost)));
  animation: onecobull-compact-price-flash-overlay-fade var(--price-flash-duration) var(--price-flash-fade-ease) forwards;
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-up {
  border-color: rgba(110, 207, 255, 0.42);
}

.onecobull-page-shell .page-header--compact .compact-price-card.price-flash-down {
  border-color: rgba(255, 107, 107, 0.42);
}

@keyframes onecobull-compact-price-flash-outer-up {
  0% {
    box-shadow:
      var(--box-shadow-emboss),
      0 0 22px rgba(var(--price-flash-up-rgb), calc(var(--flash-glow, 0.78) * var(--compact-flash-glow-boost))),
      0 0 40px rgba(var(--price-flash-up-rgb), calc(var(--flash-glow, 0.78) * 0.62)),
      inset 0 0 18px rgba(var(--price-flash-up-rgb), 0.14);
  }
  100% { box-shadow: var(--box-shadow-emboss); }
}

@keyframes onecobull-compact-price-flash-outer-down {
  0% {
    box-shadow:
      var(--box-shadow-emboss),
      0 0 22px rgba(var(--price-flash-down-rgb), calc(var(--flash-glow, 0.78) * var(--compact-flash-glow-boost))),
      0 0 40px rgba(var(--price-flash-down-rgb), calc(var(--flash-glow, 0.78) * 0.62)),
      inset 0 0 18px rgba(var(--price-flash-down-rgb), 0.14);
  }
  100% { box-shadow: var(--box-shadow-emboss); }
}

@keyframes onecobull-compact-price-flash-overlay-fade {
  0% { opacity: 1; }
  10% { opacity: 0.94; }
  24% { opacity: 0.82; }
  40% { opacity: 0.66; }
  55% { opacity: 0.5; }
  68% { opacity: 0.36; }
  80% { opacity: 0.24; }
  90% { opacity: 0.14; }
  96% { opacity: 0.06; }
  100% { opacity: 0; }
}

@media (max-width: 768px) {
  .onecobull-page-shell .page-header--compact .page-header__compact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 6px 12px;
  }

  .onecobull-page-shell .page-header--compact .page-header__quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .onecobull-page-shell .page-header--compact .page-header__title,
  .onecobull-page-shell .page-header--compact #page-title {
    letter-spacing: 0.12em;
  }

  .onecobull-page-shell .page-header--compact .page-header__quotes {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .onecobull-page-shell .page-header--compact .page-header__quotes::-webkit-scrollbar {
    display: none;
  }

  .onecobull-page-shell .page-header--compact .compact-price-card {
    min-height: 52px;
    min-width: 104px;
    padding: 6px 8px;
  }

  .onecobull-page-shell .page-header--compact .compact-price-card__price {
    font-size: 0.74rem;
  }

  .onecobull-page-shell .page-header--compact .compact-price-card__change {
    font-size: 0.6rem;
  }
}

@media (min-width: 1200px) {
  .onecobull-page-shell .page-header--compact .page-header__brand,
  .onecobull-page-shell .page-header--compact .header-left {
    width: var(--compact-brand-width, 440px);
    max-width: var(--compact-brand-width, 440px);
  }

  .onecobull-page-shell .page-header--compact .page-header__title,
  .onecobull-page-shell .page-header--compact #page-title {
    font-size: 0.96rem;
    letter-spacing: 0.08em;
    overflow: hidden;
  }

  .onecobull-page-shell .page-header.page-header--compact.is-scrolled .page-header__title,
  .onecobull-page-shell .page-header.page-header--compact.is-scrolled #page-title {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }
}

/* Compact header — pair picker dialog (only dialog layer uses fixed + z-index 1000) */
.compact-pair-picker {
  position: fixed;
  inset: 0;
  z-index: var(--oc-z-dialog, 1000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.compact-pair-picker[hidden] {
  display: none !important;
}

.compact-pair-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.compact-pair-picker__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(88vh, 520px);
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.compact-pair-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compact-pair-picker__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--box-shadow-emboss);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.compact-pair-picker__item-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.compact-pair-picker__item-spark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  opacity: 0.96;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.16))
    drop-shadow(0 0 12px rgba(110, 207, 255, 0.34))
    drop-shadow(0 0 22px rgba(110, 207, 255, 0.18));
}

.compact-pair-picker__item:hover {
  border-color: rgba(110, 207, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.compact-pair-picker__item:focus-visible {
  outline: 2px solid rgba(110, 207, 255, 0.55);
  outline-offset: 2px;
}

.compact-pair-picker__item.is-slot-active {
  border-color: rgba(110, 207, 255, 0.42);
  background: rgba(56, 189, 248, 0.08);
}

.compact-pair-picker__item.is-slot-target {
  box-shadow:
    var(--box-shadow-emboss),
    0 0 0 1px rgba(110, 207, 255, 0.55);
}

.compact-pair-picker__item-pair {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f4f7fb;
}

.compact-pair-picker__item-price {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #dce7f5;
}

.compact-pair-picker__item-change {
  font-size: 0.64rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9fb0c4;
}

/* Article template — dashboard hero header (default .page-header without --compact) */
.onecobull-page-shell .page-header {
  position: relative;
  width: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 12px var(--safe-inline, 18px);
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(2, 5, 14, 0.95), rgba(0, 0, 0, 0.95));
  border-bottom: 1px solid rgba(216, 177, 95, 0.12);
  overflow: hidden;
  text-align: center;
}

.onecobull-page-shell .page-header::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(216, 177, 95, 0.35), transparent 60%);
  opacity: 0.45;
  filter: blur(12px);
  pointer-events: none;
}

.onecobull-page-shell .page-header h1,
.onecobull-page-shell .page-header #page-title {
  color: #fdf6ec;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.45rem;
  margin: 0;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.onecobull-page-shell .page-header.page-header--compact .page-header__brand .page-header__title,
.onecobull-page-shell .page-header.page-header--compact .page-header__brand #page-title {
  color: #fdf6ec;
  z-index: 1;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.onecobull-page-shell .page-header .site-description {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  text-align: center;
  z-index: 1;
}

.onecobull-page-shell .page-header .lang-toggle {
  position: absolute;
  right: 24px;
  top: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.onecobull-page-shell .page-header .lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .onecobull-page-shell .page-header {
    min-height: 110px;
    padding: 26px clamp(16px, 5vw, 28px);
  }

  .onecobull-page-shell .page-header h1,
  .onecobull-page-shell .page-header #page-title {
    letter-spacing: 0.2rem;
    font-size: 1.9rem;
  }

  .onecobull-page-shell .page-header.page-header--compact .page-header__brand .page-header__title,
  .onecobull-page-shell .page-header.page-header--compact .page-header__brand #page-title {
    font-size: 2.15rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.16),
      0 2px 0 rgba(0, 0, 0, 0.42),
      0 6px 16px rgba(0, 0, 0, 0.42);
  }

  .onecobull-page-shell .page-header .lang-toggle {
    top: 12px;
    right: 16px;
  }
}

.onecobull-footer-legal {
  width: 100%;
  padding: clamp(20px, 4vw, 30px) var(--safe-inline, 18px);
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(2, 5, 14, 0.95), rgba(0, 0, 0, 0.95));
  border-top: 1px solid rgba(216, 177, 95, 0.12);
  color: #f7f5f0;
}

.onecobull-footer-legal__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.onecobull-footer-legal__copy {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}

body.fxchart-front-page-js .onecobull-footer-legal__nav,
.onecobull-footer-legal__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1px 1px;
  justify-content: center;
  align-items: center;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

body.fxchart-front-page-js .onecobull-footer-legal__nav a,
body.fxchart-front-page-js .onecobull-footer-legal__nav span,
.onecobull-footer-legal__nav a {
  color: #d8b15f;
  text-decoration: none;
  font-size: 0.95rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
  padding-bottom: 2px;
  visibility: visible !important;
  opacity: 1 !important;
}

.onecobull-footer-legal__nav span {
  visibility: visible !important;
  opacity: 1 !important;
  color: rgba(216, 177, 95, 0.55);
}

.onecobull-footer-legal__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 1px;
  background: #d8b15f;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  opacity: 0;
}

.onecobull-footer-legal__nav a:hover {
  color: #fef6df;
}

.onecobull-footer-legal__nav a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 480px) {
  .onecobull-footer-legal {
    padding: 24px 16px;
  }

  .onecobull-footer-legal__copy {
    letter-spacing: 0.12em;
  }

  .onecobull-footer-legal__nav {
    gap: 10px;
  }
}

/* Phase 4.1 — shared page templates */

body.onecobull-core-layout {
  background-color: #020305;
  color: #d6e8ff;
}

body.onecobull-article-template {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden;
  overflow-y: auto !important;
}

html:has(body.onecobull-article-template),
body.onecobull-article-template {
  overflow-y: visible !important;
}

body.onecobull-media-template {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden;
  overflow-y: auto !important;
}

.onecobull-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #020305;
}

.onecobull-background-inner {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% -8%, rgba(216, 177, 95, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 65% 18%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, #020305 0%, #040507 32%, #070b12 65%, #0b1220 100%);
}

.onecobull-page-shell {
  --oc-z-header: 100;
  --oc-z-menu: 90;
  --oc-z-dialog: 1000;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

.onecobull-page-shell__header {
  position: sticky;
  top: 0;
  z-index: var(--oc-z-header, 100);
  width: 100%;
}

@media (min-width: 769px) {
  .onecobull-page-shell:not(.onecobull-page-shell--dashboard) .onecobull-page-shell__header {
    position: relative;
    min-height: 72px;
    z-index: var(--oc-z-header, 100);
  }

  .onecobull-page-shell:not(.onecobull-page-shell--dashboard) .onecobull-page-shell__header .page-header.page-header--compact {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - (var(--safe-inline, 18px) * 2)));
    z-index: var(--oc-z-header, 100);
  }
}

.onecobull-page-shell__footer {
  position: static;
  width: 100%;
}

/* Article 7:3 — grid on page-shell when sidebar is a shell region (Phase 5.2) */
.onecobull-page-shell.onecobull-page-shell--with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  grid-template-rows: auto auto auto auto;
  align-items: start;
  column-gap: clamp(12px, 2.5vw, 32px);
  max-width: 1200px;
  margin: 0 auto;
}

.onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__menu {
  grid-column: 1 / -1;
  grid-row: 2;
}

.onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-main {
  grid-column: 1;
  grid-row: 3;
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__sidebar {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  align-self: stretch;
  position: static;
  top: auto;
}

.onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__footer {
  grid-column: 1 / -1;
  grid-row: 4;
}

.onecobull-page-shell--dashboard .onecobull-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.onecobull-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) var(--safe-inline, 18px);
  box-sizing: border-box;
  overflow: visible;
}

.onecobull-page-shell--article .onecobull-main {
  padding-top: clamp(12px, 2vw, 20px);
}

/* Phase 4.3 — Article Design System */

.onecobull-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(12px, 2.5vw, 32px);
  width: 100%;
  margin: 40px 0 0;
  align-items: start;
  overflow: visible;
}

.onecobull-page-shell--with-sidebar .onecobull-article-layout {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.onecobull-article-layout__main {
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.onecobull-article-sidebar,
.onecobull-page-shell__sidebar {
  min-width: 0;
  width: 100%;
  display: block;
  visibility: visible;
  position: static;
  overflow: visible;
}

.onecobull-article-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.onecobull-article-sidebar__inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.onecobull-page-shell--article .onecobull-article-sidebar {
  position: sticky;
  top: var(--oc-sticky-sidebar-top, 140px);
  align-self: start;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.onecobull-page-shell--article .onecobull-article-sidebar__inner {
  position: static;
  top: auto;
  width: 100%;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.onecobull-page-shell--article .onecobull-article-sidebar__inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.onecobull-sidebar-widget {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-sizing: border-box;
}

.onecobull-sidebar-widget__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7dd3fc;
}

/* Article sidebar — futures mini charts (Dashboard-aligned) */
.onecobull-article-sidebar .futures-mini-sidebar {
  --price-up: #38bdf8;
  --price-down: #ff2b2b;
  --price-flash-up-rgb: 56, 189, 248;
  --price-flash-down-rgb: 255, 43, 43;
  --compact-flash-glow-boost: 1.18;
  --compact-flash-alpha-boost: 1.12;
  --change-up: #6ecfff;
  --change-down: #ff7777;
  --pct-up-1: #8fa8bc;
  --pct-up-2: #6ecfff;
  --pct-up-3: #38bdf8;
  --pct-up-4: #00b8ff;
  --pct-up-5: #00f0ff;
  --pct-down-1: #b89898;
  --pct-down-2: #ff8a8a;
  --pct-down-3: #ff4444;
  --pct-down-4: #ff1a1a;
  --pct-down-5: #ff0044;
  --futures-mini-card-rest-shadow: none;
  --futures-mini-flash-duration: 8s;
  --futures-mini-flash-intensity: 0.82;
  --price-card-glow-fade-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --price-card-text-fade: 2.2s;
  --price-card-fade-ease: ease-out;
  --price-flash-fade-ease: ease-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.onecobull-article-sidebar .futures-mini-card {
  --mini-card-accent-rgb: 255, 59, 87;
  --mini-card-accent-hex: #ff3b57;
  --mini-card-accent-border-alpha: 0.08;
  --mini-card-accent-glow-alpha: 0.10;
  --mini-card-accent-hover-alpha: 0.14;
  --mini-card-accent-bg-alpha: 0.08;
  position: relative;
  min-height: 108px;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--box-shadow-emboss);
  transition:
    box-shadow var(--price-card-glow-fade) var(--price-card-glow-fade-ease),
    border-color 0.35s ease,
    background-color var(--price-card-text-fade) var(--price-card-fade-ease);
}

.onecobull-article-sidebar .futures-mini-card.up {
  border-color: rgba(110, 207, 255, 0.28);
}

.onecobull-article-sidebar .futures-mini-card.down {
  border-color: rgba(255, 107, 107, 0.28);
}

.onecobull-article-sidebar .futures-mini-card:hover {
  box-shadow:
    var(--box-shadow-emboss),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.onecobull-article-sidebar .futures-mini-card.flash-up,
.onecobull-article-sidebar .futures-mini-card.flash-down {
  transition: background-color var(--price-card-text-fade) var(--price-card-fade-ease);
}

.onecobull-article-sidebar .futures-mini-card.flash-up .futures-mini-price {
  color: var(--flash-price-color, var(--price-up));
  text-shadow:
    0 0 12px rgba(var(--flash-rgb, var(--price-flash-up-rgb)), 0.72),
    0 0 22px rgba(var(--flash-rgb, var(--price-flash-up-rgb)), 0.38);
}

.onecobull-article-sidebar .futures-mini-card.flash-down .futures-mini-price {
  color: var(--flash-price-color, var(--price-down));
  text-shadow:
    0 0 12px rgba(var(--flash-rgb, var(--price-flash-down-rgb)), 0.72),
    0 0 22px rgba(var(--flash-rgb, var(--price-flash-down-rgb)), 0.38);
}

.onecobull-article-sidebar .futures-mini-card.flash-up {
  animation: onecobull-futures-flash-outer-up var(--futures-mini-flash-duration) var(--price-card-glow-fade-ease) forwards;
}

.onecobull-article-sidebar .futures-mini-card.flash-down {
  animation: onecobull-futures-flash-outer-down var(--futures-mini-flash-duration) var(--price-card-glow-fade-ease) forwards;
}

.onecobull-article-sidebar .futures-mini-card.flash-up::after,
.onecobull-article-sidebar .futures-mini-card.flash-down::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: rgba(var(--flash-rgb), calc(var(--flash-alpha, 0.58) * var(--compact-flash-alpha-boost)));
  animation: onecobull-price-flash-overlay-fade var(--futures-mini-flash-duration) var(--price-flash-fade-ease) forwards;
}

@keyframes onecobull-futures-flash-outer-up {
  0% {
    box-shadow:
      var(--box-shadow-emboss),
      0 0 22px rgba(var(--price-flash-up-rgb), calc(var(--flash-glow, 0.78) * var(--compact-flash-glow-boost))),
      0 0 40px rgba(var(--price-flash-up-rgb), calc(var(--flash-glow, 0.78) * 0.62)),
      inset 0 0 18px rgba(var(--price-flash-up-rgb), 0.14);
  }
  100% { box-shadow: var(--box-shadow-emboss); }
}

@keyframes onecobull-futures-flash-outer-down {
  0% {
    box-shadow:
      var(--box-shadow-emboss),
      0 0 22px rgba(var(--price-flash-down-rgb), calc(var(--flash-glow, 0.78) * var(--compact-flash-glow-boost))),
      0 0 40px rgba(var(--price-flash-down-rgb), calc(var(--flash-glow, 0.78) * 0.62)),
      inset 0 0 18px rgba(var(--price-flash-down-rgb), 0.14);
  }
  100% { box-shadow: var(--box-shadow-emboss); }
}

@keyframes onecobull-price-flash-overlay-fade {
  0% { opacity: 1; }
  10% { opacity: 0.94; }
  24% { opacity: 0.82; }
  40% { opacity: 0.66; }
  55% { opacity: 0.5; }
  68% { opacity: 0.36; }
  80% { opacity: 0.24; }
  90% { opacity: 0.14; }
  96% { opacity: 0.06; }
  100% { opacity: 0; }
}

.onecobull-article-sidebar .futures-mini-head {
  position: relative;
  z-index: 2;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.24);
}

.onecobull-article-sidebar .futures-mini-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.onecobull-article-sidebar .futures-mini-quote {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.onecobull-article-sidebar .futures-mini-price {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f0f0f0;
}

.onecobull-article-sidebar .futures-mini-change {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-1 { color: var(--pct-up-1); }
.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-2 { color: var(--pct-up-2); }
.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-3 { color: var(--pct-up-3); }
.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-4 { color: var(--pct-up-4); }
.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-5 { color: var(--pct-up-5); }
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-1 { color: var(--pct-down-1); }
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-2 { color: var(--pct-down-2); }
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-3 { color: var(--pct-down-3); }
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-4 { color: var(--pct-down-4); }
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-5 { color: var(--pct-down-5); }

.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-3.change-glow,
.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-4.change-glow,
.onecobull-article-sidebar .futures-mini-change.change-plus.change-tier-5.change-glow {
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-3.change-glow,
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-4.change-glow,
.onecobull-article-sidebar .futures-mini-change.change-minus.change-tier-5.change-glow {
  text-shadow: 0 0 8px rgba(255, 43, 43, 0.45);
}

.onecobull-article-sidebar .futures-mini-change.change-zero {
  color: #94a3b8;
}

.onecobull-article-sidebar .futures-mini-card.up .futures-mini-price {
  color: var(--mini-card-accent-hex, var(--price-up));
  text-shadow: 0 0 10px rgba(110, 207, 255, 0.38);
}

.onecobull-article-sidebar .futures-mini-card.down .futures-mini-price {
  color: var(--mini-card-accent-hex, var(--price-down));
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.38);
}

.onecobull-article-sidebar .futures-mini-card.flat .futures-mini-price,
.onecobull-article-sidebar .futures-mini-card.flat .futures-mini-change {
  color: #94a3b8;
}

.onecobull-article-sidebar .futures-mini-card.idle {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.onecobull-article-sidebar .futures-mini-spark {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
  opacity: 0.86;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175));
  transition: filter var(--price-card-text-fade) var(--price-card-fade-ease), opacity 0.25s ease;
}

.onecobull-article-sidebar .futures-mini-card.up .futures-mini-spark {
  opacity: 0.94;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175))
    drop-shadow(0 0 10px rgba(110, 207, 255, 0.42))
    drop-shadow(0 0 18px rgba(110, 207, 255, 0.22));
}

.onecobull-article-sidebar .futures-mini-card.down .futures-mini-spark {
  opacity: 0.94;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.175))
    drop-shadow(0 0 10px rgba(255, 107, 107, 0.4))
    drop-shadow(0 0 18px rgba(255, 107, 107, 0.2));
}

.onecobull-article-sidebar .futures-mini-card.spark-pulse .futures-mini-spark {
  animation: onecobull-compact-spark-pulse 0.65s ease-out;
}

.onecobull-article-sidebar .futures-mini-card.idle .futures-mini-spark {
  opacity: 0.72;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.onecobull-article {
  --article-emboss: 0 1px 0 rgba(255, 255, 255, 0.42), 0 -1px 1px rgba(0, 0, 0, 0.45);
  --article-emboss-strong: 0 1px 0 rgba(255, 255, 255, 0.58), 0 2px 3px rgba(0, 0, 0, 0.42), 0 -1px 0 rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px;
  box-sizing: border-box;
  color: #d7dce2;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.onecobull-article-header {
  margin: 0 0 32px;
  padding-bottom: 0;
  border-bottom: none;
}

.onecobull-article-title {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: var(--article-emboss-strong);
}

.onecobull-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  font-size: 14px;
  color: #94a3b8;
  text-shadow: var(--article-emboss);
}

.onecobull-article-date,
.onecobull-article-updated {
  display: inline-block;
}

/* Phase 4.3 — Ad slots (placeholder; no AdSense yet) */
.onecobull-ad-slot {
  max-width: 860px;
  margin: 48px auto;
  box-sizing: border-box;
}

.onecobull-ad-slot--top {
  margin-top: 32px;
}

.onecobull-ad-slot--bottom {
  margin-bottom: 0;
}

.onecobull-ad-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  text-align: center;
  text-shadow: none;
}

.onecobull-ad-container {
  min-height: 90px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-sizing: border-box;
}

.onecobull-article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.01em;
  color: #d7dce2;
  text-shadow: var(--article-emboss);
}

.onecobull-article-content > :first-child {
  margin-top: 0;
}

.onecobull-article-content > :last-child {
  margin-bottom: 0;
}

.onecobull-article-content p {
  margin: 0 0 1.5em;
}

.onecobull-article-content h2 {
  margin: 64px 0 24px;
  padding-left: 16px;
  border-left: 4px solid #38bdf8;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: var(--article-emboss-strong);
}

.onecobull-article-content h3 {
  margin: 48px 0 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #7dd3fc;
  text-shadow: var(--article-emboss-strong);
}

.onecobull-article-content h4 {
  margin: 32px 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #e2e8f0;
  text-shadow: var(--article-emboss);
}

.onecobull-article blockquote,
.onecobull-article-content blockquote {
  position: relative;
  margin: 32px 0;
  padding: 24px 24px 24px 56px;
  background: rgba(56, 189, 248, 0.08);
  border: none;
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  color: #dbeafe;
  font-style: normal;
  font-size: 17px;
  line-height: 1.75;
  text-shadow: var(--article-emboss);
}

.onecobull-article blockquote::before,
.onecobull-article-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 40px;
  line-height: 1;
  color: rgba(56, 189, 248, 0.35);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

.onecobull-article-content a {
  color: #38bdf8;
  text-decoration: none;
  text-shadow: var(--article-emboss);
  transition: color 0.2s ease;
}

.onecobull-article-content a:hover {
  color: #7dd3fc;
}

.onecobull-article-content ul,
.onecobull-article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.onecobull-article-content li {
  margin-bottom: 12px;
}

.onecobull-article-content li:last-child {
  margin-bottom: 0;
}

.onecobull-article-content table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
}

.onecobull-article-content thead th,
.onecobull-article-content th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-shadow: var(--article-emboss);
}

.onecobull-article-content td {
  padding: 14px 16px;
  color: #d7dce2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-shadow: var(--article-emboss);
}

.onecobull-article-content tr:last-child td {
  border-bottom: none;
}

.onecobull-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.onecobull-author-box {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-sizing: border-box;
}

.onecobull-author-box__name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: var(--article-emboss-strong);
}

.onecobull-author-box__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #94a3b8;
  text-shadow: var(--article-emboss);
}

@media (max-width: 960px) {
  .onecobull-article-layout {
    margin-top: 24px;
    gap: clamp(10px, 2vw, 20px);
  }

  .onecobull-article-sidebar {
    top: 12px;
  }

  .onecobull-article-sidebar .futures-mini-card {
    min-height: 92px;
    padding: 10px;
  }

  .onecobull-article-sidebar .futures-mini-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .onecobull-page-shell.onecobull-page-shell--with-sidebar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-main,
  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__sidebar,
  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__header,
  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__menu,
  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__footer {
    grid-column: 1;
    grid-row: auto;
  }

  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__sidebar {
    position: static;
    top: auto;
  }

  .onecobull-page-shell.onecobull-page-shell--with-sidebar .onecobull-page-shell__sidebar .onecobull-article-sidebar {
    position: static;
    top: auto;
  }

  .onecobull-main {
    padding: 16px 12px;
    max-width: 100%;
  }

  .onecobull-article-layout {
    margin-top: 16px;
    gap: 10px;
  }

  .onecobull-article {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .onecobull-article-title {
    font-size: clamp(22px, 6.5vw, 36px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }

  .onecobull-article-meta {
    gap: 10px;
    font-size: 12px;
  }

  .onecobull-article-content {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.75;
  }

  .onecobull-article-content h2 {
    margin-top: 36px;
    margin-bottom: 16px;
    padding-left: 12px;
    font-size: clamp(18px, 5vw, 24px);
  }

  .onecobull-article-content h3 {
    margin-top: 28px;
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .onecobull-author-box {
    max-width: 100%;
    margin-top: 28px;
    padding: 16px;
  }

  .onecobull-article-sidebar .futures-mini-sidebar {
    gap: 8px;
  }

  .onecobull-article-sidebar .futures-mini-card {
    min-height: 80px;
    padding: 8px;
    border-radius: 10px;
  }

  .onecobull-article-sidebar .futures-mini-title {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }

  .onecobull-article-sidebar .futures-mini-price {
    font-size: 0.82rem;
  }

  .onecobull-article-sidebar .futures-mini-change {
    font-size: 0.62rem;
  }

  .onecobull-sidebar-widget {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .onecobull-main {
    padding: 12px 8px;
  }

  .onecobull-article-layout {
    gap: 8px;
  }

  .onecobull-article {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .onecobull-article-content {
    font-size: 14px;
    line-height: 1.7;
  }

  .onecobull-article-sidebar .futures-mini-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .onecobull-article-sidebar .futures-mini-card {
    min-height: 72px;
  }
}

html:has(body.onecobull-article-template),
body.onecobull-article-template {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
