/* ==============================================
   BINARY MLM SOFTWARE PAGE
   binary.css — Page-specific styles
   Extends: css/style.css
   ============================================== */

/* ===========================
   BREADCRUMB BAR
   =========================== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.625rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current="page"] { color: var(--gray-900); font-weight: 600; }
.breadcrumb i { color: var(--gray-400); font-size: 0.65rem; }

/* ===========================
   HERO — BINARY TWO COLUMN
   =========================== */
.hero-binary { min-height: 680px; padding: 4rem 0 5rem; }

/* ===========================
   BINARY HERO DIAGRAM
   (adapts bhd- pattern from board-mlm-software)
   =========================== */
.binary-hero-diagram {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 60px rgba(37,99,235,0.25);
  animation: float 6s ease-in-out infinite;
}
.binary-hero-diagram .bhd-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.binary-hero-diagram .bhd-header i { color: #60a5fa; }
.binary-hero-diagram .bhd-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.2);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.binary-hero-diagram .bhd-board-wrap { text-align: center; }
.binary-hero-diagram .bhd-you {
  display: flex;
  justify-content: center;
  margin-bottom: 0.375rem;
}
.binary-hero-diagram .bhd-you-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.binary-hero-diagram .bhd-you-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245,158,11,0.15);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.binary-hero-diagram .bhd-you-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.binary-hero-diagram .bhd-you-bv {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
}
.binary-hero-diagram .bhd-connector {
  width: 2px;
  height: 20px;
  background: rgba(37,99,235,0.4);
  margin: 0 auto;
}
.binary-hero-diagram .bhd-level-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3);
  margin: 0.4rem 0 0.6rem;
}
.binary-hero-diagram .bhd-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.binary-hero-diagram .bhd-position {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.binary-hero-diagram .bhd-position:hover { transform: translateY(-2px); }
.binary-hero-diagram .bhd-position.filled { border-color: rgba(59,130,246,0.35); }
.binary-hero-diagram .bhd-position.left-leg { border-color: rgba(16,185,129,0.4); }
.binary-hero-diagram .bhd-position.right-leg { border-color: rgba(139,92,246,0.4); }
.binary-hero-diagram .bhd-position.spillover { border-color: rgba(245,158,11,0.35); }
.bhd-leg-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.bhd-leg-tag.left { background: rgba(16,185,129,0.2); color: #10b981; }
.bhd-leg-tag.right { background: rgba(139,92,246,0.2); color: #a78bfa; }
.binary-hero-diagram .bhd-pos-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  border: 1.5px solid rgba(59,130,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #60a5fa;
}
.binary-hero-diagram .bhd-pos-avatar.sm { width: 30px; height: 30px; font-size: 0.75rem; }
.binary-hero-diagram .bhd-pos-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.binary-hero-diagram .bhd-pos-level {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
}
.binary-hero-diagram .bhd-pos-income {
  font-size: 0.6rem;
  color: #34d399;
  font-weight: 600;
}
/* Progress bar */
.binary-hero-diagram .bhd-progress-wrap {
  margin-top: 0.875rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.binary-hero-diagram .bhd-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.375rem;
  font-weight: 600;
}
.binary-hero-diagram .bhd-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.375rem;
}
.binary-hero-diagram .bhd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s ease;
}
.binary-hero-diagram .bhd-progress-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
/* Summary bar */
.binary-hero-diagram .bhd-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.875rem;
  padding: 0.625rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.binary-hero-diagram .bhd-sum-item { text-align: center; }
.binary-hero-diagram .bhd-sum-num {
  display: block;
  font-size: 1.125rem;
  font-weight: 900;
  color: #60a5fa;
  font-family: var(--font-primary);
  line-height: 1;
}
.binary-hero-diagram .bhd-sum-item.total .bhd-sum-num { color: #fbbf24; font-size: 1.25rem; }
.binary-hero-diagram .bhd-sum-lbl { font-size: 0.6rem; color: rgba(255,255,255,0.35); font-weight: 500; }
.binary-hero-diagram .bhd-sum-sep { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.15); }
/* Legend */
.binary-hero-diagram .bhd-legend {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.binary-hero-diagram .bhd-leg-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
}
.binary-hero-diagram .bhd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid;
  display: inline-block;
}
.binary-hero-diagram .bhd-dot.you { border-color: #f59e0b; background: rgba(245,158,11,0.25); }
.binary-hero-diagram .bhd-dot.left-l { border-color: #10b981; background: rgba(16,185,129,0.2); }
.binary-hero-diagram .bhd-dot.right-l { border-color: #a78bfa; background: rgba(139,92,246,0.2); }
.binary-hero-diagram .bhd-dot.spillover-d { border-color: #fbbf24; background: rgba(245,158,11,0.2); }

/* ===========================
   EEAT AUTHOR BOX
   =========================== */
.eeat-author-box {
  display: flex;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(99,102,241,0.04));
  border: 1px solid rgba(37,99,235,0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}
.eeat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.eeat-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.eeat-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 0.625rem;
}
.eeat-creds span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}
.eeat-creds i { color: var(--primary); font-size: 0.75rem; }
.eeat-summary {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ===========================
   BINARY PLAN AT A GLANCE
   =========================== */
.binary-plan-at-glance {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.binary-plan-at-glance h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.bpag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.bpag-item {
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
}
.bpag-val {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.bpag-lbl { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; line-height: 1.4; }

/* ===========================
   BG SECTION VARIANTS
   =========================== */
.bg-light-section { background: var(--gray-50); }
.bg-dark-section {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
}

/* ===========================
   BINARY TREE DIAGRAM
   =========================== */
.binary-tree-diagram {
  background: var(--gray-900);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255,255,255,0.06);
}
.btd-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.btd-header i { color: var(--primary-light); }

/* Level Labels */
.btd-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}

/* Level 0 — Root */
.btd-level-0 .btd-nodes { display: flex; justify-content: center; }

/* Connector from root to level 1 */
.btd-connector-main {
  width: 2px;
  height: 24px;
  background: rgba(37,99,235,0.5);
  margin: 0 auto;
}

/* Node styles */
.btd-nodes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.btd-nodes-8 { gap: 0.375rem; flex-wrap: wrap; }

.btd-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  cursor: default;
}
.btd-node-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  font-size: 0.65rem;
  font-weight: 700;
  gap: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btd-node-inner:hover { transform: scale(1.1); }
.btd-node-inner i { font-size: 1rem; }

/* Node types */
.btd-root .btd-node-inner {
  border-color: var(--warning);
  background: rgba(245,158,11,0.15);
  color: var(--warning);
  width: 64px;
  height: 64px;
  font-size: 0.7rem;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.btd-active .btd-node-inner {
  border-color: var(--primary-light);
  background: rgba(59,130,246,0.15);
  color: var(--primary-light);
}
.btd-inactive .btd-node-inner {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
  border-style: dashed;
}
.btd-node.sm .btd-node-inner { width: 42px; height: 42px; font-size: 0.6rem; }
.btd-node.sm .btd-node-inner i { font-size: 0.875rem; }

/* Leg labels */
.btd-leg-label {
  position: absolute;
  top: -18px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.btd-leg-label.left { background: rgba(16,185,129,0.2); color: #10b981; left: 0; }
.btd-leg-label.right { background: rgba(99,102,241,0.2); color: #818cf8; right: 0; }

/* BV display */
.btd-bv {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.btd-bv.spillover-tag {
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
}

/* Level spacing */
.btd-level { margin-bottom: 1rem; position: relative; }
.btd-level::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.2), transparent);
}

/* Tree Summary */
.btd-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.btd-sum-item { text-align: center; }
.sum-num {
  display: block;
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--primary-light);
  font-family: var(--font-primary);
  line-height: 1;
}
.btd-sum-item.total .sum-num { color: var(--warning); font-size: 1.75rem; }
.sum-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-weight: 500; }
.btd-sum-sep {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  align-self: flex-start;
  padding-top: 2px;
}

/* Legend */
.btd-legend {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.btd-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.btd-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid;
}
.btd-leg-dot.active { border-color: var(--primary-light); background: rgba(59,130,246,0.3); }
.btd-leg-dot.inactive { border-color: rgba(255,255,255,0.2); background: transparent; border-style: dashed; }
.btd-leg-dot.spillover { border-color: var(--warning); background: rgba(245,158,11,0.2); }

/* Tooltip */
.btd-node[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
}

/* ===========================
   BV FLOW SECTION
   =========================== */
.bv-flow-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}
.bv-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.bv-flow-step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.bv-flow-step:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.bvfs-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}
.bvfs-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(99,102,241,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0.75rem auto 1rem;
}
.bv-flow-step h4 { font-size: 0.9rem; margin-bottom: 0.625rem; }
.bv-flow-step p { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.7; margin: 0; }
.bv-flow-arrow { color: var(--primary-light); font-size: 1.375rem; text-align: center; }

/* ===========================
   COMMISSION CARDS
   =========================== */
.commissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.commission-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.commission-card:hover { border-color: var(--primary); box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.commission-card.primary-commission {
  grid-column: span 2;
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(37,99,235,0.03), rgba(99,102,241,0.03));
}
.cc-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cc-header h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.commission-badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
}
.commission-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.8; margin: 0; }

.commission-formula {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}
.cf-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  margin-bottom: 0.375rem;
}
.cf-equation {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  font-family: 'Courier New', monospace;
}

.commission-example {
  background: rgba(37,99,235,0.05);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}
.ce-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.ce-data {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.commission-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.commission-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}
.commission-details i { color: var(--success); font-size: 0.75rem; flex-shrink: 0; }

/* ===========================
   EARNINGS EXAMPLE SECTION
   =========================== */
.example-setup-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.example-setup-box h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.example-setup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.es-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 0.875rem;
}
.es-key { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 0.25rem; }
.es-val { font-size: 0.9375rem; font-weight: 700; color: #fff; }

.earnings-example-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.earnings-example-card > h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.earnings-example-card > h3 i { color: var(--primary-light); }
.earnings-example-card > p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

/* Earnings Timeline */
.earnings-timeline { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }

.et-day {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.et-day-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(37,99,235,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.et-day-num {
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.et-day-title { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.9375rem; }

.et-day-body { padding: 1.5rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; align-items: start; }

/* Mini Tree in Timeline */
.et-tree-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.etm-root {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
}
.etm-branches {
  display: flex;
  gap: 0.75rem;
}
.etm-node {
  flex: 1;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
}
.etm-node.left { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.etm-node.right { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.08); }
.etm-node small { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4); font-weight: 400; margin-top: 2px; }

/* Earnings Table */
.earnings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.earnings-table th {
  background: rgba(255,255,255,0.06);
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.earnings-table td {
  padding: 0.625rem 0.875rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8375rem;
  line-height: 1.5;
}
.earn-val { font-weight: 700; color: #10b981; text-align: right; white-space: nowrap; }
.earn-val.carry { color: var(--warning); }
.earn-subtotal td { background: rgba(37,99,235,0.1); border-top: 1px solid rgba(37,99,235,0.2); }
.earn-subtotal .earn-val { color: #a5b4fc; font-size: 1rem; }

.et-scenario-text { grid-column: span 2; }
.et-scenario-text p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.75rem; }
.et-scenario-text p:last-child { margin-bottom: 0; }

.et-bv-status {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.bv-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16,185,129,0.1);
  color: #6ee7b7;
}
.bv-stat.carry { background: rgba(245,158,11,0.1); color: #fbbf24; }
.bv-stat.right { background: rgba(99,102,241,0.1); color: #a5b4fc; }

/* Week Summary Box */
.week-summary-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 2rem;
}
.week-summary-box h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.week-summary-box i { color: var(--primary-light); }
.wsb-table-wrapper { overflow-x: auto; margin-bottom: 1.5rem; }
.wsb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 500px;
}
.wsb-table th {
  background: rgba(37,99,235,0.2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.wsb-table td {
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wsb-table .total-col { color: #a5b4fc; font-weight: 600; }
.grand-total-row td {
  background: rgba(37,99,235,0.15);
  border-top: 2px solid rgba(37,99,235,0.4);
  color: rgba(255,255,255,0.9);
}
.grand-total-row .total-col.highlight {
  color: #10b981;
  font-size: 1.0625rem;
}

.wsb-insight {
  display: flex;
  gap: 1rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
}
.wsb-insight i { color: #10b981; font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }

/* ===========================
   COMPARISON TABLE
   =========================== */
.advantages-visual {}
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.comparison-table th {
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.comparison-table th.highlight-col { background: rgba(37,99,235,0.08); color: var(--primary); }
.comparison-table td {
  padding: 0.625rem 1rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8375rem;
}
.comparison-table .highlight-col { background: rgba(37,99,235,0.03); color: var(--gray-700); font-weight: 600; }
.text-yellow { color: var(--warning); }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }

/* Plan Related Links */
.plan-related-links {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.plan-related-links h4 { font-size: 0.9375rem; margin-bottom: 1rem; }
.plan-related-links ul { display: flex; flex-direction: column; gap: 0.625rem; }
.plan-related-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.plan-related-links a:hover { color: var(--primary); padding-left: 6px; }
.plan-related-links i { color: var(--primary); width: 16px; }

/* ===========================
   RESPONSIVE — BINARY PAGE
   =========================== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .bv-flow-grid { grid-template-columns: 1fr 1fr; }
  .bv-flow-arrow { display: none; }
  .commissions-grid { grid-template-columns: 1fr; }
  .commission-card.primary-commission { grid-column: span 1; }
  .example-setup-grid { grid-template-columns: repeat(2, 1fr); }
  .et-day-body { grid-template-columns: 1fr; }
  .et-tree-mini { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; }
  .binary-tree-diagram { position: static; }
  /* Binary hero: hide visual on tablet */
  .hero-matrix-visual { display: none; }
  .hero-binary .hero-container { grid-template-columns: 1fr; }
  .hero-binary .hero-content { max-width: 100%; text-align: center; }
  .hero-binary .hero-actions { justify-content: center; }
  .hero-binary .hero-trust { justify-content: center; }
  .hero-binary .hero-badge { margin-left: auto; margin-right: auto; }
}

/* Tablet Small (≤768px) */
@media (max-width: 768px) {
  .eeat-author-box { flex-direction: column; }
  .bv-flow-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .btd-nodes { gap: 0.625rem; }
  .btd-nodes-8 { gap: 0.25rem; }
  .btd-node-inner { width: 44px; height: 44px; }
  .btd-root .btd-node-inner { width: 54px; height: 54px; }
  .example-setup-grid { grid-template-columns: 1fr 1fr; }
  .et-day-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .wsb-table { font-size: 0.8rem; }
  .wsb-table th, .wsb-table td { padding: 0.5rem 0.625rem; }
  .btd-summary { gap: 0.375rem; }
  .sum-num { font-size: 1rem; }
  .eeat-creds { gap: 0.5rem; }
  .commissions-grid { grid-template-columns: 1fr; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .example-setup-grid { grid-template-columns: 1fr; }
  .btd-nodes-8 { gap: 2px; }
  .btd-node.sm .btd-node-inner { width: 36px; height: 36px; font-size: 0.55rem; }
  .btd-node.sm .btd-node-inner i { font-size: 0.75rem; }
  .btd-leg-label { display: none; }
  .earnings-example-card { padding: 1.25rem; }
  .week-summary-box { padding: 1.25rem; }
  .bpag-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO BINARY TREE — bht-* namespace
   Professional 4-level animated tree in hero right panel
   ============================================================ */
.bht-wrap {
  background: linear-gradient(155deg, #06091a 0%, #0d1235 40%, #0a0f2e 100%);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 20px;
  padding: 1.375rem;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.12),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(79,70,229,0.12);
  animation: bhtFloat 7s ease-in-out infinite;
}
@keyframes bhtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Header */
.bht-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.875rem;
}
.bht-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.bht-header-left i { color: #818cf8; font-size: 0.9rem; }
.bht-badges { display: flex; gap: 0.375rem; }
.bht-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 9999px;
}
.bht-badge.green { background: rgba(16,185,129,0.18); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.bht-badge.green i { font-size: 0.5rem; margin-right: 2px; }
.bht-badge.blue  { background: rgba(99,102,241,0.2); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }

/* SVG overlay container */
.bht-svg-container {
  position: relative;
  padding: 0.375rem 0;
}
.bht-svg-container svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Animated SVG lines */
.bht-line {
  stroke-dashoffset: 200;
  animation: drawLine 1.2s ease forwards;
}
.left-line  { animation-delay: 0.3s; }
.right-line { animation-delay: 0.5s; }
.lvl3-line  { animation-delay: 0.9s; }
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Level containers */
.bht-level {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}
.bht-level-0 { margin-bottom: 0.5rem; }
.bht-level-1 { gap: 2rem; margin-bottom: 0.5rem; }
.bht-level-2 { gap: 0.625rem; margin-bottom: 0.5rem; }
.bht-level-3 { gap: 0.25rem; }

/* Level tag pills */
.bht-lvl-tag {
  position: absolute;
  right: 0;
  font-size: 0; /* hidden — visual cue via nodes */
}

.bht-leg-indicator {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  align-self: center;
}
.left-indicator  { color: #10b981; }
.right-indicator { color: #a78bfa; }
.bht-leg-indicator i { font-size: 0.5rem; }
.bht-spacer { flex: 1; max-width: 2.5rem; }

/* Node base */
.bht-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  cursor: default;
  z-index: 2;
}

/* Node avatars — root */
.bht-node-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.bht-node:hover .bht-node-avatar { transform: scale(1.12); }
.root-avatar {
  width: 52px; height: 52px;
  background: radial-gradient(135deg, rgba(245,158,11,0.25), rgba(245,158,11,0.08));
  border-color: #f59e0b;
  color: #fbbf24;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(245,158,11,0.4), 0 0 40px rgba(245,158,11,0.15);
}
.left-avatar {
  width: 44px; height: 44px;
  background: rgba(16,185,129,0.12);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 14px rgba(16,185,129,0.25);
}
.right-avatar {
  width: 44px; height: 44px;
  background: rgba(139,92,246,0.12);
  border-color: #8b5cf6;
  color: #a78bfa;
  box-shadow: 0 0 14px rgba(139,92,246,0.25);
}
.spill-avatar {
  width: 44px; height: 44px;
  background: rgba(245,158,11,0.12);
  border-color: #f59e0b;
  border-style: dashed;
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245,158,11,0.2);
}
.open-avatar {
  border-style: dashed;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.25);
}
/* Size variants */
.bht-node-avatar.sm { width: 36px; height: 36px; font-size: 0.85rem; }
.bht-node-avatar.xs { width: 28px; height: 28px; font-size: 0.7rem; }
.left-avatar.sm, .right-avatar.sm, .spill-avatar.sm, .open-avatar.sm { width: 36px; height: 36px; font-size: 0.8rem; }
.left-avatar.xs, .right-avatar.xs, .spill-avatar.xs, .open-avatar.xs { width: 28px; height: 28px; font-size: 0.65rem; }

/* Node text */
.bht-node-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.bht-node-bv {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
.bht-node-bonus {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 9999px;
}
.bht-left .bht-node-bonus { background: rgba(16,185,129,0.2); color: #34d399; }
.bht-right .bht-node-bonus { background: rgba(245,158,11,0.2); color: #fbbf24; }
.spill-bv { background: rgba(245,158,11,0.2); color: #fbbf24; padding: 1px 4px; border-radius: 9999px; }

/* Pulse ring on root */
.bht-node-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(245,158,11,0.4);
  animation: rootPulse 2.5s ease infinite;
  pointer-events: none;
}
@keyframes rootPulse {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(1.9); opacity: 0; }
}

/* BV Balance Bar */
.bht-balance-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.bht-bal-side {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 68px;
}
.bht-bal-side.left { align-items: flex-start; }
.bht-bal-side.right { align-items: flex-end; }
.bht-bal-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bht-bal-side.left .bht-bal-label { color: #10b981; }
.bht-bal-side.right .bht-bal-label { color: #a78bfa; }
.bht-bal-val {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
}
.bht-bal-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}
.bht-bal-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.bht-bal-fill.left-fill  { background: linear-gradient(90deg, #10b981, #34d399); }
.bht-bal-fill.right-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* Pairing Bonus Ticker */
.bht-bonus-ticker {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md);
  animation: tickerGlow 3s ease infinite;
}
@keyframes tickerGlow {
  0%,100% { box-shadow: 0 0 0 rgba(16,185,129,0); }
  50% { box-shadow: 0 0 12px rgba(16,185,129,0.2); }
}
.bht-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.bht-ticker-item i { color: #34d399; }
.bht-ticker-amt {
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 900;
}
.bht-ticker-badge {
  background: rgba(16,185,129,0.2);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.3);
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.58rem;
  font-weight: 700;
}

/* Summary row */
.bht-summary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.625rem;
  flex-wrap: wrap;
}
.bht-sum-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bht-sum-pill span { font-size: 0.875rem; font-weight: 900; }
.root-pill   { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.left-pill   { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.lvl2-pill   { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.lvl3-pill   { background: rgba(6,182,212,0.12);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.2); }
.total-pill  { background: rgba(236,72,153,0.12); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.2); }
.bht-sum-op { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.2); }

/* Legend */
.bht-legend {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.bht-leg-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}
.bht-leg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid;
  display: inline-block;
  flex-shrink: 0;
}
.root-dot  { border-color: #f59e0b; background: rgba(245,158,11,0.3); }
.left-dot  { border-color: #10b981; background: rgba(16,185,129,0.25); }
.right-dot { border-color: #8b5cf6; background: rgba(139,92,246,0.25); }
.spill-dot { border-color: #fbbf24; background: rgba(245,158,11,0.2); border-style: dashed; }
.open-dot  { border-color: rgba(255,255,255,0.25); background: transparent; border-style: dashed; }

/* Entry animations for nodes */
.bht-node { animation: nodeAppear 0.5s ease both; }
.bht-level-0 .bht-node { animation-delay: 0.1s; }
.bht-level-1 .bht-node:nth-child(1) { animation-delay: 0.35s; }
.bht-level-1 .bht-node:nth-child(3) { animation-delay: 0.5s; }
.bht-level-2 .bht-node:nth-child(1) { animation-delay: 0.65s; }
.bht-level-2 .bht-node:nth-child(2) { animation-delay: 0.75s; }
.bht-level-2 .bht-node:nth-child(3) { animation-delay: 0.85s; }
.bht-level-2 .bht-node:nth-child(4) { animation-delay: 0.95s; }
.bht-level-3 .bht-node:nth-child(n) { animation-delay: 1.1s; }
@keyframes nodeAppear {
  from { opacity: 0; transform: scale(0.6) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   BINARY TREE DIAGRAM v2 — btd2-* namespace (Section tree)
   Full-width, dark bg, professional connector lines
   ============================================================ */
.btd2-wrap {
  background: linear-gradient(160deg, #07091e 0%, #0d1235 50%, #090d26 100%);
  border-radius: 20px;
  border: 1px solid rgba(99,102,241,0.18);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.08);
  position: sticky;
  top: 100px;
}

/* Header */
.btd2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.25rem;
}
.btd2-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.btd2-header-left i { color: #818cf8; }
.btd2-header-right { display: flex; gap: 0.4rem; }
.btd2-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}
.btd2-badge.green { background: rgba(16,185,129,0.18); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.btd2-badge.blue  { background: rgba(99,102,241,0.2);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.28); }

/* Level structure */
.btd2-level {
  position: relative;
  margin-bottom: 0.375rem;
  animation: btd2LevelIn 0.6s ease both;
}
.btd2-l0 { animation-delay: 0.05s; }
.btd2-l1 { animation-delay: 0.25s; }
.btd2-l2 { animation-delay: 0.5s; }
.btd2-l3 { animation-delay: 0.8s; }
@keyframes btd2LevelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.btd2-level-tag {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.5rem;
}
.btd2-nodes {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.btd2-l2 .btd2-nodes { gap: 0.5rem; }
.btd2-l3 .btd2-nodes { gap: 0.25rem; flex-wrap: wrap; }

/* Individual nodes */
.btd2-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.225rem;
  position: relative;
  cursor: default;
  transition: transform 0.2s;
}
.btd2-node:hover { transform: translateY(-3px); }

/* Avatars */
.btd2-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid;
  transition: box-shadow 0.3s;
}
.btd2-node:hover .btd2-avatar { box-shadow: 0 0 18px currentColor; }

.btd2-root-av {
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), rgba(245,158,11,0.04));
  border-color: #f59e0b;
  color: #fbbf24;
  font-size: 1.25rem;
  box-shadow: 0 0 24px rgba(245,158,11,0.35), 0 0 50px rgba(245,158,11,0.1);
}
.btd2-left-av {
  background: rgba(16,185,129,0.12);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16,185,129,0.2);
}
.btd2-right-av {
  background: rgba(139,92,246,0.12);
  border-color: #8b5cf6;
  color: #a78bfa;
  box-shadow: 0 0 12px rgba(139,92,246,0.2);
}
.btd2-spill-av {
  background: rgba(245,158,11,0.12);
  border-color: #f59e0b;
  border-style: dashed;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245,158,11,0.2);
}
.btd2-open-av {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.18);
  border-style: dashed;
  color: rgba(255,255,255,0.2);
}

/* Avatar sizes */
.btd2-l1 .btd2-avatar { width: 54px; height: 54px; font-size: 1.1rem; }
.btd2-avatar.md        { width: 44px; height: 44px; font-size: 0.9rem; }
.btd2-avatar.xs        { width: 34px; height: 34px; font-size: 0.75rem; }

/* Leg pill label */
.btd2-leg-pill {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}
.left-pill  { background: rgba(16,185,129,0.2); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.right-pill { background: rgba(139,92,246,0.2); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }

/* Spillover badge */
.btd2-spill-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  border: 1px dashed rgba(245,158,11,0.4);
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  animation: spillFlash 2s ease infinite;
}
@keyframes spillFlash {
  0%,100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Node text */
.btd2-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.btd2-comm {
  font-size: 0.58rem;
  font-weight: 700;
  background: rgba(16,185,129,0.15);
  color: #34d399;
  padding: 1px 5px;
  border-radius: 9999px;
}
.btd2-comm.spill {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
}

/* BV pills */
.btd2-bv-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}
.root-bv  { background: rgba(245,158,11,0.18); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.left-bv  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.right-bv { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.spill-bv { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px dashed rgba(245,158,11,0.35); }
.btd2-bv-pill.sm { font-size: 0.57rem; padding: 1px 5px; }

/* Root pulse ring */
.btd2-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(245,158,11,0.3);
  transform: translate(-50%, -50%);
  animation: btd2Pulse 2.8s ease infinite;
  pointer-events: none;
}
@keyframes btd2Pulse {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2); opacity: 0; }
}

/* ── Connector lines (pure CSS) ── */
.btd2-connector-row { position: relative; margin: 0.25rem 0; z-index: 1; }

/* Root connector */
.c-root .btd2-conn-vert {
  width: 2px; height: 14px;
  background: linear-gradient(180deg, #f59e0b, rgba(99,102,241,0.6));
  margin: 0 auto;
  animation: connGrow 0.4s ease both;
  animation-delay: 0.2s;
}
.c-root .btd2-conn-horiz {
  display: flex;
  justify-content: center;
  gap: 30%;
}
.c-root .btd2-conn-h {
  height: 2px;
  flex: 1;
  max-width: 100px;
  animation: connGrowH 0.4s ease both;
}
.c-root .left-conn  { background: linear-gradient(90deg, transparent, #10b981); animation-delay: 0.3s; }
.c-root .right-conn { background: linear-gradient(90deg, #8b5cf6, transparent); animation-delay: 0.4s; }

/* L1 connector branches */
.c-l1 .btd2-conn-branches {
  display: flex;
  justify-content: center;
  gap: 30%;
}
.btd2-branch-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btd2-branch-vert {
  width: 2px; height: 12px;
  animation: connGrow 0.4s ease both;
}
.left-branch .btd2-branch-vert  { background: #10b981; animation-delay: 0.45s; }
.right-branch .btd2-branch-vert { background: #8b5cf6; animation-delay: 0.55s; }
.btd2-branch-horiz {
  display: flex;
  gap: 12px;
}
.btd2-bh {
  width: 30px; height: 2px;
  animation: connGrowH 0.35s ease both;
}
.left-bh  { background: linear-gradient(90deg,#10b981,#34d399); animation-delay: 0.5s; }
.right-bh { background: linear-gradient(90deg,#8b5cf6,#a78bfa); animation-delay: 0.6s; }

/* L2→L3 mini connectors */
.c-l2 .btd2-conn-branches-8 {
  display: flex;
  justify-content: space-around;
  padding: 0 5%;
}
.btd2-b8 {
  width: 2px; height: 12px;
  animation: connGrow 0.3s ease both;
  animation-delay: 0.75s;
}
.left-b8  { background: linear-gradient(180deg, #10b981, rgba(16,185,129,0.3)); }
.right-b8 { background: linear-gradient(180deg, #8b5cf6, rgba(139,92,246,0.3)); }

@keyframes connGrow  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes connGrowH { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Summary ── */
.btd2-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.btd2-sum-item { text-align: center; }
.btd2-sum-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.root-s .btd2-sum-num  { color: #f59e0b; }
.left-s .btd2-sum-num  { color: #10b981; }
.right-s .btd2-sum-num { color: #a78bfa; }
.total-s .btd2-sum-num { color: #f9a8d4; font-size: 1.875rem; }
.btd2-sum-lbl { font-size: 0.62rem; color: rgba(255,255,255,0.35); font-weight: 500; }
.btd2-sum-sep { font-size: 1.25rem; font-weight: 700; color: rgba(255,255,255,0.15); align-self: flex-start; padding-top: 2px; }

/* ── Legend ── */
.btd2-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.875rem;
}
.btd2-leg-i {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}
.btd2-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  display: inline-block;
}
.root-d  { border-color: #f59e0b; background: rgba(245,158,11,0.25); }
.left-d  { border-color: #10b981; background: rgba(16,185,129,0.2); }
.right-d { border-color: #8b5cf6; background: rgba(139,92,246,0.2); }
.spill-d { border-color: #f59e0b; background: rgba(245,158,11,0.15); border-style: dashed; }
.open-d  { border-color: rgba(255,255,255,0.2); background: transparent; border-style: dashed; }

/* ============================================================
   SPILLOVER TREE — spill-* namespace
   Animated step-by-step placement tree for Day 2-3 section
   ============================================================ */
.spill-tree-wrap {
  background: linear-gradient(155deg, #06091a 0%, #0d1235 100%);
  border: 1.5px solid rgba(99,102,241,0.2);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.spill-tree-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.spill-tree-title i { color: #818cf8; }
.spill-live-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16,185,129,0.18);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.spill-live-badge i {
  font-size: 0.45rem;
  animation: blinkDot 1.5s ease infinite;
}
@keyframes blinkDot { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Levels */
.spill-level {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 0.375rem;
}
.spill-l0 { margin-bottom: 0.5rem; }
.spill-l2 { gap: 0.5rem; }

/* Individual nodes */
.spill-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  min-width: 80px;
}

/* Avatars */
.spill-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  width: 48px; height: 48px;
  font-size: 1rem;
  transition: transform 0.2s;
}
.spill-node:hover .spill-avatar { transform: scale(1.1); }
.root-av   { background: rgba(245,158,11,0.15); border-color: #f59e0b; color: #fbbf24; box-shadow: 0 0 18px rgba(245,158,11,0.3); }
.left-av   { background: rgba(16,185,129,0.12); border-color: #10b981; color: #34d399; box-shadow: 0 0 12px rgba(16,185,129,0.2); }
.right-av  { background: rgba(139,92,246,0.12); border-color: #8b5cf6; color: #a78bfa; box-shadow: 0 0 12px rgba(139,92,246,0.2); }
.spill-av  { background: rgba(245,158,11,0.12); border-color: #f59e0b; border-style: dashed; color: #fbbf24; box-shadow: 0 0 16px rgba(245,158,11,0.25); }

.spill-l1 .spill-avatar { width: 44px; height: 44px; font-size: 0.95rem; }
.spill-l2 .spill-avatar { width: 40px; height: 40px; font-size: 0.875rem; }

/* Text */
.spill-name { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.8); }
.spill-role { font-size: 0.58rem; color: rgba(255,255,255,0.35); text-align: center; }
.spill-bv   { font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.5); }

/* Badges */
.spill-leg-pill {
  position: absolute;
  top: -16px;
  left: 50%; transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}
.left-lp  { background: rgba(16,185,129,0.2); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.right-lp { background: rgba(139,92,246,0.2); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }

.spill-new-badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(6,182,212,0.2);
  color: #67e8f9;
  border: 1px solid rgba(6,182,212,0.3);
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.spill-spill-badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  border: 1px dashed rgba(245,158,11,0.5);
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
  animation: spillFlash 1.8s ease infinite;
}

.spill-origin {
  font-size: 0.55rem;
  color: rgba(245,158,11,0.6);
  font-style: italic;
  text-align: center;
}

/* Appear animation */
.anim-appear {
  animation: spillAppear 0.6s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes spillAppear {
  from { opacity: 0; transform: scale(0.5) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Connector elements */
.spill-conn { margin: 0.25rem 0; }
.spill-conn-root {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spill-vert {
  height: 14px; width: 2px;
  animation: connGrow 0.4s ease both;
}
.root-vert { background: linear-gradient(180deg, #f59e0b, rgba(99,102,241,0.7)); animation-delay: 0.15s; }
.spill-horiz-wrap {
  display: flex;
  justify-content: center;
  gap: 8rem;
}
.spill-horiz {
  height: 2px;
  width: 60px;
  animation: connGrowH 0.35s ease both;
}
.left-horiz  { background: linear-gradient(90deg, transparent, #10b981); animation-delay: 0.25s; }
.right-horiz { background: linear-gradient(90deg, #8b5cf6, transparent); animation-delay: 0.35s; }

.spill-conn-l1 {
  display: flex;
  justify-content: center;
  gap: 8rem;
}
.spill-branch-grp { display: flex; flex-direction: column; align-items: center; }
.spill-branch-v {
  width: 2px; height: 12px;
  animation: connGrow 0.35s ease both;
}
.left-bv  { background: #10b981; animation-delay: 0.45s; }
.right-bv-l { background: #8b5cf6; animation-delay: 0.55s; }
.spill-branch-h-wrap { display: flex; gap: 8px; }
.spill-branch-h {
  width: 28px; height: 2px;
  animation: connGrowH 0.3s ease both;
}
.lbh { background: linear-gradient(90deg,#10b981,#34d399); animation-delay: 0.5s; }
.rbh { background: linear-gradient(90deg,#8b5cf6,#a78bfa); animation-delay: 0.6s; }
/* Spillover branch animated in */
.spill-branch-animated {
  animation: connGrowH 0.5s ease both, spill-branch-glow 2s ease infinite 0.8s !important;
  animation-delay: 1s;
  background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}
@keyframes spill-branch-glow {
  0%,100%{box-shadow:none} 50%{box-shadow:0 0 8px rgba(245,158,11,0.8)}
}

/* Spillover annotation */
.spill-annotation {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(245,158,11,0.07);
  border: 1px dashed rgba(245,158,11,0.3);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin: 1rem 0;
}
.spill-ann-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.spill-ann-text i { color: #fbbf24; margin-right: 0.375rem; }
.spill-ann-text strong { color: #fbbf24; }

/* BV Row */
.spill-bv-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.875rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.spill-bv-side { display: flex; flex-direction: column; gap: 0.375rem; }
.left-bvs  .spill-bv-label { color: #10b981; }
.right-bvs .spill-bv-label { color: #a78bfa; text-align: right; }
.spill-bv-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.left-bvs  .spill-bv-label i { color: #10b981; font-size: 0.5rem; }
.right-bvs .spill-bv-label i { color: #a78bfa; font-size: 0.5rem; }
.spill-bv-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.spill-bv-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 1.5s ease;
  width: 0;
  animation: barGrow 1.5s ease forwards 1.5s;
}
@keyframes barGrow { from{width:0} to{width:var(--target-w, 70%)} }
.spill-bv-num {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}
.right-bvs .spill-bv-num { text-align: right; }
/* Pairing badge */
.spill-pair-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.12));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px;
  padding: 0.625rem 0.75rem;
  text-align: center;
  min-width: 70px;
}
.spill-pair-badge i { color: #34d399; font-size: 1.1rem; }
.spill-pair-badge div { font-size: 0.62rem; color: rgba(255,255,255,0.55); font-weight: 600; }
.spill-pair-earn {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: #34d399 !important;
  font-family: var(--font-heading);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bht-wrap { padding: 1rem; }
  .bht-level-1 { gap: 1.25rem; }
  .bht-spacer { max-width: 1.25rem; }
  .btd2-wrap { position: static; padding: 1.25rem 1rem; }
  .btd2-l1 .btd2-nodes { gap: 0.5rem; }
  .spill-tree-wrap { padding: 1rem; }
  .spill-conn-root .spill-horiz-wrap { gap: 5rem; }
  .spill-conn-l1 { gap: 5rem; }
  .spill-bv-row { grid-template-columns: 1fr; }
  .spill-pair-badge { margin: 0 auto; }
}
@media (max-width: 480px) {
  .bht-level-1 { gap: 0.75rem; }
  .bht-level-2, .bht-level-3 { gap: 0.2rem; }
  .bht-node-bonus, .bht-node-bv { display: none; }
  .btd2-l3 .btd2-nodes { gap: 0.15rem; }
  .spill-l2 { flex-wrap: wrap; justify-content: center; }
}

/* ================================================================
   HERO BINARY TREE v3 — SVG-ONLY PERFECT 1+2+4+8 STRUCTURE
   bht-wrap-v3 extends the base bht-wrap with v3 overrides
   ================================================================ */

/* Override wrap for v3 */
.bht-wrap-v3 {
  background: linear-gradient(145deg, #04071a 0%, #080f2a 35%, #060d22 70%, #030714 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 22px;
  padding: 1.25rem 1.375rem 1rem;
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.1),
    0 24px 70px rgba(0,0,0,0.55),
    0 0 100px rgba(79,70,229,0.14),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: bhtFloat 7s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow inside the card */
.bht-wrap-v3::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 25%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.bht-wrap-v3::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Canvas wrap — holds the full SVG */
.bht-canvas-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 0.75rem;
}
.bht-master-svg {
  width: 100%;
  height: auto;
  display: block;
  /* Keep aspect ratio — viewBox 500x390 */
}

/* ── SVG Element Classes ── */

/* Connector lines — animated draw effect */
.svg-conn {
  animation: svgDrawLine 1s ease forwards;
}
.svg-conn-l1-left  { animation-delay: 0.2s; }
.svg-conn-l1-right { animation-delay: 0.35s; }
.svg-conn-l2       { animation-delay: 0.6s; }
.svg-conn-l3       { animation-delay: 0.9s; }

@keyframes svgDrawLine {
  to { stroke-dashoffset: 0; }
}

/* Root node */
.svg-root-bg {
  fill: rgba(245,158,11,0.18);
  animation: svgNodePop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.05s;
}
.svg-root-ring1 {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2.5;
  animation: svgNodePop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.05s;
}
.svg-root-ring2 {
  fill: none;
  stroke: rgba(245,158,11,0.25);
  stroke-width: 1.5;
  animation: rootRingPulse 2.5s ease infinite;
  animation-delay: 1s;
}
@keyframes rootRingPulse {
  0%   { r: 26; opacity: 0.5; }
  100% { r: 38; opacity: 0; }
}

/* Level 1 nodes */
.svg-left-bg {
  fill: rgba(16,185,129,0.15);
  animation: svgNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.4s;
}
.svg-left-ring {
  fill: none;
  stroke: #10b981;
  stroke-width: 2.5;
  animation: svgNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.4s;
}
.svg-right-bg {
  fill: rgba(139,92,246,0.15);
  animation: svgNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.55s;
}
.svg-right-ring {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 2.5;
  animation: svgNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.55s;
}

/* Level 2 nodes */
.svg-l2-left-bg {
  fill: rgba(6,182,212,0.12);
  animation: svgNodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.8s;
}
.svg-l2-left-ring {
  fill: none;
  stroke: #06b6d4;
  stroke-width: 2;
  animation: svgNodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.8s;
}
.svg-l2-right-bg {
  fill: rgba(124,58,237,0.12);
  animation: svgNodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.9s;
}
.svg-l2-right-ring {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 2;
  animation: svgNodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.9s;
}
.svg-l2-spill-bg {
  fill: rgba(245,158,11,0.12);
  animation: svgNodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 1s;
}
.svg-l2-spill-ring {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-dasharray: 5,3;
  animation: svgNodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both, spillDash 1.5s linear infinite;
  animation-delay: 1s, 1.5s;
}
@keyframes spillDash {
  to { stroke-dashoffset: -20; }
}

/* Level 3 circles */
.svg-l3-left {
  fill: rgba(6,182,212,0.1);
  stroke: rgba(6,182,212,0.6);
  stroke-width: 1.5;
  animation: svgNodePop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 1.1s;
}
.svg-l3-right {
  fill: rgba(124,58,237,0.1);
  stroke: rgba(124,58,237,0.6);
  stroke-width: 1.5;
  animation: svgNodePop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 1.15s;
}

/* Pop animation */
@keyframes svgNodePop {
  from { opacity: 0; transform: scale(0.5); transform-origin: center; }
  to   { opacity: 1; transform: scale(1);   transform-origin: center; }
}

/* Text in SVG */
.svg-node-icon {
  text-anchor: middle;
  dominant-baseline: central;
  font-size: 14px;
}
.svg-sm-icon  { font-size: 11px; }
.svg-xs-icon  { font-size: 9px; }
.svg-node-name {
  text-anchor: middle;
  font-size: 9px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
}
.svg-root-name  { fill: #fbbf24; font-size: 10px; }
.svg-left-name  { fill: #34d399; }
.svg-right-name { fill: #a78bfa; }
.svg-l2-left-name  { fill: #67e8f9; font-size: 8.5px; }
.svg-l2-right-name { fill: #c4b5fd; font-size: 8.5px; }
.svg-l2-spill-name { fill: #fbbf24; font-size: 8.5px; }
.svg-node-bv {
  text-anchor: middle;
  font-size: 7px;
  fill: rgba(255,255,255,0.4);
  font-family: "Inter", sans-serif;
}
.svg-xs-bv { font-size: 6.5px; }
.svg-spill-bv {
  fill: #fbbf24;
  font-size: 7px;
  font-weight: 700;
}
.svg-l3-name {
  text-anchor: middle;
  font-size: 8px;
  font-weight: 700;
  fill: rgba(255,255,255,0.5);
  font-family: "Inter", sans-serif;
}
.svg-l3-left-n  { fill: rgba(103,232,249,0.7); }
.svg-l3-right-n { fill: rgba(196,181,253,0.7); }

/* Level labels in SVG */
.svg-lvl-txt {
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.svg-lvl-root { fill: rgba(245,158,11,0.5); }
.svg-lvl-1    { fill: rgba(99,102,241,0.5); }
.svg-lvl-2    { fill: rgba(6,182,212,0.5); }
.svg-lvl-3    { fill: rgba(124,58,237,0.4); }

/* Side labels in SVG */
.svg-side-label {
  font-family: "Inter", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-anchor: middle;
}
.svg-left-label  { fill: rgba(16,185,129,0.65); }
.svg-right-label { fill: rgba(139,92,246,0.65); }

/* Floating bonus badge in SVG */
.svg-bonus-rect {
  fill: rgba(16,185,129,0.12);
  stroke: rgba(16,185,129,0.3);
  stroke-width: 1;
  rx: 15;
  animation: bonusGlow 2.5s ease infinite;
  animation-delay: 2s;
}
@keyframes bonusGlow {
  0%,100% { fill: rgba(16,185,129,0.12); }
  50%      { fill: rgba(16,185,129,0.22); }
}
.svg-bonus-text {
  text-anchor: middle;
  font-size: 9px;
  font-weight: 800;
  fill: #34d399;
  font-family: "Inter", sans-serif;
  animation: svgNodePop 0.4s ease both;
  animation-delay: 1.4s;
}

/* ────────────────────────────────────────────────
   Day 1 Tree SVG (etm-svg-wrap)
──────────────────────────────────────────────── */
.etm-svg-wrap {
  background: linear-gradient(135deg, rgba(6,9,30,0.9), rgba(13,18,53,0.9));
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 16px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}
.etm-svg {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
}
/* Animate Day-1 tree lines */
.d1-line {
  animation: svgDrawLine 0.9s ease forwards;
  animation-delay: 0.2s;
}
.d1-line-r { animation-delay: 0.4s; }

/* ────────────────────────────────────────────────
   Spillover SVG Tree — spill-svg-* / sg-* namespace
──────────────────────────────────────────────── */
.spill-svg-wrap {
  background: linear-gradient(145deg, #04071a 0%, #080f2a 50%, #060d22 100%);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 18px;
  padding: 0.875rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}
.spill-svg-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(16,185,129,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(139,92,246,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.spill-master-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Connector lines in spillover tree */
.sg-line {
  animation: svgDrawLine 0.9s ease forwards;
}
.sg-line-left  { animation-delay: 0.2s; }
.sg-line-right { animation-delay: 0.35s; }
.sg-line-l2-left  { animation-delay: 0.7s; }
.sg-line-l2-right { animation-delay: 0.85s; }
.sg-line-spill {
  animation: svgDrawLine 1s ease forwards, spillDash 1.2s linear infinite;
  animation-delay: 1s, 2s;
}

/* Animated node appearance */
.sg-anim-node {
  animation: svgNodePop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.sg-spill-node {
  animation: svgNodePop 0.5s cubic-bezier(0.34,1.56,0.64,1) both, spillNodeGlow 2s ease infinite;
}
@keyframes spillNodeGlow {
  0%,100% { stroke-width: 2.5; }
  50%     { stroke-width: 4; }
}

/* Spillover spinning ring */
.sg-spill-ring {
  animation: sgSpillSpin 3s linear infinite;
  animation-delay: 1.5s;
  transform-origin: 512px 252px;
}
@keyframes sgSpillSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Spillover dashed arrow */
.sg-spill-arrow {
  animation: svgDrawLine 1.5s ease forwards;
  animation-delay: 2s;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

/* Root pulse rings in spillover SVG */
.sg-pulse-1 {
  animation: sgPulse 2.5s ease infinite;
  animation-delay: 1s;
}
.sg-pulse-2 {
  animation: sgPulse 2.5s ease infinite;
  animation-delay: 1.6s;
}
@keyframes sgPulse {
  0%   { r: 28; opacity: 0.6; }
  100% { r: 52; opacity: 0; }
}

/* Spillover info box */
.spill-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid #f59e0b;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.spill-info-icon {
  color: #fbbf24;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.spill-info-text {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.spill-info-text strong { color: #fbbf24; }

/* ────────────────────────────────────────────────
   Responsive for new SVG trees
──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bht-canvas-wrap { overflow-x: auto; }
  .bht-master-svg  { min-width: 380px; }
  .spill-master-svg { min-width: 400px; }
  .spill-svg-wrap { overflow-x: auto; }
  .etm-svg { max-height: 150px; }
}
@media (max-width: 480px) {
  .bht-master-svg  { min-width: 320px; }
  .spill-master-svg { min-width: 360px; }
  .bht-wrap-v3 { padding: 0.875rem; }
  .spill-svg-wrap { padding: 0.5rem; }
}

/* ================================================================
   WIB ACCORDION
   Used in: "What is Binary MLM Software?" (left side)
            "Advantages of the Binary Compensation Plan" (left side)
   ================================================================ */

.wib-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Each accordion item */
.wib-acc-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.wib-acc-item:hover {
  border-color: rgba(79,70,229,0.25);
  box-shadow: 0 4px 18px rgba(79,70,229,0.07);
}
.wib-acc-item.wib-acc-open {
  border-color: rgba(79,70,229,0.3);
  box-shadow: 0 6px 24px rgba(79,70,229,0.1);
}

/* Trigger (button) */
.wib-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.wib-acc-trigger:hover {
  background: rgba(79,70,229,0.03);
}
.wib-acc-open .wib-acc-trigger {
  background: linear-gradient(90deg, rgba(79,70,229,0.04), rgba(99,102,241,0.02));
}

/* Icon circle */
.wib-acc-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: transform 0.25s;
}
.wib-acc-open .wib-acc-icon {
  transform: scale(1.08);
}

/* Advantage-specific icon colours */
.adv-icon-1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.adv-icon-2 { background: linear-gradient(135deg, #10b981, #34d399); }
.adv-icon-3 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.adv-icon-4 { background: linear-gradient(135deg, #06b6d4, #67e8f9); }
.adv-icon-5 { background: linear-gradient(135deg, #ec4899, #f472b6); }

/* Title */
.wib-acc-title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  transition: color 0.2s;
}
.wib-acc-open .wib-acc-title {
  color: var(--primary);
}

/* Chevron */
.wib-acc-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.75rem;
  transition: transform 0.3s, background 0.2s, color 0.2s;
}
.wib-acc-open .wib-acc-chevron {
  transform: rotate(180deg);
  background: rgba(79,70,229,0.1);
  color: var(--primary);
}

/* Body (collapsible) */
.wib-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}
.wib-acc-body-inner,
.wib-acc-body > p,
.wib-acc-body > div {
  padding: 0 1.125rem 1.125rem 4.25rem; /* aligns with title */
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.wib-acc-body > p {
  padding: 0 1.125rem 0.625rem 4.25rem;
}
.wib-acc-body > p:last-child {
  padding-bottom: 1.125rem;
}
.wib-acc-body > p + p {
  padding-top: 0;
}
.wib-acc-body strong { color: var(--gray-800); }

/* Expert Insight callout inside accordion */
.wib-insight-callout {
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(99,102,241,0.03));
  border: 1px solid rgba(79,70,229,0.15);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  margin: 0 1.125rem 1.125rem 4.25rem;
}
.wib-insight-callout strong {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-bottom: 0.625rem;
}
.wib-insight-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wib-insight-callout li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.wib-insight-callout li i { color: var(--primary); font-size: 0.8rem; }
.wib-insight-callout li strong { display: inline; color: var(--primary); }

/* ================================================================
   WIB RIGHT-SIDE CARDS — "What is Binary MLM Software?"
   ================================================================ */

/* Card 1 — Quick Reference checklist */
.wib-ref-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.wib-ref-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(79,70,229,0.06), rgba(99,102,241,0.02));
  border-bottom: 1px solid var(--gray-100);
}
.wib-ref-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.wib-ref-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

/* Checklist with left/right colour coding */
.wib-check-list {
  list-style: none;
  padding: 0.75rem 1.25rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wib-check-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--gray-50);
}
.wib-check-list li:last-child { border-bottom: none; }
.wib-chk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.wib-chk.left  { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.wib-chk.right { background: rgba(139,92,246,0.12); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.25); }
.wib-check-list li strong { color: var(--gray-900); }

/* Card 2 — Key Metrics */
.wib-metrics-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 1.125rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(79,70,229,0.2);
}
.wib-metrics-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.wib-metrics-header i {
  color: #a5b4fc;
  font-size: 1.1rem;
}
.wib-metrics-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wib-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.wib-metric-item {
  text-align: center;
  padding: 0.875rem 0.5rem;
  border-radius: 12px;
  transition: transform 0.2s;
}
.wib-metric-item:hover { transform: translateY(-2px); }
.wib-m-left  { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.25); }
.wib-m-right { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.25); }
.wib-m-bonus { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.25); }
.wib-m-pair  { background: rgba(6,182,212,0.15);  border: 1px solid rgba(6,182,212,0.25); }
.wib-metric-val {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.375rem;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}
.wib-m-left  .wib-metric-val { color: #34d399; }
.wib-m-right .wib-metric-val { color: #a78bfa; }
.wib-m-bonus .wib-metric-val { color: #fbbf24; }
.wib-m-pair  .wib-metric-val { color: #67e8f9; }
.wib-metric-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  font-weight: 500;
}

/* Card 3 — Market Facts */
.wib-market-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.wib-market-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(245,158,11,0.06), rgba(251,191,36,0.02));
  border-bottom: 1px solid var(--gray-100);
}
.wib-market-header i { color: #f59e0b; font-size: 1.1rem; }
.wib-market-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}
.wib-market-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wib-market-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.2s;
}
.wib-market-item:last-child { border-bottom: none; }
.wib-market-item:hover { background: var(--gray-50); }
.wib-mkt-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 80px;
}
.wib-mkt-val {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  line-height: 1;
}
.wib-mkt-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}
.wib-mkt-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.4;
}

/* ================================================================
   ADV RIGHT-SIDE CARDS — "Advantages" section
   ================================================================ */

/* Comparison table card */
.adv-compare-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.adv-compare-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  background: linear-gradient(90deg, rgba(79,70,229,0.07), rgba(99,102,241,0.02));
  border-bottom: 1px solid var(--gray-100);
}
.adv-compare-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.adv-compare-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}
.adv-compare-table-wrap {
  overflow-x: auto;
}
.adv-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.adv-compare-table thead tr {
  background: linear-gradient(90deg, rgba(79,70,229,0.08), rgba(99,102,241,0.04));
}
.adv-compare-table th {
  padding: 0.75rem 0.875rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--gray-200);
}
.adv-compare-table th:first-child { text-align: left; }
.adv-compare-table th.adv-hl-col {
  color: var(--primary);
  background: rgba(79,70,229,0.06);
}
.adv-compare-table td {
  padding: 0.625rem 0.875rem;
  text-align: center;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.adv-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
}
.adv-compare-table tbody tr:last-child td { border-bottom: none; }
.adv-compare-table tbody tr:hover { background: var(--gray-50); }
/* Highlighted Binary column */
.adv-compare-table .adv-hl-col {
  background: rgba(79,70,229,0.04);
  font-weight: 700;
}
.adv-compare-table .adv-best {
  color: var(--primary);
  font-weight: 700;
}
.adv-compare-table .adv-best i { margin-right: 3px; }
.adv-compare-table .adv-yes { color: #10b981; font-weight: 600; }
.adv-compare-table .adv-no  { color: #ef4444; }
.adv-compare-table .adv-best .fa-star  { color: #f59e0b; }
.adv-compare-table .adv-best .fa-check { color: #10b981; }
.adv-compare-table .adv-best .fa-bolt  { color: #f59e0b; }

/* Explore Plans card */
.adv-plans-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 1.125rem 1.25rem;
  box-shadow: 0 8px 32px rgba(79,70,229,0.2);
}
.adv-plans-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.adv-plans-header i { color: #a5b4fc; font-size: 1rem; }
.adv-plans-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.adv-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.adv-plan-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.adv-plan-link:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.35);
  color: #fff;
  transform: translateX(3px);
  text-decoration: none;
}
.adv-plan-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.adv-plan-link:hover .adv-plan-icon {
  background: rgba(99,102,241,0.35);
}
.adv-plan-link span { flex: 1; }
.adv-plan-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  transition: color 0.2s, transform 0.2s;
}
.adv-plan-link:hover .adv-plan-arrow {
  color: rgba(255,255,255,0.6);
  transform: translateX(2px);
}
.adv-plan-all {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.2);
  color: rgba(255,255,255,0.8);
  margin-top: 0.25rem;
}
.adv-plan-all:hover {
  background: rgba(245,158,11,0.2);
  border-color: rgba(245,158,11,0.4);
}
.adv-plan-all .adv-plan-icon {
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wib-acc-body > p,
  .wib-acc-body > div { padding-left: 1.125rem; }
  .wib-insight-callout { margin-left: 1.125rem; }
  .wib-metrics-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .wib-acc-trigger { gap: 0.625rem; padding: 0.875rem 1rem; }
  .wib-acc-title { font-size: 0.875rem; }
  .wib-acc-icon { width: 34px; height: 34px; font-size: 0.8rem; }
  .wib-metrics-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .adv-compare-table { font-size: 0.78rem; }
  .adv-compare-table th,
  .adv-compare-table td { padding: 0.5rem 0.5rem; }
}
