/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --bg:         #ffffff;
  --bg2:        #f7f8fc;
  --bg3:        #edf0f7;
  --orange:     #f7931a;
  --orange-lt:  #fff7ed;
  --orange-bd:  #fdba74;
  --text:       #111827;
  --text2:      #2d3748;
  --muted:      #4b5563;
  --border:     #e5e7eb;
  --border2:    #d1d5db;
  --green:      #15803d;
  --green-lt:   #f0fdf4;
  --green-bd:   #86efac;
  --red:        #b91c1c;
  --red-lt:     #fef2f2;
  --red-bd:     #fca5a5;
  --blue:       #1d4ed8;
  --blue-lt:    #eff6ff;
  --blue-bd:    #93c5fd;
  --purple:     #7c3aed;
  --purple-lt:  #faf5ff;
  --purple-bd:  #c4b5fd;
  --amber:      #d97706;
  --amber-lt:   #fffbeb;
  --amber-bd:   #fcd34d;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 2px 12px rgba(0,0,0,0.08);
  --radius:     12px;
}

.btc-cycle-page, .btc-cycle-page *, .btc-cycle-page *::before, .btc-cycle-page *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ============================================================
   PAGE WRAPPER
============================================================ */
.btc-cycle-page {
  max-width: 990px;
  margin: 0 auto;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.btc-cycle-page *, .btc-cycle-page *::before, .btc-cycle-page *::after {
  box-sizing: border-box;
}

/* ============================================================
   BREADCRUMB
============================================================ */
.bcp-breadcrumb {
  padding: 20px 0 0;
  font-size: 0.78em;
  color: var(--muted);
}
.bcp-breadcrumb a { color: var(--muted); text-decoration: none; }
.bcp-breadcrumb a:hover { color: var(--orange); }
.bcp-breadcrumb span { margin: 0 6px; }

/* ============================================================
   PAGE HEADER
============================================================ */
.bcp-header {
  padding: 32px 0 36px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 44px;
}
.bcp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-lt);
  border: 2px solid var(--orange-bd);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.bcp-header h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7em, 4vw, 2.4em);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.bcp-header h1 em {
  font-style: normal;
  color: var(--orange);
}
.bcp-subtitle {
  font-size: 1em;
  color: var(--text2);
  line-height: 1.6;
  max-width: 660px;
  margin-bottom: 20px;
}
.bcp-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'DM Mono', monospace;
  font-size: 0.72em;
  color: var(--muted);
}

/* ============================================================
   INTRO BOX
============================================================ */
.bcp-intro {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 0.95em;
  color: var(--text2);
  line-height: 1.75;
}
.bcp-intro a { color: var(--orange); font-weight: 600; text-decoration: none; }
.bcp-intro a:hover { text-decoration: underline; }

/* ============================================================
   TABLE OF CONTENTS
============================================================ */
.bcp-toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.bcp-toc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.bcp-toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.bcp-toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85em;
  color: var(--text2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.bcp-toc-list li a:hover { color: var(--orange); }
.bcp-toc-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.68em;
  color: var(--muted);
  width: 22px;
  flex-shrink: 0;
}

/* ============================================================
   GUIDE SECTION
============================================================ */
.bcp-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}

/* ============================================================
   DIAGRAM CARD
============================================================ */
.bcp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 0;
}
.bcp-card-header {
  background: var(--bg2);
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.bcp-num {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 0.68em;
  color: var(--orange);
  letter-spacing: 3px;
  background: var(--orange-lt);
  border: 2px solid var(--orange-bd);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.bcp-num.glossary {
  background: var(--bg3);
  border: 2px solid var(--border2);
  color: var(--muted);
  letter-spacing: 2px;
}
.bcp-card-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05em;
  color: var(--text);
  letter-spacing: -0.2px;
}
.bcp-body { padding: 28px 24px; }

/* ============================================================
   IN PLAIN ENGLISH
============================================================ */
.bcp-plain {
  background: var(--orange-lt);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 20px 22px;
  margin: 0 24px 24px;
}
.bcp-plain-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.65em;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.bcp-plain ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bcp-plain ul li {
  font-size: 0.85em;
  line-height: 1.6;
  color: var(--text2);
  padding-left: 18px;
  position: relative;
}
.bcp-plain ul li::before {
  content: "▸";
  color: var(--orange);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.7em;
}

/* ============================================================
   GLOSSARY
============================================================ */
.bcp-glossary-intro {
  font-size: 0.88em;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.bcp-terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bcp-term {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 16px;
  transition: border-color 0.15s;
}
.bcp-term:hover { border-color: var(--orange-bd); }
.bcp-term-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.83em;
  color: var(--orange);
  margin-bottom: 6px;
}
.bcp-term-body { font-size: 0.78em; color: var(--text2); line-height: 1.65; }

/* ============================================================
   CHART IMAGE COMPONENT
============================================================ */
.bcp-chart-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.bcp-chart-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.bcp-chart-caption {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.bcp-chart-caption-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.68em;
  color: var(--muted);
}
.bcp-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.72em;
  color: var(--orange);
  text-decoration: none;
  background: var(--orange-lt);
  border: 1.5px solid var(--orange-bd);
  padding: 4px 10px;
  border-radius: 5px;
  transition: background 0.15s;
  white-space: nowrap;
}
.bcp-chart-link:hover {
  background: #fde8c8;
  color: #c2410c;
  text-decoration: none;
}

/* ============================================================
   STAT ROW
============================================================ */
.bcp-stat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bcp-stat {
  background: var(--orange-lt);
  border: 2px solid var(--orange-bd);
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1;
  min-width: 130px;
}
.bcp-stat-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.bcp-stat-label { font-size: 0.68em; color: var(--muted); line-height: 1.4; }

/* ============================================================
   CYCLE HISTORY TABLE
============================================================ */
.bcp-cycle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84em;
  margin-bottom: 24px;
}
.bcp-cycle-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 12px 12px;
  border-bottom: 2px solid var(--border);
}
.bcp-cycle-table th.right { text-align: right; }
.bcp-cycle-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bcp-cycle-table tr:last-child td { border-bottom: none; }
.bcp-cycle-table tr.current-row { background: var(--orange-lt); }
.bcp-cycle-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95em;
}
.bcp-cycle-detail { font-size: 0.72em; color: var(--muted); margin-top: 2px; }
.bcp-gain {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1em;
  text-align: right;
}
.bcp-gain.massive { color: #15803d; }
.bcp-gain.large { color: #1d4ed8; }
.bcp-gain.med { color: var(--orange); }
.bcp-gain.current { color: var(--amber); }
.bcp-bar-cell { width: 140px; }
.bcp-bar-outer {
  height: 10px;
  background: var(--bg3);
  border-radius: 5px;
  overflow: hidden;
}
.bcp-bar-inner {
  height: 100%;
  border-radius: 5px;
}

/* ============================================================
   FOUR PHASES DIAGRAM
============================================================ */
.bcp-phases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.bcp-phase {
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.bcp-phase.accum  { background: var(--blue-lt);   border-right: 1px solid var(--border); }
.bcp-phase.bull   { background: var(--green-lt);  border-right: 1px solid var(--border); }
.bcp-phase.peak   { background: var(--red-lt);    border-right: 1px solid var(--border); }
.bcp-phase.bear   { background: var(--bg2); }
.bcp-phase-icon  { font-size: 1.6em; margin-bottom: 8px; }
.bcp-phase-name  {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.88em;
  margin-bottom: 6px;
}
.bcp-phase.accum .bcp-phase-name { color: var(--blue); }
.bcp-phase.bull  .bcp-phase-name { color: var(--green); }
.bcp-phase.peak  .bcp-phase-name { color: var(--red); }
.bcp-phase.bear  .bcp-phase-name { color: var(--text); }
.bcp-phase-sentiment {
  font-family: 'DM Mono', monospace;
  font-size: 0.62em;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.bcp-phase.accum .bcp-phase-sentiment { color: #3b82f6; }
.bcp-phase.bull  .bcp-phase-sentiment { color: var(--green); }
.bcp-phase.peak  .bcp-phase-sentiment { color: var(--red); }
.bcp-phase.bear  .bcp-phase-sentiment { color: var(--muted); }
.bcp-phase-desc { font-size: 0.72em; color: var(--text2); line-height: 1.5; }

/* Arrow between phases */
.bcp-phase-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border2);
  font-size: 1.1em;
  z-index: 1;
  display: none;
}

/* ============================================================
   LIQUIDITY CARDS
============================================================ */
.bcp-liq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.bcp-liq-card {
  border-radius: 10px;
  padding: 18px;
  border: 1.5px solid transparent;
}
.bcp-liq-card.m2    { background: var(--blue-lt);   border-color: var(--blue-bd); }
.bcp-liq-card.dxy   { background: var(--purple-lt); border-color: var(--purple-bd); }
.bcp-liq-card.fed   { background: var(--green-lt);  border-color: var(--green-bd); }
.bcp-liq-card.sum   { background: var(--orange-lt); border-color: var(--orange-bd); }
.bcp-liq-icon { font-size: 1.5em; margin-bottom: 10px; }
.bcp-liq-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 7px;
}
.bcp-liq-card.m2 .bcp-liq-title  { color: var(--blue); }
.bcp-liq-card.dxy .bcp-liq-title { color: var(--purple); }
.bcp-liq-card.fed .bcp-liq-title { color: var(--green); }
.bcp-liq-card.sum .bcp-liq-title { color: #c2410c; }
.bcp-liq-body { font-size: 0.77em; color: var(--text2); line-height: 1.6; }
.bcp-liq-body strong { color: var(--text); }

/* ============================================================
   CHANGED / UNCHANGED COMPARISON
============================================================ */
.bcp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.bcp-compare-panel {
  border-radius: 10px;
  padding: 20px;
}
.bcp-compare-panel.unchanged { background: var(--green-lt); border: 1.5px solid var(--green-bd); }
.bcp-compare-panel.changed   { background: var(--red-lt);   border: 1.5px solid var(--red-bd); }
.bcp-compare-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6em;
  letter-spacing: 2px;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.btc-cycle-page .unchanged .bcp-compare-badge { background: rgba(21,128,61,0.15); color: var(--green); border: 2px solid var(--green-bd); }
.btc-cycle-page .changed   .bcp-compare-badge { background: rgba(185,28,28,0.1);  color: var(--red);   border: 2px solid var(--red-bd); }
.bcp-compare-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 14px;
}
.btc-cycle-page .unchanged .bcp-compare-title { color: var(--green); }
.btc-cycle-page .changed   .bcp-compare-title { color: var(--red); }
.bcp-compare-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bcp-compare-item { display: flex; gap: 8px; align-items: flex-start; }
.bcp-compare-icon { font-size: 0.85em; flex-shrink: 0; margin-top: 1px; }
.bcp-compare-text { font-size: 0.78em; color: var(--text2); line-height: 1.55; }
.bcp-compare-text strong { color: var(--text); }

/* ============================================================
   BMP TOOLS GRID
============================================================ */
.bcp-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.bcp-tool {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.bcp-tool:hover {
  border-color: var(--orange-bd);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.bcp-tool-icon { font-size: 1.4em; margin-bottom: 8px; }
.bcp-tool-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--text);
  margin-bottom: 5px;
}
.bcp-tool-desc { font-size: 0.72em; color: var(--muted); line-height: 1.5; }
.bcp-tool-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.58em;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 8px;
  text-transform: uppercase;
}
.bcp-tool-badge.free {
  background: rgba(21,128,61,0.12);
  color: var(--green);
  border: 1.5px solid var(--green-bd);
}

/* ============================================================
   CTAs (matching strc-cta style)
============================================================ */
.bcp-cta {
  position: relative;
  background: linear-gradient(135deg, #111827 0%, #1e2d3d 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  margin: 32px 0;
}
.bcp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,147,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,147,26,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.bcp-cta::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(247,147,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.bcp-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
}
.bcp-cta-text { flex: 1; }
.bcp-cta-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.62em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.bcp-cta-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05em;
  color: #f9fafb;
  margin-bottom: 8px;
  line-height: 1.3;
}
.bcp-cta-body {
  font-size: 0.82em;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}
.bcp-cta-body strong { color: #e5e7eb; font-weight: 600; }
.bcp-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 190px;
}
.bcp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--orange);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.bcp-btn-primary:hover {
  background: #ea7d0a;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.bcp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #9ca3af;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  padding: 7px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.bcp-btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  text-decoration: none;
}
.bcp-free-badge {
  display: inline-block;
  background: rgba(21,128,61,0.25);
  color: #4ade80;
  font-family: 'DM Mono', monospace;
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(74,222,128,0.4);
  vertical-align: middle;
  margin-left: 4px;
  text-transform: uppercase;
}

/* ============================================================
   PAGE FOOTER
============================================================ */
.bcp-disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.72em;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 680px) {
  .bcp-terms-grid     { grid-template-columns: 1fr; }
  .bcp-phases         { grid-template-columns: 1fr 1fr; }
  .bcp-liq-grid       { grid-template-columns: 1fr; }
  .bcp-compare        { grid-template-columns: 1fr; }
  .bcp-tools-grid     { grid-template-columns: 1fr; }
  .bcp-cta-inner      { flex-direction: column; gap: 18px; }
  .bcp-cta-actions    { width: 100%; min-width: unset; }
  .bcp-btn-primary, .bcp-btn-secondary { width: 100%; }
}
