/* ============================================================
   ALPHA POD — Secondary Pages Shared Styles
   ============================================================ */

/* ============================================================
   PAGE HERO (used on all secondary pages)
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-height) + var(--bar-height, 40px) + var(--space-16)) 0 var(--space-12);
}

.page-hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* Gradient divider below hero */
.page-hero::after {
  content: '';
  display: block;
  height: 1px;
  max-width: var(--content-max, 1280px);
  margin: var(--space-12) auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-card {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 1px 0 0 rgba(255,255,255,0.06),
    0 8px 40px rgba(0,0,0,0.5);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.15);
  border-radius: 16px;
  margin-bottom: var(--space-6);
}

.feature-card__icon svg {
  display: inline-block;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.feature-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-card__list li {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding-left: var(--space-4);
  position: relative;
}

.feature-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Feature showcase (alternating image/text rows) */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: none;
  position: relative;
}

.feature-showcase::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
}

.feature-showcase:last-child::after {
  display: none;
}

.feature-showcase--reverse .feature-showcase__content {
  order: -1;
}

.feature-showcase__visual {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.feature-showcase__visual-placeholder {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-showcase__content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-showcase__content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.feature-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-showcase__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ============================================================
   PERFORMANCE PAGE
   ============================================================ */

.perf-page__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.perf-page__stat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.perf-page__stat:hover {
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 40px rgba(0,0,0,0.5);
}

.perf-page__stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.perf-page__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Equity curve large */
.perf-page__chart {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.perf-page__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.perf-page__chart-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.perf-page__chart-area {
  height: 280px;
}

.perf-page__chart-area svg {
  display: block;
}

/* Trade log table */
.trade-log {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.trade-log__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trade-log__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.trade-log__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.trade-log__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.trade-log__table {
  width: 100%;
  border-collapse: collapse;
}

.trade-log__table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.trade-log__table td {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.trade-log__table tr:last-child td {
  border-bottom: none;
}

.trade-log__win { color: var(--green); }
.trade-log__loss { color: var(--red); }

.trade-log__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

.trade-log__footer p {
  font-size: var(--text-xs);
  color: var(--text-faint);
  max-width: 100%;
}

/* ============================================================
   GET STARTED PAGE
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.step-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: rgba(201,168,76,0.25);
  margin-bottom: var(--space-4);
  line-height: 1;
}
.step-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card:hover {
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 40px rgba(0,0,0,0.5);
}

.step-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.step-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ block (reused) */
.get-started-faq {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   GEX GUIDE (Editorial)
   ============================================================ */

.guide-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.guide-content h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.guide-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.guide-content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.guide-content ul,
.guide-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.guide-content ul { list-style: none; }
.guide-content ol { list-style: decimal; }

.guide-content li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.guide-content blockquote {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.guide-callout {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 16px rgba(0,0,0,0.3);
}

.guide-callout__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.guide-callout p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Mid-article CTA */
.mid-cta {
  background: var(--surface-1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-12) 0;
  box-shadow:
    inset 0 1px 0 rgba(201,168,76,0.10),
    0 0 60px -10px rgba(201,168,76,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.mid-cta h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.mid-cta p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

/* ============================================================
   BLOG INDEX
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.blog-card {
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 1px 0 0 rgba(255,255,255,0.06),
    0 8px 40px rgba(0,0,0,0.5);
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.6;
  flex: 1;
}

.blog-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: var(--space-3);
  width: fit-content;
}

/* ============================================================
   RESPONSIVE — Secondary Pages
   ============================================================ */

/* ============================================================
   FINAL CTA (shared with homepage via home.css, duplicated here for subpages)
   ============================================================ */

.final-cta {
  padding: var(--space-32) 0 var(--space-24);
  background:
    radial-gradient(ellipse 600px 200px at 50% 40%, rgba(34,197,94,0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(201, 168, 76, 0.02) 50%, var(--surface-1) 100%);
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.final-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-4);
}

.final-cta__sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}

.final-cta__note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-showcase { grid-template-columns: 1fr; gap: var(--space-6); }
  .feature-showcase--reverse { direction: ltr; }
  .perf-page__stats-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + var(--bar-height, 40px) + var(--space-10));
  }

  .feature-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .trade-log__table {
    font-size: 10px;
    min-width: 600px;
  }

  .trade-log__table th,
  .trade-log__table td {
    padding: var(--space-2) var(--space-3);
    white-space: nowrap;
  }

  .perf-page__chart-area {
    height: 180px;
  }
}


/* ============================================================
   SUBPAGE ENHANCEMENTS (matching homepage design quality)
   ============================================================ */

/* Section glow overlay for subpages */
.section--glow {
  position: relative;
}
.section--glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Performance page: CALL/PUT badges */
.trade-log__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.trade-log__badge--call {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25);
}
.trade-log__badge--put {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
}

/* Trade log row hover enhancement */
.trade-log__table tr:hover td {
  background: rgba(255,255,255,0.025);
}

/* Guide content: styled list bullets */
.guide-content ul {
  list-style: none;
  padding-left: var(--space-6);
}
.guide-content ul li::before {
  content: '•';
  color: var(--green);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.guide-content ul li {
  position: relative;
  padding-left: var(--space-4);
}

/* Announcement bar for subpages */
.announcement-bar {
  background: #059669;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.announcement-bar a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announcement-bar .new-badge {
  background: white;
  color: #059669;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
}


/* Mobile: smaller announcement bar text */
@media (max-width: 768px) {
  .announcement-bar {
    font-size: 0.75rem;
    padding: 8px 16px;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.4;
  }
  .announcement-bar .new-badge {
    font-size: 9px;
    padding: 1px 6px;
  }
}

/* Touch feedback for subpage interactive elements */
.feature-card:active,
.blog-card:active,
.step-card:active,
.perf-page__stat:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* FAQ chevrons for get-started page */
.get-started-faq .faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.get-started-faq .faq__item summary::-webkit-details-marker { display: none; }
.get-started-faq .faq__item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.get-started-faq .faq__item[open] summary::after {
  transform: rotate(180deg);
}
.get-started-faq .faq__answer {
  padding: var(--space-3) 0 var(--space-4);
}
.get-started-faq .faq__answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================================
   PERFORMANCE PAGE — INTERACTIVE REBUILD
   ============================================================ */

/* ---- Period toggle pill (1M / 3M / LTD) ---- */
.perf-chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.perf-period-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  padding: 4px;
}

.perf-period-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  white-space: nowrap;
}

.perf-period-btn:hover {
  color: var(--text-primary);
}

.perf-period-btn.active {
  background: var(--surface-2);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---- Stats row (Final Balance / Return / Drawdown) ---- */
.perf-stats-inline {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.perf-stats-inline__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perf-stats-inline__value {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  transition: color 300ms ease;
}

.perf-stats-inline__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- ApexCharts card ---- */
.perf-chart-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

#equity-chart {
  min-height: 350px;
}

/* ApexCharts dark overrides */
.apexcharts-tooltip {
  background: var(--surface-2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
}
.apexcharts-tooltip-title {
  background: rgba(255,255,255,0.04) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  color: var(--text-tertiary) !important;
  font-size: 10px !important;
  padding: 4px 10px !important;
}
.apexcharts-tooltip-y-group {
  padding: 4px 10px !important;
}
.apexcharts-xaxistooltip {
  background: var(--surface-2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--text-secondary) !important;
}
.apexcharts-xaxistooltip-bottom:after,
.apexcharts-xaxistooltip-bottom:before { display: none !important; }
.apexcharts-menu {
  background: var(--surface-2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.apexcharts-menu-item:hover {
  background: rgba(255,255,255,0.04) !important;
}

/* ---- Monthly Breakdown grid ---- */
.monthly-section {
  margin-bottom: var(--space-8);
}

.monthly-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.monthly-section__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.monthly-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.monthly-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4) var(--space-3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  position: relative;
}

.monthly-card:hover {
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 40px rgba(0,0,0,0.5);
}

.monthly-card--live {
  border-color: rgba(34,197,94,0.15);
  box-shadow:
    inset 0 1px 0 rgba(34,197,94,0.12),
    0 4px 24px rgba(0,0,0,0.4);
}

.monthly-card--live:hover {
  border-color: rgba(34,197,94,0.25);
}

.monthly-card__month {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monthly-live-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.20);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.monthly-card__win-rate {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}

.monthly-card__stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: var(--space-2);
  margin-top: var(--space-1);
}

.monthly-card__stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.monthly-card__stat-key {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.monthly-card__stat-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

/* ---- Calendar section ---- */
.calendar-section {
  margin-bottom: var(--space-8);
}

.calendar-wrapper {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.calendar-nav__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.calendar-nav__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.calendar-nav__btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: var(--text-primary);
}

.calendar-nav__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}

.calendar-day-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: var(--space-2) 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
}

.calendar-cell {
  background: var(--surface-1);
  min-height: 72px;
  padding: var(--space-2);
  position: relative;
  transition: background 200ms ease;
}

.calendar-cell:hover {
  background: var(--surface-2);
}

.calendar-cell--empty {
  background: rgba(255,255,255,0.01);
}

.calendar-cell--win {
  background: rgba(34,197,94,0.06);
}

.calendar-cell--win:hover {
  background: rgba(34,197,94,0.10);
}

.calendar-cell--loss {
  background: rgba(239,68,68,0.05);
}

.calendar-cell--loss:hover {
  background: rgba(239,68,68,0.08);
}

.calendar-cell__day {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.calendar-cell__count {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.calendar-cell__pnl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calendar-cell__pnl--win  { color: var(--green); }
.calendar-cell__pnl--loss { color: var(--red); }

.calendar-legend {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border);
}

.calendar-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.calendar-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.calendar-legend__dot--win  { background: rgba(34,197,94,0.35); }
.calendar-legend__dot--loss { background: rgba(239,68,68,0.30); }

/* ---- Top Trades Ticker ---- */
.ticker-section {
  margin-bottom: var(--space-8);
  overflow: hidden;
  position: relative;
}

.ticker-section__header {
  margin-bottom: var(--space-4);
}

.ticker-section__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.ticker-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.ticker-content {
  display: flex;
  gap: var(--space-4);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.ticker-track:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.ticker-item__strike {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ticker-item__pnl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.ticker-item__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.ticker-item__sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.08);
}

/* ---- Position Log ---- */
.position-log {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.position-log__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.position-log__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.position-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  padding: 3px;
}

.position-filter__btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  white-space: nowrap;
}

.position-filter__btn:hover {
  color: var(--text-primary);
}

.position-filter__btn.active {
  background: var(--surface-2);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.position-log__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.position-log__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.position-log__table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.position-log__table td {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.position-log__table tr:last-child td {
  border-bottom: none;
}

.position-log__table tr:hover td {
  background: rgba(255,255,255,0.015);
}

.position-log__table .win  { color: var(--green); font-weight: 700; }
.position-log__table .loss { color: var(--red);   font-weight: 700; }

.position-log__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.position-log__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.btn-load-more {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-load-more:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: var(--text-primary);
}

.btn-load-more:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Section header reused ---- */
.perf-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .monthly-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .monthly-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-chart-header { flex-direction: column; align-items: flex-start; }
  .perf-stats-inline { gap: var(--space-4); }
  .calendar-cell { min-height: 54px; }
  .calendar-cell__pnl { font-size: 10px; }
  .position-log__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .monthly-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-period-toggle { width: 100%; justify-content: center; }
}

/* ============================================================
   FRAMEWORK PAGE
   ============================================================ */

.framework-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.20);
  border-radius: 9999px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-6);
}

.framework-hero-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: live-pulse 2s ease infinite;
}

@keyframes live-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); }
}

.framework-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.framework-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.framework-author__info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.framework-author__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.framework-author__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Layout: article + sidebar */
.framework-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 1024px) {
  .framework-layout {
    grid-template-columns: 1fr;
  }
}

/* Article typography */
.framework-article__lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-6);
}

.framework-article__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.framework-article__body strong {
  color: rgba(255,255,255,0.90);
}

/* Step headers */
.framework-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.framework-step:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-8);
}

.framework-step__number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.20);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.framework-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

/* Subheadings */
.framework-h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

/* Terminal box */
.framework-terminal {
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: var(--space-6) 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.framework-terminal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
}

.framework-terminal__body {
  padding: 16px 20px;
}

.framework-terminal__rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.framework-terminal__rule {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  gap: 8px;
}

.framework-terminal__prompt {
  color: var(--green);
  flex-shrink: 0;
}

/* List */
.framework-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.framework-list li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: var(--space-4);
  border-left: 2px solid rgba(34,197,94,0.25);
}

.framework-list li strong {
  color: rgba(255,255,255,0.90);
}

/* Figure */
.framework-figure {
  margin: var(--space-8) 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.framework-figure__img-wrap {
  aspect-ratio: 16/9;
  background: #131722;
  overflow: hidden;
}

.framework-figure__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.framework-figure__caption {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* Callout box */
.framework-callout {
  background: var(--surface-1);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.framework-callout__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.framework-callout__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* CTA box */
.framework-cta {
  position: relative;
  background: linear-gradient(145deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: var(--space-10);
  text-align: center;
  margin-top: var(--space-12);
  overflow: hidden;
}

.framework-cta__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.framework-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.framework-cta__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.framework-cta__fine {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-3);
}

/* Sidebar */
.framework-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--bar-height, 40px) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .framework-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.framework-sidebar__card {
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: var(--space-6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.framework-sidebar__card--accent {
  background: linear-gradient(145deg, rgba(34,197,94,0.05), var(--surface-1));
  border-color: rgba(34,197,94,0.15);
  position: relative;
  overflow: hidden;
}

.framework-sidebar__card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0.08;
  color: var(--green);
}

.framework-sidebar__author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-4);
}

.framework-sidebar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.framework-sidebar__author-name {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.framework-sidebar__author-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.framework-sidebar__quote {
  font-size: var(--text-sm);
  color: var(--text-faint);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-4);
}

.framework-sidebar__socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.framework-sidebar__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-page);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 200ms ease, color 200ms ease;
  text-decoration: none;
}

.framework-sidebar__social-btn:hover {
  border-color: rgba(255,255,255,0.16);
  color: var(--text-primary);
}

.framework-sidebar__card-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.framework-sidebar__card-desc {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.framework-sidebar__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.framework-sidebar__checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* TOC */
.framework-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.framework-toc__link {
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.framework-toc__link:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
}


/* ============================================================
   ACADEMY PAGE
   ============================================================ */

.academy-path {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.academy-path:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.academy-path__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.academy-path__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.academy-path__icon--green {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.20);
}

.academy-path__icon--gold {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.20);
}

.academy-path__icon--blue {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.20);
}

.academy-path__level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 2px;
}

.academy-path__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.academy-path__desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-6);
}

/* Academy cards */
.academy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.academy-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: var(--space-6);
  text-decoration: none;
  transition: border-color 300ms ease, box-shadow 300ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.academy-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 24px rgba(0,0,0,0.3);
}

.academy-card--featured {
  border-color: rgba(34,197,94,0.15);
  background: linear-gradient(145deg, rgba(34,197,94,0.04), var(--surface-1));
  box-shadow: inset 0 1px 0 rgba(34,197,94,0.12);
}

.academy-card--featured:hover {
  border-color: rgba(34,197,94,0.25);
  box-shadow: inset 0 1px 0 rgba(34,197,94,0.16), 0 4px 24px rgba(0,0,0,0.3);
}

.academy-card__badge {
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 10px;
  border-radius: 9999px;
}

.academy-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.academy-card__content {
  flex: 1;
  min-width: 0;
}

.academy-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.academy-card__desc {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-faint);
}

.academy-card__time {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.academy-card__arrow {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  color: var(--text-faint);
  transition: transform 200ms ease, color 200ms ease;
}

.academy-card:hover .academy-card__arrow {
  transform: translateX(3px);
  color: var(--green);
}

/* Academy CTA */
.academy-cta-card {
  position: relative;
  background: linear-gradient(145deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: var(--space-12);
  overflow: hidden;
}

.academy-cta-card__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.academy-cta-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.academy-cta-card__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto var(--space-6);
}

/* Responsive */
@media (max-width: 640px) {
  .academy-cards {
    grid-template-columns: 1fr;
  }
  .academy-card {
    flex-direction: column;
    gap: var(--space-3);
  }
  .academy-card__time {
    position: static;
    display: inline-block;
    margin-top: var(--space-2);
  }
  .academy-card__arrow {
    bottom: var(--space-3);
    right: var(--space-3);
  }
}
