/* Home page — Audit Ledger theme.
   Verified track-record motif: hairline rules, ledger scorecards,
   monospace figures, flat verification-green accents. */

.home {
  --home-bg: var(--bg-main);
  --home-text: var(--text);
  --home-muted: var(--text-muted);
  --home-primary: var(--primary);
  --home-ring: var(--ring);
  --home-card: var(--bg-elevated);
  --home-card-border: var(--border);
  --home-success: var(--success);
  --home-danger: var(--danger);
}

.home .container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ============ Hero ============ */
.hero { padding: 5rem 0 3rem; background: var(--bg-surface); }
.hero h1 { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw + 1rem, 3rem); line-height: 1.05; color: var(--text-bright); }
.hero .lead { margin: 0 0 1.5rem; color: var(--home-muted); font-size: 1.05rem; max-width: 60ch; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }

.audit-hero {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding: 5.5rem 0 4rem;
  position: relative;
}
.audit-hero::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.hero-content {
  position: relative;
  max-width: 780px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 1.75rem;
}
.kicker-tick {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--primary);
  flex-shrink: 0;
}
.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: none;
}
.audit-hero .lead {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 2.25rem;
}

.accent {
  color: var(--success);
  box-shadow: inset 0 -2px 0 var(--success-dark);
}

/* Legacy hero classes (influencers index/top pages) — flat audit styling */
.hero-gradient {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding: 5rem 0 3.5rem;
  position: relative;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.hero-gradient .hero-title { text-align: left; }
.hero-gradient .lead {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 2.25rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 2px;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1.75rem;
}
.trophy-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}
.avatar-glow { display: none; }

.home .button_to { display: inline-block; margin: 0; }
.home .button_to button { font: inherit; }

/* ============ Scoreboard strip ============ */
.scoreboard {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.scorecard {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  border-left: 1px solid var(--border);
}
.scorecard:last-child { border-right: 1px solid var(--border); }
.scorecard-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}
.scorecard-index::after {
  content: ' /';
  color: var(--text-dim);
}
.scorecard-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.1;
}
.scorecard-label {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

/* 01 — ledger-ruled count of videos analyzed */
.scorecard--ledger .scorecard-value {
  display: inline-block;
  padding: 0.15rem 0.5rem 0.25rem 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 12px,
    rgba(174, 180, 168, 0.14) 12px,
    rgba(174, 180, 168, 0.14) 13px
  );
}

/* 02 — stamped/verified badge for influencers monitored */
.scorecard-value-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 2px;
  padding: 0.3rem 0.55rem 0.25rem;
  transform: rotate(-4deg);
  opacity: 0.9;
}

/* 03 — gain/loss colored count of scored calls */
.calls-split {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 500;
}
.calls-up { color: var(--success); }
.calls-down { color: var(--danger); }
.calls-bar {
  display: flex;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--danger-dark);
  max-width: 260px;
}
.calls-bar-up {
  display: block;
  height: 100%;
  background: var(--success);
}

.avatar-picture{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============ Section heads ============ */
.leaders { padding: 4.5rem 0 4rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.01em;
}
.section-head .muted { color: var(--home-muted); margin: 0; }

.section-head-modern {
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.section-head-modern h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.01em;
}
.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.avatar { width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; background: var(--bg-highlight); }
.influencer h3 { margin: 0; font-size: 1.05rem; color: var(--text-bright); }
.sub { margin: 0; color: var(--home-muted); font-size: .9rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0 0; }
.metrics dt { color: var(--home-muted); font-size: .78rem; }
.metrics dd { margin: .1rem 0 0; font-weight: 700; color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.metrics .pos { color: var(--home-success); }

/* ============ How it works ============ */
.how {
  padding: 5rem 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  counter-reset: how-step;
}

.step {
  counter-increment: how-step;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.75rem 1.5rem 1.5rem;
  transition: border-color 0.2s ease;
}
.step:hover {
  border-color: var(--text-muted);
}
.step:focus-within {
  box-shadow: 0 0 0 2px var(--ring);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.step-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--bg-highlight);
  border: 1px solid var(--border);
}

.step-icon--youtube {
  color: var(--danger);
  border-color: rgba(194, 95, 76, 0.4);
}

.step-icon--youtube svg {
  width: 1.4rem;
  height: 1.4rem;
}

.step-icon--price {
  color: var(--success);
  border-color: rgba(93, 169, 122, 0.4);
}

.step-icon--price svg {
  width: 1.3rem;
  height: 1.3rem;
}

.step-icon--chart {
  color: var(--secondary);
  border-color: rgba(201, 164, 92, 0.4);
}

.step-icon--chart svg {
  width: 1.3rem;
  height: 1.3rem;
}

.step-kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.step-kicker::after {
  content: counter(how-step, decimal-leading-zero);
  color: var(--primary);
  font-size: 0.9rem;
}

.step-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.01em;
}

.step-desc {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.home-cta {
  padding: 4.5rem 0 5rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
}

.home-cta h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-bright);
}

.home-cta .lead {
  margin: 0 0 2rem;
  color: var(--text);
  max-width: 60ch;
}

/* CTA */
.cta { padding: 2.5rem 0 3rem; }
.signup { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.signup input[type="email"] { flex: 1; min-width: 220px; padding: .75rem .9rem; border-radius: 2px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text); outline: none; }
.signup input[type="email"]:focus { border-color: var(--home-primary); box-shadow: 0 0 0 2px var(--home-ring); }
.tiny { color: var(--home-muted); font-size: .8rem; }

/* ============ Analyses section ============ */
.analyses-section {
  padding: 2.5rem 0 4rem;
  background: var(--bg-main);
  min-height: 100vh;
}
.analyses-section .section-head { align-items: center; }

/* ============ Influencers grid (leaders) ============ */
.influencers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.influencer-card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 3px;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.influencer-card:hover {
  border-color: var(--text-muted);
}

/* Rank tag — ledger entry number, no medals */
.rank-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.3rem 0.55rem;
  background: var(--bg-surface);
}
.rank-badge.rank-1 {
  color: var(--secondary);
  border-color: var(--secondary);
}
.leaders .rank-badge::before {
  content: '№ ';
  color: var(--text-dim);
}
.rank-badge .rank-number { font-family: var(--font-mono); }
.rank-badge .rank-icon { font-size: 0.95rem; }

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.avatar-wrapper {
  position: relative;
  margin-top: 0.75rem;
}
.influencer-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-highlight);
  border: 1px solid var(--border);
}
.influencer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: var(--bg-highlight);
}

.influencer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Performance ledger block */
.performance-showcase {
  width: 100%;
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.performance-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  text-align: center;
}
.performance-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.trend-icon {
  width: 1.3rem;
  height: 1.3rem;
  stroke: var(--success);
  stroke-width: 2.5;
}
.performance-value span {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--success);
}

.performance-value.negative span {
  color: var(--danger);
}

.performance-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-highlight);
  overflow: hidden;
  position: relative;
}
.performance-fill {
  height: 100%;
  background: var(--success);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.performance-fill.negative {
  background: var(--danger);
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.stat-value.negative {
  color: var(--home-danger);
}

.stat-value.positive {
  color: var(--home-success);
}
.stat-item svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--primary);
  flex-shrink: 0;
}

/* Card Actions */
.card-actions {
  width: 100%;
  margin-top: 0.5rem;
}
.analysis-card-link { text-decoration: none; color: inherit; display: block; }
.analysis-card-link:hover .analysis-item { border-color: var(--text-muted); }
.analysis-item { display: flex; gap: 1rem; padding: 1rem 1.25rem; transition: border-color 0.2s ease; cursor: pointer; background: var(--bg-elevated); border-radius: 3px; border: 1px solid var(--border); }
.analysis-thumbnail { flex-shrink: 0; width: 160px; height: 90px; border-radius: 2px; overflow: hidden; background: var(--bg-highlight); }
.analysis-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.analysis-content { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 0; }
.analysis-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.25rem 0;
  color: var(--text-bright);
}
.analysis-title a {
  color: var(--home-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.analysis-title a:hover {
  color: var(--home-primary);
}
.analysis-url { font-size: .8rem; font-family: var(--font-mono); color: var(--home-muted); }
.analysis-url a { color: var(--home-muted); text-decoration: none; word-break: break-all; }
.analysis-url a:hover { text-decoration: underline; color: var(--home-primary); }
.analysis-author { font-weight: 600; color: var(--home-text); font-size: .9rem; }
.analysis-author a {
  color: var(--home-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.analysis-author a:visited { color: var(--home-text); }
.analysis-author a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}
.analysis-meta { display: flex; gap: 1rem; align-items: center; font-size: .875rem; }
.status {
  padding: .35rem .7rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: 0.06em;
  display: inline-block;
}
.status-pending {
  background: rgba(201, 164, 92, 0.12);
  color: var(--warning);
  border: 1px solid rgba(201, 164, 92, 0.35);
}
.status-processing {
  background: rgba(139, 167, 147, 0.12);
  color: var(--info);
  border: 1px solid rgba(139, 167, 147, 0.35);
}
.status-analyzed, .status-completed {
  background: rgba(93, 169, 122, 0.12);
  color: var(--success);
  border: 1px solid rgba(93, 169, 122, 0.35);
}
.status-failed {
  background: rgba(194, 95, 76, 0.12);
  color: var(--danger);
  border: 1px solid rgba(194, 95, 76, 0.35);
}
.date { color: var(--home-muted); font-family: var(--font-mono); font-size: .8rem; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 3px; margin-top: 1rem; }
.empty-message { font-size: 1.1rem; color: var(--text-bright); margin: 0 0 .5rem; font-weight: 500; }
.empty-hint { color: var(--home-muted); margin: 0; font-size: .95rem; }
.external-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}
.external-link:hover {
  color: var(--success);
  text-decoration: none;
}
.external-link::after {
  content: '↗';
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============ Analysis detail (show page) ============ */
.analysis-detail-card {
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.analysis-detail h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.analysis-detail p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.analysis-detail .section-title {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.video-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-bright);
  margin: 0.5rem 0;
}
.transcript-content { background: var(--bg-surface); padding: 1.5rem; border-radius: 3px; margin-top: 1rem; max-height: 600px; overflow-y: auto; white-space: pre-wrap; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; color: var(--text); border: 1px solid var(--border); }
.transcript-empty { margin-top: 2rem; }
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.performance-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 164, 92, 0.12);
  color: var(--warning);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(201, 164, 92, 0.35);
}

.performance-badge svg {
  width: 1rem;
  height: 1rem;
}

/* Recommendation cards */
.recommendation-card.enhanced {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: 3px;
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.recommendation-card.enhanced:hover {
  border-color: var(--text-muted);
  border-left-color: var(--success);
}

.recommendation-card.enhanced .recommendation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.asset-info .asset-symbol {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.performance-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.performance-indicator.positive {
  background: rgba(93, 169, 122, 0.12);
  color: var(--success);
  border: 1px solid rgba(93, 169, 122, 0.35);
}

.performance-indicator svg {
  width: 1rem;
  height: 1rem;
}

.video-metadata.enhanced {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 2rem;
}

.video-metadata.enhanced .video-thumbnail {
  flex-shrink: 0;
  width: 280px;
  height: 157px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  position: relative;
}

.video-thumbnail .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
  opacity: 1;
}

.video-thumbnail .play-overlay svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 2px;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.recommendation-quote.enhanced {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  padding-left: 3rem;
}

.quote-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
  opacity: 0.4;
}

.financial-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
}

.profit-metric .metric-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.profit-percentage {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .video-metadata.enhanced {
    flex-direction: column;
  }

  .video-metadata.enhanced .video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .financial-metrics {
    grid-template-columns: 1fr;
  }

  .asset-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.recommendation-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}
.recommendation-card:hover {
  border-color: var(--text-muted);
}
.recommendation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.asset-symbol {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}
.asset-symbol a {
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.asset-symbol a:visited { color: var(--text-bright); }
.asset-symbol a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.action-badge {
  padding: .4rem .9rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.action-badge.action-buy {
  background: rgba(93, 169, 122, 0.12);
  color: var(--success);
  border: 1px solid rgba(93, 169, 122, 0.35);
}
.action-badge.action-sell {
  background: rgba(194, 95, 76, 0.12);
  color: var(--danger);
  border: 1px solid rgba(194, 95, 76, 0.35);
}
.recommendation-quote {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.go-to-transcript-btn {
  flex-shrink: 0;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.go-to-transcript-btn:hover {
  background: var(--primary);
  color: var(--bg-darker);
}
.highlighted-text {
  background: rgba(201, 164, 92, 0.25);
  color: var(--text-bright);
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--secondary);
}
.recommendation-context {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: .75rem 0;
}
.recommendation-context strong {
  color: var(--text-bright);
  font-weight: 600;
}
.video-metadata {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 2.5rem;
}
.video-metadata .video-thumbnail {
  flex-shrink: 0;
  width: 240px;
  height: 135px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-highlight);
  border: 1px solid var(--border);
}
.video-metadata .video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-info { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
.influencer-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0.5rem 0;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.author-name { font-weight: 600; font-size: 1.05rem; color: var(--text-bright); }
.author-name a {
  color: var(--home-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.author-name a:visited { color: var(--home-text); }
.author-name a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}
.publish-date {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.publish-date svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Price Information Section */
.price-info-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
}

.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.price-header .section-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-badge {
  background: rgba(93, 169, 122, 0.12);
  color: var(--success);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(93, 169, 122, 0.35);
}

.price-display {
  position: relative;
}

.price-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-currency {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
}

.price-amount {
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.35rem;
  font-weight: 600;
}

.price-date-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-highlight);
  border-radius: 2px;
  border: 1px solid var(--border);
}

.calendar-icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.price-date {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .price-info-hero {
    padding: 1.5rem;
  }

  .price-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .price-amount {
    font-size: 1.9rem;
  }

  .price-currency {
    font-size: 1.2rem;
  }
}

.recommendation-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.recommendation-price strong {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recommendation-profit {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-radius: 2px;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

.recommendation-profit strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profit-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 600;
}

.profit-positive {
  color: var(--success);
}

.profit-negative {
  color: var(--danger);
}

/* ============ Influencers grid (index page) ============ */
.influencers-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.influencer-grid-card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 3px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.influencer-grid-card:hover {
  border-color: var(--text-muted);
}

.card-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 2rem;
}

.card-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.influencer-avatar-wrapper {
  position: relative;
}

.influencer-details {
  text-align: center;
  width: 100%;
}

.influencer-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.01em;
  line-height: 1.3;
  word-wrap: break-word;
}

.card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--text-muted);
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.stat-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--primary);
}

.stat-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.stat-card-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card-value {
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.card-performance-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.performance-label-text {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.performance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.performance-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.performance-display.positive .performance-icon {
  stroke: var(--success);
}

.performance-display.negative .performance-icon {
  stroke: var(--danger);
}

.performance-percentage {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 600;
}

.performance-display.positive .performance-percentage {
  color: var(--success);
}

.performance-display.negative .performance-percentage {
  color: var(--danger);
}

.performance-display.na {
  justify-content: center;
}

.performance-na {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
}

.card-action-section {
  width: 100%;
}

.view-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary-dark);
  border: 1px solid var(--primary);
  color: #f2efe4;
  padding: 0.9rem 1.5rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.influencer-grid-card:hover .view-profile-btn {
  background: var(--primary);
}

.view-profile-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.influencer-grid-card:hover .view-profile-btn svg {
  transform: translateX(3px);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .influencers-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .influencers-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .scoreboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .scorecard {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .scorecard:first-child { border-top: none; }
  .scorecard:last-child { border-right: none; }
}

@media (max-width: 768px) {
  .home .container {
    padding: 0 1.25rem;
  }

  .audit-hero {
    padding: 3.5rem 0 3rem;
  }
  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    line-height: 1.05;
  }
  .audit-hero .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .cta-row {
    gap: 0.875rem;
    flex-direction: column;
    width: 100%;
  }

  .cta-row .btn,
  .cta-row .btn-ghost-modern,
  .cta-row .btn-primary-modern,
  .cta-row .button_to {
    width: 100%;
  }

  .cta-row .button_to button {
    width: 100%;
    min-height: 48px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-head .btn {
    width: 100%;
    min-height: 48px;
  }

  .section-head-modern h2 {
    font-size: 1.75rem;
  }

  .analyses-grid {
    gap: 1.25rem;
  }

  .analysis-item {
    flex-direction: column;
    padding: 1.25rem;
  }

  .analysis-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: 0.75rem;
  }

  .influencers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .influencers-grid-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card-link-wrapper {
    padding: 1.5rem;
  }

  .card-header-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .influencer-card-name {
    font-size: 1.15rem;
  }

  .card-stats-grid {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .stat-card {
    padding: 0.875rem;
  }

  .stat-card-value {
    font-size: 1.25rem;
  }

  .card-performance-section {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .performance-percentage {
    font-size: 1.4rem;
  }

  .view-profile-btn {
    padding: 0.875rem 1.5rem;
  }

  .influencer-card {
    padding: 1.75rem 1.5rem;
  }

  .rank-badge {
    top: 1rem;
    right: 1rem;
  }

  .influencer-avatar {
    width: 88px;
    height: 88px;
  }

  .influencer-name {
    font-size: 1.25rem;
  }

  .performance-showcase {
    padding: 1.25rem 1rem;
  }

  .performance-value span {
    font-size: 1.45rem;
  }

  .stat-item {
    font-size: 0.9rem;
  }

  .btn-primary-modern,
  .card-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    width: 100%;
    min-height: 48px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .step {
    padding: 1.5rem;
  }

  .home-cta h2 {
    font-size: 1.85rem;
  }

  .home-cta .lead {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .home .container {
    padding: 0 1rem;
  }

  .audit-hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-kicker {
    font-size: 0.68rem;
  }

  .cta-row {
    gap: 0.75rem;
  }

  .btn,
  .btn-ghost-modern,
  .btn-primary-modern {
    font-size: 0.8rem;
    padding: 0.75rem 1.25rem;
  }

  .scorecard {
    padding: 1.4rem 1.25rem 1.25rem;
  }

  .scorecard-value {
    font-size: 1.75rem;
  }

  .calls-split {
    flex-direction: column;
    gap: 0.3rem;
  }

  .section-head-modern h2 {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .influencer-card {
    padding: 1.5rem 1.25rem;
  }

  .influencer-avatar {
    width: 80px;
    height: 80px;
  }

  .influencer-name {
    font-size: 1.15rem;
  }

  .performance-showcase {
    padding: 1.1rem 1rem;
  }

  .performance-label {
    font-size: 0.68rem;
  }

  .performance-value span {
    font-size: 1.3rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .stat-item {
    width: 100%;
    justify-content: space-between;
  }

  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-title {
    font-size: 1.2rem;
  }

  .step-desc {
    font-size: 0.9rem;
  }

  .influencers-grid-container {
    gap: 1.25rem;
  }

  .card-link-wrapper {
    padding: 1.25rem;
  }

  .influencer-card-name {
    font-size: 1.05rem;
  }

  .stat-card {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .stat-card-icon {
    width: 2rem;
    height: 2rem;
  }

  .stat-card-icon svg {
    width: 1rem;
    height: 1rem;
  }

  .stat-card-value {
    font-size: 1.15rem;
  }

  .stat-card-label {
    font-size: 0.68rem;
  }

  .performance-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .performance-percentage {
    font-size: 1.25rem;
  }

  .view-profile-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 900px) {
  .hero { padding: 6rem 0 3.5rem; }
}
@media (max-width: 640px) {
  .video-metadata { flex-direction: column; }
  .video-metadata .video-thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; }

  .recommendation-quote {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .go-to-transcript-btn {
    align-self: stretch;
    text-align: center;
  }
}
