/* ============================================================
   TRADING BLAZE — Custom Ghost Theme
   Version 1.0.0
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080d1a;
  --bg2: #0d1526;
  --bg3: #111d35;
  --surface: #0f1a2e;
  --surface2: #162035;
  --surface3: #1e2f4a;
  --border: #1e2f4a;
  --border2: #2a3f5f;
  --orange: #e87820;
  --orange2: #fb923c;
  --orange-dim: rgba(232,120,32,0.12);
  --orange-glow: rgba(232,120,32,0.08);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --gold: #fbbf24;
  --text: #f0f4ff;
  --text2: #8899bb;
  --text3: #445577;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --transition: all 0.2s ease;
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --max-width-wide: 1100px;
}

html { scroll-behavior: smooth; }

body.tb-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange2); }
p { color: var(--text2); line-height: 1.8; }
img { max-width: 100%; height: auto; }

/* ── Layout ─────────────────────────────────────────────────── */
.tb-main { min-height: 80vh; }
.tb-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.tb-container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 24px; }
.tb-container-wide { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.tb-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 24px; border-radius: var(--radius);
  border: 2px solid var(--orange);
  transition: var(--transition); cursor: pointer;
  white-space: nowrap;
}
.tb-btn-primary:hover { background: var(--orange2); border-color: var(--orange2); color: #fff; transform: translateY(-1px); }
.tb-btn-primary.tb-btn-lg { padding: 14px 32px; font-size: 16px; }

.tb-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--orange);
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 24px; border-radius: var(--radius);
  border: 2px solid var(--orange);
  transition: var(--transition); cursor: pointer;
}
.tb-btn-outline:hover { background: var(--orange-dim); color: var(--orange); }

.tb-btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text2);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--border2);
  transition: var(--transition);
}
.tb-btn-ghost:hover { color: var(--text); border-color: var(--text3); }

/* ── Section Components ─────────────────────────────────────── */
.tb-section-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 8px; display: block;
}
.tb-section-title {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.5px;
}
.tb-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.tb-section-header.tb-section-center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.tb-view-all {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--orange);
}
.tb-view-all:hover { color: var(--orange2); }

/* ── Header ─────────────────────────────────────────────────── */
.tb-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,13,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.tb-header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}

.tb-logo { display: flex; align-items: center; flex-shrink: 0; }
.tb-logo-img { height: 36px; width: auto; }
.tb-logo-text {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: 2px; text-transform: uppercase;
}
.tb-logo-text em { font-style: normal; color: var(--orange); }

.tb-nav { flex: 1; }
.tb-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.tb-nav-item { position: relative; }

.tb-nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text2); transition: var(--transition);
}
.tb-nav-link:hover { color: var(--text); background: var(--surface3); }
.tb-nav-arrow { font-size: 10px; opacity: 0.6; }

/* Dropdown */
.tb-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 8px;
  min-width: 200px; list-style: none;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.tb-nav-dropdown:hover .tb-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.tb-dropdown-link {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--text2); transition: var(--transition);
}
.tb-dropdown-link:hover { color: var(--text); background: var(--surface3); }
.tb-dropdown-pro { color: var(--blue) !important; }
.tb-dropdown-pro:hover { background: rgba(59,130,246,0.1) !important; }
.tb-dropdown-elite { color: var(--orange) !important; }
.tb-dropdown-elite:hover { background: var(--orange-dim) !important; }
.tb-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.tb-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.tb-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.tb-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px; transition: var(--transition);
}

/* Ticker */
.tb-ticker-wrap {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  height: 36px; overflow: hidden;
}
.tb-ticker-inner { height: 100%; }
.tb-ticker-inner .tradingview-widget-container { height: 100%; }

/* ── HERO ───────────────────────────────────────────────────── */
.tb-hero {
  padding: 64px 0 48px;
  background: radial-gradient(ellipse at 30% 0%, rgba(232,120,32,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.05) 0%, transparent 50%),
              var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.tb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.tb-hero-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative;
}

.tb-hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.tb-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: tb-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes tb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.tb-hero-title {
  font-family: var(--font-head); font-size: clamp(36px, 4vw, 54px);
  font-weight: 700; line-height: 1.1; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text); margin-bottom: 20px;
}
.tb-hero-title em { font-style: italic; color: var(--orange); }

.tb-hero-sub {
  font-size: 15px; line-height: 1.8; color: var(--text2);
  max-width: 480px; margin-bottom: 28px;
}

.tb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.tb-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.tb-stat { }
.tb-stat-num {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--gold); display: block; line-height: 1;
}
.tb-stat-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3); margin-top: 4px; display: block;
}

/* Tier Cards */
.tb-tier-cards {
  display: flex; gap: 12px; align-items: stretch; justify-content: center;
}
.tb-tier-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 24px 20px;
  text-align: center; flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px; position: relative;
  transition: var(--transition);
}
.tb-tier-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.tb-tier-featured {
  background: linear-gradient(160deg, var(--surface2), var(--surface3));
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow);
}
.tb-tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.tb-tier-label {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text3);
}
.tb-tier-count {
  font-family: var(--font-head); font-size: 36px; font-weight: 700;
  color: var(--text); line-height: 1;
}
.tb-tier-desc { font-size: 11px; color: var(--text3); }
.tb-tier-price {
  font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--gold);
}
.tb-tier-price span { font-size: 12px; color: var(--text3); font-weight: 400; }
.tb-tier-btn {
  display: block; width: 100%; margin-top: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--orange-dim); color: var(--orange);
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid rgba(232,120,32,0.3);
  transition: var(--transition);
}
.tb-tier-btn:hover { background: var(--orange); color: #fff; }
.tb-tier-featured .tb-tier-btn { background: var(--orange); color: #fff; }
.tb-tier-featured .tb-tier-btn:hover { background: var(--orange2); }

/* ── DASHBOARD / POSTS GRID ──────────────────────────────────── */
.tb-dashboard { padding: 56px 0; }

.tb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tb-post-card {
  background: var(--surface);
  transition: var(--transition);
}
.tb-post-card:hover { background: var(--surface2); }
.tb-post-card-inner { padding: 24px; height: 100%; display: flex; flex-direction: column; }

.tb-post-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tb-post-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); background: var(--orange-dim);
  padding: 3px 8px; border-radius: 4px;
}
.tb-post-date {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text3); letter-spacing: 0.5px;
}

.tb-post-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
  line-height: 1.3; margin-bottom: 10px;
}
.tb-post-title a { color: var(--text); }
.tb-post-title a:hover { color: var(--orange); }

.tb-post-excerpt {
  font-size: 13px; color: var(--text2); line-height: 1.6;
  flex: 1; margin-bottom: 16px;
}

.tb-post-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.tb-post-read {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--orange);
}
.tb-post-read:hover { color: var(--orange2); }

.tb-access-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.tb-access-open { background: rgba(34,197,94,0.1); color: var(--green); }
.tb-access-paid { background: rgba(232,120,32,0.1); color: var(--orange); }

.tb-load-more { text-align: center; margin-top: 28px; }

/* ── WHY SECTION ─────────────────────────────────────────────── */
.tb-why {
  padding: 56px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tb-why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 36px;
}
.tb-why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: var(--transition);
}
.tb-why-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.tb-why-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.tb-why-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text); margin-bottom: 10px;
}
.tb-why-desc { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ── TOOLS PROMO ─────────────────────────────────────────────── */
.tb-tools-promo { padding: 56px 0; }
.tb-tools-inner {
  background: var(--surface); border: 1px solid var(--border2);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-xl); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.tb-tools-inner::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.tb-tools-title {
  font-family: var(--font-head); font-size: 32px; font-weight: 700;
  text-transform: uppercase; line-height: 1.2;
  color: var(--text); margin-bottom: 14px;
}
.tb-tools-desc { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 24px; }
.tb-tools-grid-preview {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tb-tool-pill {
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 8px; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text2); letter-spacing: 0.5px;
  transition: var(--transition);
}
.tb-tool-pill:hover { border-color: var(--orange); color: var(--orange); }

/* ── EBOOKS PROMO ─────────────────────────────────────────────── */
.tb-ebooks-promo {
  padding: 56px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tb-ebooks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tb-ebook-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.tb-ebook-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.tb-ebook-cover {
  height: 160px; background-size: cover; background-position: center;
  background-color: var(--surface2);
}
.tb-ebook-cover-default {
  background: linear-gradient(135deg, var(--bg2), var(--surface3));
  display: flex; align-items: center; justify-content: center;
}
.tb-ebook-info { padding: 20px; }
.tb-ebook-title {
  font-family: var(--font-head); font-size: 15px; text-transform: uppercase;
  margin-bottom: 8px;
}
.tb-ebook-title a { color: var(--text); }
.tb-ebook-title a:hover { color: var(--orange); }
.tb-ebook-desc { font-size: 12px; color: var(--text2); }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.tb-cta {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(232,120,32,0.06) 0%, transparent 70%), var(--bg);
}
.tb-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.tb-cta-title {
  font-family: var(--font-head); font-size: 40px; font-weight: 700;
  text-transform: uppercase; color: var(--text); margin-bottom: 14px;
}
.tb-cta-sub { font-size: 15px; color: var(--text2); margin-bottom: 28px; }
.tb-cta-note { font-size: 12px; color: var(--text3); margin-top: 14px; }

/* ── POST PAGE ───────────────────────────────────────────────── */
.tb-post-header {
  padding: 48px 0 32px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.tb-post-header-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.tb-tag-pill {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--orange-dim); color: var(--orange);
  padding: 4px 10px; border-radius: 4px;
}
.tb-post-header-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text3); letter-spacing: 0.5px;
}
.tb-post-header-title {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; text-transform: uppercase; color: var(--text);
  line-height: 1.2; margin-bottom: 12px;
}
.tb-post-header-excerpt {
  font-size: 15px; color: var(--text2); max-width: 600px;
}

.tb-post-content { padding: 48px 0; }
.tb-content-body {
  font-size: 15px; line-height: 1.8; color: var(--text2);
}
.tb-content-body h1, .tb-content-body h2,
.tb-content-body h3, .tb-content-body h4 {
  color: var(--text); margin: 32px 0 16px;
}
.tb-content-body p { margin-bottom: 16px; }
.tb-content-body a { color: var(--orange); }
.tb-content-body img { border-radius: var(--radius); width: 100%; margin: 24px 0; }
.tb-content-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.tb-content-body th, .tb-content-body td {
  padding: 10px 14px; border: 1px solid var(--border2);
  font-size: 13px; color: var(--text);
}
.tb-content-body th { background: var(--surface2); font-family: var(--font-mono); }

/* Paywall */
.tb-paywall { padding: 48px 0; text-align: center; }
.tb-paywall-inner {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 48px 40px;
  max-width: 600px; margin: 0 auto;
}
.tb-paywall-icon { font-size: 40px; margin-bottom: 16px; }
.tb-paywall-title {
  font-family: var(--font-head); font-size: 24px; text-transform: uppercase;
  color: var(--text); margin-bottom: 12px;
}
.tb-paywall-desc { font-size: 14px; color: var(--text2); margin-bottom: 32px; max-width: 400px; margin-left: auto; margin-right: auto; }
.tb-paywall-tiers {
  display: flex; gap: 16px; justify-content: center; margin-bottom: 24px;
}
.tb-paywall-tier {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 24px 20px;
  text-align: center; flex: 1; max-width: 200px; position: relative;
}
.tb-paywall-tier-featured {
  border-color: var(--orange);
  background: linear-gradient(160deg, var(--surface2), var(--surface3));
}
.tb-paywall-tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.tb-paywall-tier-name {
  font-family: var(--font-head); font-size: 16px; text-transform: uppercase;
  color: var(--text); margin-bottom: 4px;
}
.tb-paywall-tier-price {
  font-family: var(--font-head); font-size: 28px; color: var(--gold); line-height: 1;
}
.tb-paywall-tier-price span { font-size: 13px; color: var(--text3); }
.tb-paywall-tier-desc { font-size: 12px; color: var(--text2); margin: 8px 0 16px; }
.tb-paywall-free { font-size: 13px; color: var(--text3); }
.tb-paywall-free a { color: var(--orange); }

/* Post footer */
.tb-post-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}
.tb-post-footer-inner {
  display: flex; flex-direction: column; gap: 20px;
}
.tb-post-footer-disclaimer {
  background: var(--surface2); border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; font-size: 13px; color: var(--text3); line-height: 1.6;
}
.tb-post-footer-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tb-post-nav-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text2);
}
.tb-post-nav-link:hover { color: var(--orange); }

/* ── TAG PAGE ────────────────────────────────────────────────── */
.tb-tag-page { padding: 48px 0; }
.tb-tag-header {
  padding: 48px 0 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.tb-tag-header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.tb-tag-title {
  font-family: var(--font-head); font-size: 36px; font-weight: 700;
  text-transform: uppercase; color: var(--text);
}
.tb-tag-desc { font-size: 15px; color: var(--text2); margin-top: 8px; }

/* ── PAGE ────────────────────────────────────────────────────── */
.tb-page { padding: 48px 0 80px; }
.tb-page-header {
  padding-bottom: 28px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.tb-page-title {
  font-family: var(--font-head); font-size: 36px; font-weight: 700;
  text-transform: uppercase; color: var(--text);
}
.tb-page-excerpt { font-size: 16px; color: var(--text2); margin-top: 10px; }
.tb-page-content { font-size: 15px; line-height: 1.8; color: var(--text2); }
.tb-page-content h2, .tb-page-content h3 { color: var(--text); margin: 28px 0 12px; }
.tb-page-content p { margin-bottom: 14px; }
.tb-page-content a { color: var(--orange); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.tb-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.tb-footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.tb-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.tb-footer-brand .tb-logo-text { font-size: 18px; }
.tb-footer-tagline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3); margin-top: 8px;
}
.tb-footer-social {
  display: flex; gap: 10px; margin-top: 16px;
}
.tb-social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: var(--transition);
}
.tb-social-link:hover { background: var(--orange-dim); color: var(--orange); border-color: var(--orange); }

.tb-footer-heading {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 16px;
}
.tb-footer-links { list-style: none; }
.tb-footer-links li { margin-bottom: 10px; }
.tb-footer-links a {
  font-size: 13px; color: var(--text2); transition: var(--transition);
}
.tb-footer-links a:hover { color: var(--orange); }

.tb-footer-bottom {
  padding: 20px 0;
}
.tb-footer-legal {
  font-size: 12px; color: var(--text3); text-align: center; line-height: 1.6;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--border2);
  font-family: var(--font-mono); font-size: 12px; color: var(--text2);
  transition: var(--transition);
}
.pagination a:hover, .pagination .active {
  background: var(--orange); color: #fff; border-color: var(--orange);
}

/* ── Ghost Card & Width Classes (required) ───────────────────── */
.kg-width-wide {
  position: relative;
  width: 85vw; max-width: 1100px;
  margin: 32px auto;
  left: 50%; transform: translateX(-50%);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  margin: 32px auto;
  left: 50%; transform: translateX(-50%);
}
.kg-image { max-width: 100%; height: auto; border-radius: var(--radius); }
.kg-image-card { margin: 24px 0; }
.kg-image-card figcaption { font-size: 12px; color: var(--text3); text-align: center; margin-top: 8px; }
.kg-gallery-container { display: flex; flex-direction: column; margin: 24px 0; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.kg-embed-card { margin: 24px 0; }
.kg-embed-card iframe { width: 100%; border-radius: var(--radius); }
.kg-bookmark-card {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden; margin: 24px 0;
}
.kg-bookmark-container { display: flex; }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.kg-bookmark-description { font-size: 13px; color: var(--text2); }
.kg-bookmark-thumbnail img { width: 160px; object-fit: cover; }
.kg-callout-card {
  background: var(--surface2); border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 14px; color: var(--text2); line-height: 1.7; }
.kg-toggle-card {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius); margin: 16px 0; overflow: hidden;
}
.kg-toggle-heading { padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; }
.kg-toggle-heading-text { font-weight: 600; color: var(--text); }
.kg-toggle-content { padding: 0 18px 14px; font-size: 14px; color: var(--text2); }
.kg-video-card { margin: 24px 0; }
.kg-video-card video { width: 100%; border-radius: var(--radius); }
.kg-audio-card {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 16px; margin: 24px 0;
}
.kg-code-card {
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px; margin: 24px 0;
  overflow-x: auto; font-family: var(--font-mono); font-size: 13px;
  color: var(--text2);
}
.kg-hr-card { border: none; border-top: 1px solid var(--border2); margin: 32px 0; }
.kg-button-card { text-align: center; margin: 24px 0; }
.kg-btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  background: var(--orange); color: #fff;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}
.kg-btn:hover { background: var(--orange2); color: #fff; }
.kg-product-card {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 24px; margin: 24px 0;
}
.kg-product-card-image img { width: 100%; border-radius: var(--radius); margin-bottom: 14px; }
.kg-product-card-title { font-family: var(--font-head); font-size: 18px; color: var(--text); margin-bottom: 8px; }
.kg-product-card-description { font-size: 14px; color: var(--text2); }
.kg-product-card-rating { display: flex; gap: 4px; margin: 10px 0; }
.kg-product-card-rating-star { color: var(--gold); }

/* ── Ghost Membership Portal Overrides ──────────────────────── */
.gh-portal-popup-wrapper { font-family: var(--font-body) !important; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes tb-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.tb-fade-up { animation: tb-fade-up 0.5s ease forwards; }
.tb-delay-1 { animation-delay: 0.1s; }
.tb-delay-2 { animation-delay: 0.2s; }
.tb-delay-3 { animation-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tb-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .tb-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-why-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tb-tools-inner { grid-template-columns: 1fr; }
  .tb-ebooks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tb-nav { display: none; }
  .tb-nav.tb-nav-open { display: flex; }
  .tb-mobile-toggle { display: flex; }
  .tb-header-actions .tb-btn-ghost { display: none; }
  .tb-hero-inner { grid-template-columns: 1fr; }
  .tb-hero-title { font-size: 32px; }
  .tb-tier-cards { flex-direction: column; max-width: 280px; margin: 0 auto; }
  .tb-posts-grid { grid-template-columns: 1fr; }
  .tb-why-grid { grid-template-columns: 1fr; }
  .tb-footer-grid { grid-template-columns: 1fr; }
  .tb-ebooks-grid { grid-template-columns: 1fr; }
  .tb-paywall-tiers { flex-direction: column; align-items: center; }
  .tb-section-title { font-size: 22px; }
  .tb-cta-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .tb-container, .tb-container-narrow, .tb-container-wide { padding: 0 16px; }
  .tb-hero { padding: 40px 0 32px; }
  .tb-hero-title { font-size: 28px; }
  .tb-tools-inner { padding: 28px 20px; }
}

/* Custom page template override */
.tb-custom-page { width: 100%; }
.tb-custom-page > html, .tb-custom-page > head, .tb-custom-page > body { display: none; }

