/* =====================================================
   STOCK SCREENING MASTERCLASS — Shared Stylesheet
   ===================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Variables (Dark Theme) ---------- */
:root {
  --bg:          #0b0d13;
  --bg2:         #111522;
  --bg3:         #171d2e;
  --card:        #181e30;
  --card-hover:  #202840;
  --border:      #26304a;
  --border-2:    #354366;
  --sidebar-bg:  #0e121d;
  --sidebar-w:   270px;

  --text:        #edf0f8;
  --text2:       #9eabc6;
  --text3:       #627297;

  --accent:      #4f8ef7;
  --accent2:     #7c6ef5;
  --green:       #22c984;
  --red:         #f05a5a;
  --yellow:      #f5c842;
  --orange:      #f5844e;

  --gradient-hero: linear-gradient(145deg, #161c2d 0%, #0b0d13 100%);
  --gradient-accent: linear-gradient(135deg, #4f8ef7, #7c6ef5);
  --gradient-green: linear-gradient(135deg, #22c984, #14a066);
  --gradient-red: linear-gradient(135deg, #f05a5a, #d43b3b);
  --gradient-yellow: linear-gradient(135deg, #f5c842, #d89f0a);
  --gradient-orange: linear-gradient(135deg, #f5844e, #d86026);
  --gradient-purple: linear-gradient(135deg, #8a7cf8, #6352ea);

  --shadow:      0 6px 28px rgba(0,0,0,.45);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.65);
  --shadow-glow: 0 0 25px rgba(79,142,247,.22);

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --radius-full: 9999px;
  --t:           all .24s cubic-bezier(.4,0,.2,1);
  --nav-h:       64px;
}

[data-theme="light"] {
  --bg:          #f1f4fa;
  --bg2:         #ffffff;
  --bg3:         #e9edf7;
  --card:        #ffffff;
  --card-hover:  #f6f8fd;
  --border:      #d4dced;
  --border-2:    #bcc8e2;
  --sidebar-bg:  #151a2a;
  --text:        #151a2e;
  --text2:       #495679;
  --text3:       #8391b2;
  --shadow:      0 6px 24px rgba(22,33,65,.08);
  --shadow-lg:   0 12px 48px rgba(22,33,65,.14);
  --shadow-glow: 0 0 25px rgba(79,142,247,.15);
  --gradient-hero: linear-gradient(145deg, #eef3ff 0%, #f1f4fa 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; }
a { text-decoration: none; color: var(--accent); }
ul { list-style: none; }

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1100;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.08rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em;
}
.topbar-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(79,142,247,.4);
}
.topbar-logo span em {
  font-style: normal;
  color: #4f8ef7;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: var(--t);
}
.theme-btn:hover {
  background: rgba(255,255,255,.16);
  transform: scale(1.05);
}

.hamburger {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,.06);
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-section-label {
  padding: 20px 20px 8px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 2px 10px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.65);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
  position: relative;
}
.sidebar-link .step-num {
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(255,255,255,.6);
}
.sidebar-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.sidebar-link.active {
  background: rgba(79,142,247,.18);
  color: #4f8ef7;
  font-weight: 600;
}
.sidebar-link.active .step-num {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px rgba(79,142,247,.4);
}
.sidebar-link i { width: 16px; font-size: .88rem; }

.sidebar-progress {
  padding: 18px 20px 22px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.06);
}
.progress-label {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: rgba(255,255,255,.45);
  margin-bottom: 8px; font-weight: 600;
}
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width .5s ease;
}

/* ---------- MAIN CONTENT LAYOUT ---------- */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.page-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 36px 36px 64px;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 48px 36px 40px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.hero-tag.blue   { background: rgba(79,142,247,.14); color: #4f8ef7; border: 1px solid rgba(79,142,247,.3); }
.hero-tag.green  { background: rgba(34,201,132,.14); color: #22c984; border: 1px solid rgba(34,201,132,.3); }
.hero-tag.red    { background: rgba(240,90,90,.14);  color: #f05a5a; border: 1px solid rgba(240,90,90,.3); }
.hero-tag.yellow { background: rgba(245,200,66,.14); color: #f5c842; border: 1px solid rgba(245,200,66,.3); }
.hero-tag.purple { background: rgba(124,110,245,.14);color: #8a7cf8; border: 1px solid rgba(124,110,245,.3);}
.hero-tag.orange { background: rgba(245,132,78,.14); color: #f5844e; border: 1px solid rgba(245,132,78,.3); }
.hero-tag.indigo { background: rgba(99,102,241,.14); color: #818cf8; border: 1px solid rgba(129,140,248,.3); }

.page-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}
.page-hero p.subtitle {
  font-size: 1.02rem;
  color: var(--text2);
  max-width: 820px;
  line-height: 1.75;
}
.page-hero .hero-stat-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 24px;
}
.hero-stat {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 20px 8px 12px;
  box-shadow: var(--shadow);
}
.hero-stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: .92rem; color: #fff; flex-shrink: 0;
}
.hero-stat-text { font-size: .8rem; color: var(--text2); line-height: 1.35; }
.hero-stat-text strong { display: block; font-size: .95rem; color: var(--text); font-weight: 700; }

/* ---------- PAGE CONTENT WRAPPER ---------- */
.page-content {
  padding: 36px 36px 64px;
  max-width: 1020px;
  margin: 0 auto;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.section-title i { color: var(--accent); font-size: 1.15rem; }

/* =====================================================
   SUPERIOR FUNNEL PIPELINE (INDEX PAGE)
   ===================================================== */
.funnel-pipeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 48px;
  position: relative;
}

.funnel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--t);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.funnel-item:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
}

/* Left circular box */
.funnel-circle-left {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 800;
  position: relative;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.2);
}
.funnel-circle-left .step-digit {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 900;
}
.funnel-circle-left .step-icon-sub {
  font-size: .65rem;
  opacity: .85;
  margin-top: 2px;
}

/* Center main information box */
.funnel-info-center {
  flex: 1;
  min-width: 0; /* Prevents overflow */
  padding-right: 12px;
}
.funnel-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.funnel-step-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.funnel-filter-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text3);
}

.funnel-step-desc {
  font-size: .84rem;
  color: var(--text2);
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Progress bar inside card */
.funnel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.funnel-progress-track {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.funnel-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width .6s ease;
}
.funnel-progress-pct {
  font-size: .72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  min-width: 58px;
  text-align: right;
}

/* Right circular box / count */
.funnel-circle-right {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid var(--border-2);
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.4);
  transition: var(--t);
}
.funnel-item:hover .funnel-circle-right {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(79,142,247,.25);
}
.funnel-count-sub {
  font-size: .64rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text3);
  line-height: 1;
  margin-bottom: 2px;
}
.funnel-count-num {
  font-size: .95rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}
.funnel-count-unit {
  font-size: .62rem;
  color: var(--text3);
}

/* Connector down icon */
.funnel-connector {
  text-align: center;
  color: var(--text3);
  font-size: .85rem;
  margin: -4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.funnel-connector::before,
.funnel-connector::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--border);
}

/* =====================================================
   METRIC CARD DESIGN (CIRCULAR BOXES & COMPLETE INFO)
   ===================================================== */
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 24px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.metric-card.blue::before   { background: var(--gradient-accent); }
.metric-card.green::before  { background: var(--gradient-green); }
.metric-card.red::before    { background: var(--gradient-red); }
.metric-card.yellow::before { background: var(--gradient-yellow); }
.metric-card.orange::before { background: var(--gradient-orange); }
.metric-card.purple::before { background: var(--gradient-purple); }

.metric-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.metric-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Circular left icon box */
.metric-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.2);
}

.metric-card-title-group { flex: 1; }
.metric-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.metric-card-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
}

/* Right side circular/pill status badge */
.metric-header-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  flex-shrink: 0;
}

/* Metric sub-sections */
.metric-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.metric-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.metric-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 10px;
}
.metric-section-label i {
  color: var(--accent);
  font-size: .8rem;
}

.metric-section p {
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.8;
}
.metric-section p strong {
  color: var(--text);
  font-weight: 700;
}

/* Screener Query Box */
.screener-query {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #7dd8f5;
  line-height: 1.7;
  position: relative;
  margin-top: 10px;
}
[data-theme="light"] .screener-query {
  color: #1d4ed8;
  background: #f0f5ff;
}

.screener-query-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 8px;
}
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  transition: var(--t);
  font-family: 'Inter', sans-serif;
}
.copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(79,142,247,.4);
}

/* Ideal Range Badges */
.ideal-range-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.range-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
}
.range-badge.good   { background: rgba(34,201,132,.14); color: #22c984; border: 1px solid rgba(34,201,132,.35); }
.range-badge.avg    { background: rgba(245,200,66,.14);  color: #f5c842; border: 1px solid rgba(245,200,66,.35); }
.range-badge.bad    { background: rgba(240,90,90,.14);   color: #f05a5a; border: 1px solid rgba(240,90,90,.35); }
.range-badge.info   { background: rgba(79,142,247,.14);  color: #4f8ef7; border: 1px solid rgba(79,142,247,.35); }
.range-badge.warn   { background: rgba(245,132,78,.14);  color: #f5844e; border: 1px solid rgba(245,132,78,.35); }

/* ---------- INFO BOXES ---------- */
.info-box {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: .9rem;
  line-height: 1.75;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-box i { margin-top: 3px; flex-shrink: 0; font-size: 1.1rem; }
.info-box.tip    { background: rgba(34,201,132,.09);  border: 1px solid rgba(34,201,132,.25);  color: var(--text2); }
.info-box.tip i  { color: #22c984; }
.info-box.warn   { background: rgba(245,200,66,.09);  border: 1px solid rgba(245,200,66,.25);  color: var(--text2); }
.info-box.warn i { color: #f5c842; }
.info-box.danger { background: rgba(240,90,90,.09);   border: 1px solid rgba(240,90,90,.25);   color: var(--text2); }
.info-box.danger i { color: #f05a5a; }
.info-box.info   { background: rgba(79,142,247,.09);  border: 1px solid rgba(79,142,247,.25);  color: var(--text2); }
.info-box.info i { color: #4f8ef7; }

/* ---------- STEPS GRID (Index) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--t);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
}
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.step-num-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(79,142,247,.12);
  border: 1px solid rgba(79,142,247,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #4f8ef7;
}
.step-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--text3);
  transition: var(--t);
}
.step-card:hover .step-card-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

.step-card h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.step-card p  { font-size: .83rem; color: var(--text2); line-height: 1.6; }

/* ---------- FORENSIC RED FLAG CARDS ---------- */
.redflag-card {
  background: rgba(240,90,90,.06);
  border: 1px solid rgba(240,90,90,.22);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.redflag-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.redflag-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(240,90,90,.16);
  border: 1px solid rgba(240,90,90,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red);
  flex-shrink: 0;
}
.redflag-card h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--red);
}
.redflag-card p { font-size: .9rem; color: var(--text2); line-height: 1.8; }
.redflag-card p strong { color: var(--text); }

/* ---------- CHECKLIST ---------- */
.checklist { padding: 0; margin: 0; }
.checklist-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--text2); line-height: 1.7;
}
.checklist-item:last-child { border-bottom: none; }
.check-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  color: var(--green); font-size: .75rem;
  background: rgba(34,201,132,.12);
  border: 1px solid rgba(34,201,132,.35);
}
.checklist-item strong { color: var(--text); }

/* ---------- PORTFOLIO CARD ---------- */
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.portfolio-card h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.portfolio-card h3 i { color: var(--accent); }

/* ---------- FOOTER ---------- */
.page-footer {
  background: var(--sidebar-bg);
  padding: 24px 36px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ---------- NAV BUTTONS (BOTTOM) ---------- */
.page-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 16px;
}
.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .9rem;
  transition: var(--t);
}
.page-nav-btn.prev {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
}
.page-nav-btn.prev:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: var(--border-2);
}
.page-nav-btn.next {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(79,142,247,.35);
}
.page-nav-btn.next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79,142,247,.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .page-hero, .page-content, .page-container { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 32px 16px 28px; }
  .page-content, .page-container { padding: 24px 16px 48px; }
  .funnel-item { flex-direction: column; text-align: center; }
  .funnel-step-header { flex-direction: column; }
  .funnel-circle-right { margin-top: 8px; }
  .steps-grid { grid-template-columns: 1fr; }
}
