.journal-dividend-label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #bdc3c7;
  font-size: 14px;
  cursor: pointer;
}

.journal-inline-hint {
  margin: -10px 0 20px;
  color: #bdc3c7;
  font-size: 13px;
  line-height: 1.35;
}

.journal-footnote {
  color: #95a5a6;
  font-size: 12px;
  padding-top: 8px;
}

.journal-pro-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #32cd32;
}

.journal-modal-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.journal-modal-btn--primary {
  margin-bottom: 10px;
}

.journal-empty {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
}

.journal-empty--no-data {
  padding: 60px;
}

.journal-empty--error {
  padding: 40px;
}

.journal-empty-title {
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.journal-empty-title--error {
  color: #e74c3c;
}

.journal-empty-emoji {
  font-size: 48px;
  margin-bottom: 20px;
}

.journal-empty-text {
  color: #95a5a6;
}

.journal-summary-row {
  background: rgba(50, 205, 50, 0.08);
  border-top: 2px solid rgba(50, 205, 50, 0.3);
  border-bottom: 1px solid rgba(50, 205, 50, 0.2);
}

.journal-summary-cell {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #32cd32;
}

.journal-dividend-row {
  background: rgba(50, 205, 50, 0.03);
}

.journal-inline-select {
  padding: 6px 10px;
  width: auto;
  min-width: 140px;
}

.journal-status {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.journal-status--closed {
  background: rgba(50, 205, 50, 0.2);
  color: #32cd32;
}

.journal-status--open {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}
:root {
  /* Base colors */
  --pp-color-bg-base: #02030a;
  --pp-color-bg-elevated: #050816;
  --pp-color-bg-soft: #0b1220;

  /* Surfaces */
  --pp-color-surface: rgba(15, 23, 42, 0.9);
  --pp-color-surface-soft: rgba(15, 23, 42, 0.75);
  --pp-color-surface-strong: rgba(15, 23, 42, 0.95);

  /* Borders */
  --pp-color-border-subtle: rgba(148, 163, 184, 0.25);
  --pp-color-border-strong: rgba(148, 163, 184, 0.45);
  --pp-color-border-accent: rgba(56, 189, 248, 0.65);

  /* Text */
  --pp-color-text-primary: #e5e7eb;
  --pp-color-text-strong: #f9fafb;
  --pp-color-text-muted: #9ca3af;
  --pp-color-text-soft: #6b7280;
  --pp-color-text-accent: #7dd3fc;

  /* Accents */
  --pp-color-accent-primary: #22c55e;  /* teal/green */
  --pp-color-accent-primary-soft: rgba(34, 197, 94, 0.12);
  --pp-color-accent-secondary: #38bdf8; /* cyan/blue */
  --pp-color-accent-gold: #facc15;
  --pp-color-accent-gold-soft: rgba(250, 204, 21, 0.14);
  --pp-color-accent-danger: #f97373;

  /* Button specific */
  --pp-color-btn-primary-bg: linear-gradient(135deg, #22c55e, #16a34a);
  --pp-color-btn-primary-border: rgba(34, 197, 94, 0.8);
  --pp-color-btn-secondary-bg: rgba(15, 23, 42, 0.75);
  --pp-color-btn-secondary-border: rgba(156, 163, 175, 0.4);

  /* Radii */
  --pp-radius-xs: 6px;
  --pp-radius-sm: 10px;
  --pp-radius-md: 14px;
  --pp-radius-lg: 18px;
  --pp-radius-xl: 24px;
  --pp-radius-pill: 999px;

  /* Blur / glass */
  --pp-blur-soft: 12px;
  --pp-blur-strong: 24px;

  /* Spacing scale */
  --pp-space-1: 4px;
  --pp-space-2: 8px;
  --pp-space-3: 12px;
  --pp-space-4: 16px;
  --pp-space-5: 20px;
  --pp-space-6: 24px;
  --pp-space-8: 32px;
  --pp-space-10: 40px;
  --pp-space-12: 48px;
  --pp-space-16: 64px;

  /* Shadows */
  --pp-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --pp-shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.6);
  --pp-shadow-glow-primary: 0 0 40px rgba(34, 197, 94, 0.18);
  --pp-shadow-glow-cyan: 0 0 40px rgba(56, 189, 248, 0.2);

  /* Typography */
  --pp-font-family-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font sizes (desktop base) */
  --pp-font-size-hero: clamp(42px, 5vw, 60px);
  --pp-font-size-h1: clamp(28px, 4vw, 40px);
  --pp-font-size-h2: clamp(1.6rem, 2.4vw, 2.1rem);
  --pp-font-size-h3: 1.25rem;
  --pp-font-size-body: 0.98rem;
  --pp-font-size-small: 0.85rem;
  --pp-font-size-xs: 0.78rem;
}


/* --------------------------------------
   2. BACKGROUND GLOW SYSTEM
-------------------------------------- */
body.pp-glow-bg {
  background-color: var(--pp-color-bg-base);
  color: var(--pp-color-text-primary);
  font-family: var(--pp-font-family-sans);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --------------------------------------
   DASHBOARD (private pages)
-------------------------------------- */
body.pp-dashboard-page {
  color: var(--pp-color-text-primary);
}

.pp-hidden {
  display: none;
}

/* Use the same shell rhythm as public pages */
body.pp-dashboard-page .main-container.pp-shell {
  padding-top: var(--pp-space-10);
  padding-bottom: var(--pp-space-12);
}

/* Dashboard spacing tokens (single source of truth) */
body.pp-dashboard-page {
  --pp-dashboard-gap-y: var(--pp-space-8);
  --pp-dashboard-card-pad: var(--pp-space-6);
  --pp-dashboard-card-pad-lg: var(--pp-space-8);
  --pp-dashboard-control-h: 40px;
}

/* Simple staggered appear animation (dashboard) */
body.pp-dashboard-page .pp-appear {
  animation: ppAppear 600ms ease both;
}

@keyframes ppAppear {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------
   Stock Analysis page (stock-analysis.html)
-------------------------------------- */
body.pp-analysis-page {
  color: var(--pp-color-text-primary);
}

/* Main content wrapper (same pattern as dashboard / trading-journal) */
body.pp-analysis-page .main-container.pp-shell.pp-analysis-main {
  position: relative;
  z-index: 2;
  padding-top: var(--pp-space-10);
  padding-bottom: var(--pp-space-12);
}

body.pp-analysis-page #analysisResults {
  position: relative;
  z-index: 2;
}

/* Header: same styling as dashboard / trading-journal */
body.pp-analysis-page .nav-header.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  border-radius: 0;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(var(--pp-blur-soft));
  -webkit-backdrop-filter: blur(var(--pp-blur-soft));
}

body.pp-analysis-page .nav-header-inner,
body.pp-analysis-page .header-inner.nav-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  align-items: center;
  column-gap: var(--pp-space-5);
  padding-block: 4px;
  width: 100%;
}

body.pp-analysis-page .header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.pp-analysis-page .nav-links.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

body.pp-analysis-page .header-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.pp-analysis-page .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.pp-analysis-page .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(2, 6, 23, 0.9);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(56, 189, 248, 0.82));
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.pp-analysis-page #user-greeting {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

body.pp-analysis-page .upgrade-btn.pp-btn {
  padding: 8px 12px;
  font-weight: 800;
}

body.pp-analysis-page .upgrade-btn.pp-btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--pp-shadow-glow-primary);
}

body.pp-analysis-page .nav-links .nav-link.active {
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.30), transparent 60%),
    rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.65);
}

body.pp-analysis-page .nav-links .nav-link:not(.active) {
  opacity: 0.9;
}

body.pp-analysis-page .nav-links .nav-link:not(.active):hover {
  opacity: 1;
}

/* Ticker input row */
body.pp-analysis-page .ticker-input-section {
  margin-top: var(--pp-space-6);
  margin-bottom: var(--pp-space-6);
}

body.pp-analysis-page .ticker-input-group.analysis-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--pp-space-5);
  align-items: center;
}

body.pp-analysis-page #tickerInput.form-input {
  min-height: 48px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--pp-radius-md);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.06);
  padding: 0 var(--pp-space-4);
}

body.pp-analysis-page #analyzeBtn.pp-btn {
  min-height: 48px;
}

/* Analysis results layout rhythm */
body.pp-analysis-page #analysisResults {
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-6);
}

/* Company header card */
body.pp-analysis-page .company-header.pp-card {
  padding: var(--pp-space-6);
}

body.pp-analysis-page .company-name {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

body.pp-analysis-page .company-meta {
  margin: 6px 0 0;
  color: rgba(209, 213, 219, 0.86);
  line-height: 1.5;
}

/* Diamond score hero */
body.pp-analysis-page .score-hero.pp-card--highlight {
  padding: var(--pp-space-8);
  text-align: center;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 0 40px rgba(125, 211, 252, 0.18), 0 0 80px rgba(125, 211, 252, 0.08);
}

body.pp-analysis-page .score-display {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.pp-analysis-page .score-verdict {
  margin-top: 6px;
  font-weight: 800;
  color: rgba(209, 213, 219, 0.92);
}

body.pp-analysis-page .score-scale {
  margin-top: var(--pp-space-6);
  text-align: left;
  padding: var(--pp-space-5);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.60);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: visible;
}

body.pp-analysis-page .score-scale-title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.92);
  margin-bottom: 10px;
}

body.pp-analysis-page .score-scale-item {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.pp-analysis-page .score-scale-item + .score-scale-item {
  margin-top: 6px;
}

/* Detailed scoring breakdown: collapsible category cards */
body.pp-analysis-page .scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--pp-space-4);
}

body.pp-analysis-page .score-category-collapsible {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.pp-analysis-page .score-category-collapsible:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

body.pp-analysis-page .score-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pp-space-3);
  padding: var(--pp-space-4);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease;
}

body.pp-analysis-page .score-category-header:hover {
  background: rgba(148, 163, 184, 0.06);
}

body.pp-analysis-page .score-category-header-left {
  display: flex;
  align-items: center;
  gap: var(--pp-space-3);
  min-width: 0;
}

body.pp-analysis-page .score-category-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

body.pp-analysis-page .score-category-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(209, 213, 219, 0.92);
}

body.pp-analysis-page .score-category-toggle {
  flex-shrink: 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.7rem;
  font-weight: 900;
  transition: transform 0.22s ease;
  transform: rotate(-90deg);
}

body.pp-analysis-page .score-category-collapsible[data-expanded="true"] .score-category-toggle,
body.pp-analysis-page .score-category-toggle.expanded {
  transform: rotate(0deg);
}

body.pp-analysis-page .score-category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

body.pp-analysis-page .score-category-body.expanded {
  max-height: 120px;
}

body.pp-analysis-page .score-category-body .score-category-value {
  padding: 0 var(--pp-space-4) var(--pp-space-4);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pp-color-text-primary);
}

/* Quick summary grid */
body.pp-analysis-page .quick-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pp-space-4);
}

body.pp-analysis-page .summary-card.pp-card {
  padding: var(--pp-space-5);
}

body.pp-analysis-page .summary-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 800;
}

body.pp-analysis-page .summary-value {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}

body.pp-analysis-page .summary-sub {
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
  line-height: 1.35;
}

body.pp-analysis-page .summary-change {
  margin-top: 8px;
  font-weight: 900;
}

body.pp-analysis-page .positive { color: #86efac; }
body.pp-analysis-page .negative { color: #fda4af; }

body.pp-analysis-page .summary-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

body.pp-analysis-page .summary-status.safe {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: #bbf7d0;
}

/* Current price panel typography */
body.pp-analysis-page .cp-price {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

body.pp-analysis-page .cp-change {
  font-weight: 900;
}

body.pp-analysis-page .cp-rows {
  margin-top: var(--pp-space-4);
  display: grid;
  gap: 8px;
}

body.pp-analysis-page .cp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(209, 213, 219, 0.86);
}

body.pp-analysis-page .cp-range-block {
  margin-top: var(--pp-space-4);
  padding-top: var(--pp-space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.pp-analysis-page .cp-range-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
  margin-bottom: 10px;
}

body.pp-analysis-page .cp-range-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

body.pp-analysis-page .cp-range-fill {
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.75), rgba(56, 189, 248, 0.65));
}

body.pp-analysis-page .cp-range-indicator {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-50%);
}

body.pp-analysis-page .cp-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.9rem;
}

body.pp-analysis-page .cp-meta {
  margin-top: var(--pp-space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.88rem;
}

/* Valuation cards grid */
body.pp-analysis-page .valuation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pp-space-4);
}

body.pp-analysis-page .valuation-card {
  padding: var(--pp-space-5);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.pp-analysis-page .valuation-card.highlight {
  border-color: rgba(56, 189, 248, 0.32);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.10), transparent 55%),
    rgba(15, 23, 42, 0.70);
}

body.pp-analysis-page .valuation-method {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

body.pp-analysis-page .valuation-price {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}

body.pp-analysis-page .valuation-detail {
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.9rem;
}

/* Verdict box */
body.pp-analysis-page .verdict-box {
  padding: var(--pp-space-5);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
}

body.pp-analysis-page .verdict-text {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

/* Tables: ownership/insider/institutional */
body.pp-analysis-page .ownership-table-header,
body.pp-analysis-page .insider-trades-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: var(--pp-space-5);
  margin-bottom: var(--pp-space-3);
}

body.pp-analysis-page .ownership-table-title,
body.pp-analysis-page .insider-trades-title {
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

body.pp-analysis-page .ownership-table-sub,
body.pp-analysis-page .insider-trades-sub {
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.9rem;
}

body.pp-analysis-page .ownership-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
}

body.pp-analysis-page .ownership-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

body.pp-analysis-page .ownership-table th,
body.pp-analysis-page .ownership-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

body.pp-analysis-page .ownership-table th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(2, 6, 23, 0.35);
}

body.pp-analysis-page .ownership-loading {
  color: rgba(148, 163, 184, 0.95);
  padding: 16px 12px;
}

/* Charts cards (existing markup pp-chart-card) */
body.pp-analysis-page .pp-chart-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.70);
  overflow: hidden;
}

body.pp-analysis-page .pp-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: var(--pp-space-5) var(--pp-space-6);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.pp-analysis-page .pp-chart-title {
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

body.pp-analysis-page .pp-chart-subtitle {
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.9rem;
}

body.pp-analysis-page .pp-chart-stage {
  padding: var(--pp-space-5) var(--pp-space-6);
}

body.pp-analysis-page .pp-chart-canvas {
  height: 280px;
  min-height: 280px;
}

/* PE risk banner */
body.pp-analysis-page .pe-risk-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
  margin-bottom: var(--pp-space-5);
}

body.pp-analysis-page .pe-risk-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.pp-analysis-page .pe-risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.30);
  color: rgba(255, 255, 255, 0.86);
}

body.pp-analysis-page .pe-risk-msg {
  color: rgba(209, 213, 219, 0.88);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pp-analysis-page .pe-risk-pct {
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

/* Risk variants (class already on element) */
body.pp-analysis-page .pe-risk-low .pe-risk-badge {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: #bbf7d0;
}

body.pp-analysis-page .pe-risk-med .pe-risk-badge {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.10);
  color: #fde68a;
}

body.pp-analysis-page .pe-risk-high .pe-risk-badge {
  border-color: rgba(249, 115, 115, 0.45);
  background: rgba(249, 115, 115, 0.10);
  color: #fecaca;
}

/* LBO explainer */
body.pp-analysis-page .lbo-explainer-wrap {
  margin-top: var(--pp-space-5);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.60);
  overflow: hidden;
}

body.pp-analysis-page .lbo-explainer-toggle {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.90);
}

body.pp-analysis-page .lbo-explainer-toggle:hover {
  background: rgba(148, 163, 184, 0.06);
}

body.pp-analysis-page .lbo-explainer-body {
  padding: 0 16px 16px;
  color: rgba(209, 213, 219, 0.88);
  line-height: 1.6;
}

body.pp-analysis-page .lbo-disclaimer-top {
  margin: 12px 0 14px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.92rem;
}

body.pp-analysis-page .lbo-steps-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--pp-space-3);
}

body.pp-analysis-page .lbo-step {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.30);
}

body.pp-analysis-page .lbo-step-title {
  font-weight: 950;
  margin-top: 8px;
}

body.pp-analysis-page .lbo-step-desc {
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.9rem;
}

body.pp-analysis-page .lbo-step-arrow {
  display: none;
}

body.pp-analysis-page .lbo-cases-label {
  margin-top: var(--pp-space-5);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

body.pp-analysis-page .lbo-cases-grid {
  margin-top: var(--pp-space-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-space-4);
}

body.pp-analysis-page .lbo-investor-note {
  margin-top: var(--pp-space-5);
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.32);
  color: rgba(209, 213, 219, 0.9);
}

/* Insider legend */
body.pp-analysis-page .insider-type-legend {
  margin-top: var(--pp-space-5);
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
}

body.pp-analysis-page .insider-legend-title {
  font-weight: 950;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

body.pp-analysis-page .insider-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pp-space-3);
}

/* Institutional quarter badge */
body.pp-analysis-page .inst-badge-quarter {
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.30);
  color: rgba(148, 163, 184, 0.95);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  body.pp-analysis-page .lbo-steps-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.pp-analysis-page .insider-legend-grid {
    grid-template-columns: 1fr;
  }
}

/* Coming soon overlay */
body.pp-analysis-page .coming-soon-overlay {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
  padding: var(--pp-space-6);
  margin-bottom: var(--pp-space-5);
}

body.pp-analysis-page .coming-soon-message h3 {
  margin: 0 0 6px;
  font-weight: 950;
}

body.pp-analysis-page .coming-soon-message p {
  margin: 0;
  color: rgba(148, 163, 184, 0.92);
}

@media (max-width: 1024px) {
  body.pp-analysis-page .valuation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.pp-analysis-page .valuation-grid {
    grid-template-columns: 1fr;
  }
}

/* Collapsible sections as glass cards */
body.pp-analysis-page .collapsible-section.pp-card {
  padding: 0;
}

body.pp-analysis-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--pp-space-5) var(--pp-space-6);
  cursor: pointer;
  user-select: none;
}

body.pp-analysis-page .section-header:hover {
  background: rgba(148, 163, 184, 0.06);
}

body.pp-analysis-page .section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(209, 213, 219, 0.92);
}

body.pp-analysis-page .section-toggle {
  color: rgba(148, 163, 184, 0.95);
  font-weight: 900;
}

body.pp-analysis-page .section-content {
  padding: 0 var(--pp-space-6) var(--pp-space-6);
}

body.pp-analysis-page .section-inner {
  padding-top: var(--pp-space-4);
}

/* Mini tabs */
body.pp-analysis-page .mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--pp-space-4);
}

body.pp-analysis-page .mini-tab {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.70);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.pp-analysis-page .mini-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

body.pp-analysis-page .mini-tab.active {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

@media (max-width: 1024px) {
  body.pp-analysis-page .quick-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.pp-analysis-page .ticker-input-group.analysis-input {
    grid-template-columns: 1fr;
  }

  body.pp-analysis-page .quick-summary {
    grid-template-columns: 1fr;
  }
}

/* Utility spacing used in stock-analysis.html */
.pp-micro-muted {
  font-size: 14px;
  color: var(--pp-color-text-muted);
  margin-top: 10px;
}

.pp-mt-4 { margin-top: var(--pp-space-4); }
.pp-mt-5 { margin-top: var(--pp-space-5); }

/* Fallback view */
.pp-fallback {
  max-width: 1200px;
  margin: 24px auto;
  color: var(--pp-color-text-primary);
}

.pp-fallback-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.pp-fallback-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pp-fallback-table-wrap {
  overflow-x: auto;
}

.pp-fallback-table {
  width: 100%;
  border-collapse: collapse;
}

.pp-fallback-tbody {
  font-size: 14px;
  line-height: 1.45;
}

.pp-fallback-td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.pp-fallback-note {
  margin-top: 8px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
}

.pp-na {
  color: rgba(148, 163, 184, 0.9);
  font-style: italic;
}

/* Consistent vertical rhythm for dashboard sections */
body.pp-dashboard-page .main-container {
  display: flex;
  flex-direction: column;
  gap: var(--pp-dashboard-gap-y);
}

/* Avoid horizontal overflow on small screens */
body.pp-dashboard-page {
  overflow-x: hidden;
}

body.pp-dashboard-page .main-container,
body.pp-dashboard-page .dashboard-grid,
body.pp-dashboard-page .pp-card {
  min-width: 0;
}

body.pp-dashboard-page .pp-card {
  overflow: hidden;
}

/* Normalize padding inside all dashboard cards */
body.pp-dashboard-page .pp-card {
  padding: var(--pp-dashboard-card-pad);
}

/* Hero/highlight section can breathe a bit more */
body.pp-dashboard-page .welcome-section.pp-card {
  padding: var(--pp-dashboard-card-pad-lg);
}

/* Promos stay compact */
body.pp-dashboard-page .promo-card.pp-card {
  padding: 0; /* summary/body handle internal padding */
}

body.pp-dashboard-page .promo-summary {
  padding: 14px var(--pp-dashboard-card-pad);
}

body.pp-dashboard-page .promo-body {
  padding: 0 var(--pp-dashboard-card-pad) var(--pp-dashboard-card-pad);
}

/* --------------------------------------
   Dashboard glow reduction (clean SaaS)
   Keep glow ONLY on primary CTAs
-------------------------------------- */

/* Cards: no glow, only soft shadow + subtle border */
body.pp-dashboard-page .pp-card,
body.pp-dashboard-page .pp-card--warning,
body.pp-dashboard-page .pp-card--highlight {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  border-color: rgba(148, 163, 184, 0.22);
}

body.pp-dashboard-page .pp-card:hover,
body.pp-dashboard-page .pp-card--warning:hover,
body.pp-dashboard-page .pp-card--highlight:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-color: rgba(148, 163, 184, 0.34);
}

/* Remove icon glows inside cards */
body.pp-dashboard-page .card-icon,
body.pp-dashboard-page .dashboard-card:hover .card-icon {
  box-shadow: none;
}

/* Secondary buttons: no glow, keep subtle shadow */
body.pp-dashboard-page .pp-btn-secondary,
body.pp-dashboard-page .pp-btn-secondary:hover,
body.pp-dashboard-page .pp-btn-secondary:active {
  box-shadow: none;
}

/* Donation selected state: no neon ring, just border emphasis */
body.pp-dashboard-page .donation-btn.pp-btn.selected,
body.pp-dashboard-page .donation-btn.pp-btn:focus-visible {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  border-color: rgba(148, 163, 184, 0.45);
}

/* Stats hover: remove glow, keep lift + soft shadow */
body.pp-dashboard-page .stat-item:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-color: rgba(148, 163, 184, 0.34);
}

/* Referral stat hover: no cyan glow */
body.pp-dashboard-page .referral-stat:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(148, 163, 184, 0.26);
}

/* Keep glow ONLY on primary CTA buttons */
body.pp-dashboard-page .pp-btn-primary {
  /* Dashboard primary: solid green (no neon) */
  background-image: none;
  background-color: #22c55e;
  color: #021012;
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.pp-dashboard-page .pp-btn-primary:hover {
  background-color: #16a34a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

/* Dashboard secondary/tertiary: no glow */
body.pp-dashboard-page .pp-btn-outline,
body.pp-dashboard-page .pp-btn-outline:hover,
body.pp-dashboard-page .pp-btn-outline:active,
body.pp-dashboard-page .pp-btn-ghost,
body.pp-dashboard-page .pp-btn-ghost:hover,
body.pp-dashboard-page .pp-btn-ghost:active,
body.pp-dashboard-page .pp-btn-secondary,
body.pp-dashboard-page .pp-btn-secondary:hover,
body.pp-dashboard-page .pp-btn-secondary:active {
  box-shadow: none;
}

/* Respect reduced motion preferences (world-class polish) */
@media (prefers-reduced-motion: reduce) {
  body.pp-dashboard-page *,
  body.pp-dashboard-page *::before,
  body.pp-dashboard-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Smooth, consistent transitions across dashboard interactive surfaces */
body.pp-dashboard-page .pp-card,
body.pp-dashboard-page .pp-btn,
body.pp-dashboard-page .nav-link,
body.pp-dashboard-page .referral-link {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

/* Background animation (kept subtle, consistent with glow system) */
.background-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.18), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(34, 197, 94, 0.14), transparent 60%);
  filter: blur(0.2px);
  animation: ppFloat 18s ease-in-out infinite;
}

.floating-shape--1 { width: 110px; height: 110px; top: 10%; left: 78%; animation-delay: 0s; }
.floating-shape--2 { width: 160px; height: 160px; top: 62%; left: 8%;  animation-delay: 5s; }
.floating-shape--3 { width: 90px;  height: 90px;  top: 28%; left: 58%; animation-delay: 10s; }

@keyframes ppFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.85; }
  25% { transform: translate(80px, -80px) rotate(90deg); opacity: 0.95; }
  50% { transform: translate(-40px, -160px) rotate(180deg); opacity: 0.8; }
  75% { transform: translate(-120px, -40px) rotate(270deg); opacity: 0.9; }
}

@keyframes ppDotPulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-2px); opacity: 1; }
}

/* Header alignment to design system */
/* Base header glassmorphism */
.nav-header.header-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-radius: 0;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(var(--pp-blur-soft));
  -webkit-backdrop-filter: blur(var(--pp-blur-soft));
}

.nav-header-inner {
  width: 100%;
  gap: 18px;
}

/* Header layout: stable grid on desktop, wraps cleanly on smaller screens */
body.pp-dashboard-page .nav-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  align-items: center;
  column-gap: var(--pp-space-5);
}

body.pp-dashboard-page .header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.pp-dashboard-page .nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

body.pp-dashboard-page .header-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.pp-dashboard-page .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.pp-dashboard-page .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(2, 6, 23, 0.9);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(56, 189, 248, 0.82));
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

body.pp-dashboard-page #user-greeting {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

body.pp-dashboard-page .upgrade-btn.pp-btn {
  padding: 8px 12px;
  font-weight: 800;
}

body.pp-dashboard-page .upgrade-btn.pp-btn-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.pp-dashboard-page .upgrade-btn.pp-btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--pp-shadow-glow-primary);
}

body.pp-dashboard-page .user-avatar {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.pp-dashboard-page .user-avatar:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 22px rgba(56, 189, 248, 0.30);
}

/* Main container */
.main-container {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--pp-space-10) var(--pp-space-6);
}

/* Normalize dashboard sections to the shared pp-card language */
body.pp-dashboard-page .dashboard-card.pp-card,
body.pp-dashboard-page .welcome-section.pp-card,
body.pp-dashboard-page .referral-banner.pp-card,
body.pp-dashboard-page .boost-options.pp-card,
body.pp-dashboard-page .boost-banner.pp-card {
  border-radius: 18px; /* match .pp-card default */
}

body.pp-dashboard-page .dashboard-card.pp-card {
  padding: var(--pp-dashboard-card-pad);
}

body.pp-dashboard-page .welcome-section.pp-card {
  padding: var(--pp-dashboard-card-pad-lg);
}

body.pp-dashboard-page .referral-banner.pp-card,
body.pp-dashboard-page .boost-options.pp-card {
  padding: var(--pp-dashboard-card-pad);
  max-width: 1000px;
  margin-inline: auto;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.2);
}

/* Make Boost banner look like an inline, secondary control */
body.pp-dashboard-page .boost-banner.pp-card {
  padding: 14px 16px;
  max-width: 1000px;
  margin: 0 auto var(--pp-space-4);
  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, 0.30) 0%,
      rgba(249, 115, 22, 0.22) 55%,
      rgba(59, 130, 246, 0.10) 100%
    );
  border-color: rgba(124, 58, 237, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(124, 58, 237, 0.22),
    0 0 24px rgba(249, 115, 22, 0.16);
}

body.pp-dashboard-page .boost-banner.pp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.35), transparent 45%),
    radial-gradient(circle at 85% 45%, rgba(249, 115, 22, 0.30), transparent 55%);
  opacity: 0.9;
  filter: blur(10px);
  z-index: -1;
}

body.pp-dashboard-page .boost-title {
  font-size: 0.95rem;
  font-weight: 700;
}

body.pp-dashboard-page .boost-subtitle {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

body.pp-dashboard-page .boost-expand-hint {
  font-size: 0.82rem;
}

/* Ensure hover rhythm matches homepage/login cards */
body.pp-dashboard-page .dashboard-card.pp-card:hover,
body.pp-dashboard-page .boost-options.pp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

/* Premium hover for Boost banner only */
body.pp-dashboard-page .boost-banner.pp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.20),
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 38px rgba(124, 58, 237, 0.28),
    0 0 30px rgba(249, 115, 22, 0.22);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: var(--pp-space-6);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--pp-color-text-strong);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--pp-radius-sm);
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.35), transparent 60%),
              rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-muted {
  color: var(--pp-color-text-muted);
  padding: 10px 0;
}

.dashboard-muted--accent {
  color: var(--pp-color-text-accent);
}

/* Small, reusable badges (used by dashboard + can be reused elsewhere) */
.pp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--pp-radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(255, 255, 255, 0.86);
}

.pp-badge--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.pp-badge--gold {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

/* Quick analysis result block */
.quick-analysis-result {
  margin-top: var(--pp-space-5);
  padding: var(--pp-space-5);
  border-radius: var(--pp-radius-lg);
  border: 1px solid var(--pp-color-border-subtle);
  background: rgba(2, 6, 23, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.quick-analysis-result--success {
  border-left: 4px solid var(--pp-color-accent-primary);
}

.quick-analysis-result--error {
  border-left: 4px solid var(--pp-color-accent-danger);
}

.quick-analysis-result-title {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--pp-color-text-strong);
}

.quick-analysis-result--success .quick-analysis-result-title {
  color: #86efac;
}

.quick-analysis-result--error .quick-analysis-result-title {
  color: #fda4af;
}

.quick-analysis-result-line {
  margin: 0 0 6px 0;
  color: rgba(255, 255, 255, 0.82);
}

.quick-analysis-result-verdict {
  margin: 10px 0 0 0;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-space-8);
  margin-bottom: 0;
}

/* Make Quick Stock Analysis the primary action card */
body.pp-dashboard-page .dashboard-grid > .dashboard-card.pp-card:first-child {
  border-color: rgba(34, 197, 94, 0.65);
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.60);
}

body.pp-dashboard-page .dashboard-grid > .dashboard-card.pp-card:first-child:hover {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.68);
}

/* --------------------------------------
   Trading Journal page (Dashboard / index design system)
-------------------------------------- */
body.pp-dashboard-page .journal-welcome .journal-welcome-head {
  display: flex;
  align-items: center;
  gap: var(--pp-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--pp-space-2);
}

body.pp-dashboard-page .journal-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 4px 10px;
  border-radius: var(--pp-radius-pill);
}

body.pp-dashboard-page .journal-tabs-wrap {
  margin-top: var(--pp-space-6);
  margin-bottom: var(--pp-space-4);
}

body.pp-dashboard-page .journal-currency-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pp-space-2);
}

body.pp-dashboard-page .currency-tab {
  padding: 8px 16px;
  border-radius: var(--pp-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--pp-color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.pp-dashboard-page .currency-tab:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--pp-color-text-primary);
  background: rgba(15, 23, 42, 0.7);
}

body.pp-dashboard-page .currency-tab.active {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

body.pp-dashboard-page .currency-tab.tab-main-summary.active {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

body.pp-dashboard-page .journal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--pp-space-4);
  margin-bottom: var(--pp-space-6);
}

body.pp-dashboard-page .journal-stat-card {
  padding: var(--pp-space-5);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.pp-dashboard-page .journal-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.35);
}

body.pp-dashboard-page .journal-stat-card--highlight {
  border-color: rgba(34, 197, 94, 0.35);
  background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12), transparent 70%),
    rgba(15, 23, 42, 0.78);
}

body.pp-dashboard-page .journal-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pp-color-text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

body.pp-dashboard-page .journal-stat-value--pl {
  color: rgba(34, 197, 94, 0.95);
}

body.pp-dashboard-page .journal-stat-value--loss {
  color: rgba(239, 68, 68, 0.95);
}

body.pp-dashboard-page .journal-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pp-color-text-muted);
  font-weight: 600;
}

body.pp-dashboard-page .journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pp-space-3);
  margin-bottom: var(--pp-space-6);
}

body.pp-dashboard-page .journal-cashflow-card {
  margin-top: var(--pp-space-6);
}

body.pp-dashboard-page .journal-cashflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--pp-space-4);
  margin-top: var(--pp-space-4);
}

body.pp-dashboard-page .journal-cashflow-item {
  padding: var(--pp-space-4);
  border-radius: var(--pp-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.pp-dashboard-page .journal-cashflow-minus { border-left: 3px solid rgba(239, 68, 68, 0.6); }
body.pp-dashboard-page .journal-cashflow-plus { border-left: 3px solid rgba(34, 197, 94, 0.6); }
body.pp-dashboard-page .journal-cashflow-neutral { border-left: 3px solid rgba(148, 163, 184, 0.5); }

body.pp-dashboard-page .journal-cashflow-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pp-color-text-muted);
}

body.pp-dashboard-page .journal-cashflow-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pp-color-text-primary);
  line-height: 1.45;
}

body.pp-dashboard-page .journal-cashflow-example {
  font-size: 0.8rem;
  color: var(--pp-color-text-muted);
}

body.pp-dashboard-page .journal-empty-state {
  margin-top: var(--pp-space-6);
  padding: var(--pp-space-6);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

body.pp-dashboard-page .journal-empty-state .pp-btn {
  margin-top: var(--pp-space-3);
}

/* Smart Nudge (trading journal – matches journal glass card & buttons) */
body.pp-dashboard-page .smart-nudge {
  display: none;
  position: fixed;
  bottom: var(--pp-space-6);
  right: var(--pp-space-6);
  max-width: 320px;
  padding: var(--pp-space-5);
  border-radius: var(--pp-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(circle at 0 100%, rgba(34, 197, 94, 0.08), transparent 50%),
    rgba(15, 23, 42, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(15, 23, 42, 0.8);
  z-index: 9999;
  flex-direction: column;
  gap: var(--pp-space-3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.pp-dashboard-page .smart-nudge.active {
  display: flex;
}

body.pp-dashboard-page .smart-nudge .nudge-close {
  position: absolute;
  top: var(--pp-space-2);
  right: var(--pp-space-2);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: var(--pp-radius-pill);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--pp-color-text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

body.pp-dashboard-page .smart-nudge .nudge-close:hover {
  color: var(--pp-color-text-primary);
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
}

body.pp-dashboard-page .smart-nudge .nudge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-color-text-primary);
  padding-right: 36px;
  margin-bottom: 2px;
}

body.pp-dashboard-page .smart-nudge .nudge-message {
  font-size: 0.9rem;
  color: var(--pp-color-text-muted);
  line-height: 1.45;
}

body.pp-dashboard-page .smart-nudge .nudge-cta {
  margin-top: var(--pp-space-2);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--pp-radius-pill);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: var(--pp-color-accent-primary);
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.pp-dashboard-page .smart-nudge .nudge-cta:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.75);
  color: rgba(255, 255, 255, 0.95);
}

/* Trading Journal modals (glass card, overlay) */
body.pp-dashboard-page .journal-modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: var(--pp-space-6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 10% 0%, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
}

body.pp-dashboard-page .journal-modal.active {
  display: flex;
}

body.pp-dashboard-page .journal-modal-content {
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - var(--pp-space-12));
  border-radius: var(--pp-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  padding: var(--pp-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-4);
  overflow-y: auto;
}

body.pp-dashboard-page .journal-modal .modal-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pp-color-text-primary);
  margin-bottom: var(--pp-space-2);
}

body.pp-dashboard-page .journal-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pp-space-3);
}

body.pp-dashboard-page .journal-modal-head .modal-header {
  margin-bottom: 0;
  line-height: 1.2;
}

body.pp-dashboard-page .journal-modal-close.pp-btn {
  padding: 8px 10px;
  min-height: 0;
  border-radius: var(--pp-radius-pill);
  line-height: 1;
  font-weight: 800;
  color: rgba(229, 231, 235, 0.9);
}

body.pp-dashboard-page .journal-modal-close.pp-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(255, 255, 255, 0.96);
}

body.pp-dashboard-page .journal-modal .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-space-4);
}

body.pp-dashboard-page .journal-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.pp-dashboard-page .journal-modal .form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pp-color-text-muted);
}

body.pp-dashboard-page .journal-modal .form-select {
  width: 100%;
  padding: 13px 46px 13px 14px;
  min-height: var(--pp-dashboard-control-h);
  border-radius: var(--pp-radius-md);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(2, 6, 23, 0.28);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(229, 231, 235, 0.9) 50%),
    linear-gradient(135deg, rgba(229, 231, 235, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--pp-color-text-primary);
  outline: none;
}

body.pp-dashboard-page .journal-modal .form-select:focus {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

body.pp-dashboard-page .journal-modal .form-select:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Uniform control sizing + spacing inside journal modals */
body.pp-dashboard-page .journal-modal .form-input,
body.pp-dashboard-page .journal-modal .form-select {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--pp-dashboard-control-h);
}

/* Date inputs often render with inconsistent padding across browsers */
body.pp-dashboard-page .journal-modal input[type="date"].form-input {
  padding-right: 46px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  color-scheme: dark;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: calc(100% - 14px) 50%;
}

/* Hide native date picker icon in WebKit so our icon aligns perfectly */
body.pp-dashboard-page .journal-modal input[type="date"].form-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Make checkbox row align with modal spacing */
body.pp-dashboard-page .journal-modal #dividendCheckboxContainer.form-group {
  margin-top: calc(var(--pp-space-2) * -1);
}

body.pp-dashboard-page .journal-modal input[type="checkbox"] {
  accent-color: var(--pp-color-accent-primary);
}

body.pp-dashboard-page .journal-modal .modal-actions {
  display: flex;
  gap: var(--pp-space-3);
  justify-content: flex-end;
  margin-top: var(--pp-space-4);
  padding-top: var(--pp-space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

body.pp-dashboard-page .journal-modal .modal-actions .pp-btn {
  min-width: 140px;
}

@media (max-width: 768px) {
  body.pp-dashboard-page .journal-modal { padding: var(--pp-space-4); }
  body.pp-dashboard-page .journal-modal-content { padding: var(--pp-space-5); }
  body.pp-dashboard-page .journal-modal .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* Referral / boost: clean internal grid */
body.pp-dashboard-page .referral-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  align-items: flex-start;
  gap: var(--pp-space-6);
}

body.pp-dashboard-page .referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: var(--pp-space-4);
  align-items: stretch;
}

body.pp-dashboard-page .boost-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pp-space-5);
}

body.pp-dashboard-page .boost-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Donation tiles: scalable grid without fixed columns */
body.pp-dashboard-page .donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--pp-space-4);
}

/* Keep donation options hidden until expanded */
body.pp-dashboard-page #boostOptions {
  display: none;
}

/* Table readability + mobile safety */
body.pp-dashboard-page .portfolio-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--pp-space-2);
}

body.pp-dashboard-page .portfolio-table th,
body.pp-dashboard-page .portfolio-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.pp-dashboard-page .portfolio-table th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.9);
  font-weight: 800;
}

body.pp-dashboard-page .portfolio-table td {
  color: rgba(255, 255, 255, 0.84);
}

body.pp-dashboard-page .portfolio-table tr:hover td {
  background: rgba(148, 163, 184, 0.06);
}

/* Mobile: allow table to scroll without breaking layout */
@media (max-width: 640px) {
  body.pp-dashboard-page .portfolio-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.pp-dashboard-page .portfolio-table thead,
  body.pp-dashboard-page .portfolio-table tbody,
  body.pp-dashboard-page .portfolio-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  body.pp-dashboard-page .portfolio-table th,
  body.pp-dashboard-page .portfolio-table td {
    white-space: nowrap;
  }
}

/* Referral link: prevent overflow, keep copy affordance */
body.pp-dashboard-page .referral-link {
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.pp-dashboard-page .referral-link--loading {
  position: relative;
  min-height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(15, 23, 42, 0.9),
    rgba(30, 64, 175, 0.55),
    rgba(15, 23, 42, 0.9)
  );
  background-size: 200% 100%;
  opacity: 0.45;
  overflow: hidden;
  animation: ppShimmer 1.4s ease-in-out infinite;
}

body.pp-dashboard-page .referral-actions {
  margin-top: var(--pp-space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.pp-dashboard-page .referral-cta.pp-btn {
  padding-inline: 12px;
  font-size: 0.85rem;
}

@keyframes ppShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.pp-dashboard-page .referral-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 3px;
  border-radius: 12px;
}

/* --------------------------------------
   Promo sections (de-emphasized)
-------------------------------------- */
body.pp-dashboard-page .promo-card.pp-card--muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.50);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

body.pp-dashboard-page .promo-card.pp-card--muted:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  border-color: rgba(148, 163, 184, 0.26);
}

body.pp-dashboard-page .promo-collapse {
  margin: 0;
}

body.pp-dashboard-page .promo-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  user-select: none;
}

body.pp-dashboard-page .promo-summary::-webkit-details-marker {
  display: none;
}

body.pp-dashboard-page .promo-summary-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
}

body.pp-dashboard-page .promo-summary-hint {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

body.pp-dashboard-page .promo-body {
  padding: 0 18px 18px;
}

/* When collapsed, keep it compact */
body.pp-dashboard-page .promo-collapse:not([open]) .promo-body {
  display: none;
}

/* Slightly reduce promo typography emphasis */
body.pp-dashboard-page .promo-card .referral-title,
body.pp-dashboard-page .promo-card .boost-title {
  font-size: 0.98rem;
}

body.pp-dashboard-page .promo-card .boost-subtitle,
body.pp-dashboard-page .promo-card .referral-upgrade-hint {
  color: rgba(148, 163, 184, 0.9);
}

body.pp-dashboard-page .promo-card .boost-expand-hint {
  color: rgba(148, 163, 184, 0.85);
  font-weight: 700;
}

/* --------------------------------------
   Empty states (intentional, not broken)
-------------------------------------- */
.pp-empty-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.62);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.pp-empty-state--table {
  margin: 6px 0;
}

.pp-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.18);
  flex: 0 0 auto;
  font-size: 20px;
}

.pp-empty-body {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.pp-empty-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.pp-empty-text {
  color: rgba(209, 213, 219, 0.86);
  line-height: 1.5;
  font-size: 0.95rem;
}

.pp-empty-hint {
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.88rem;
}

/* Make empty states fit neatly inside cards */
body.pp-dashboard-page .dashboard-card .pp-empty-state {
  margin-top: var(--pp-space-4);
}

/* AI loading shimmer (subtle, disabled by prefers-reduced-motion) */
body.pp-dashboard-page .ai-loading {
  position: relative;
  overflow: hidden;
}

body.pp-dashboard-page .ai-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(148, 163, 184, 0.28) 35%,
    rgba(15, 23, 42, 0) 70%
  );
  transform: translateX(-100%);
  animation: aiShimmer 1.4s ease-in-out infinite;
}

@keyframes aiShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Referral stats: align with premium “value > label” hierarchy */
body.pp-dashboard-page .referral-stat {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

/* Reward emphasis: first stat (free months) gets a soft highlight */
body.pp-dashboard-page .referral-stat:first-child {
  background:
    radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.16), transparent 60%),
    rgba(2, 6, 23, 0.34);
  border-color: rgba(250, 204, 21, 0.42);
}

body.pp-dashboard-page .stat-number-large {
  display: block;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.1;
}

/* Savings metric: use gold accent to feel like a reward */
body.pp-dashboard-page .referral-stat:last-child .stat-number-large {
  color: var(--pp-color-accent-gold);
}

body.pp-dashboard-page .stat-label-small {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

body.pp-dashboard-page .referral-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.24);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
}

/* Value update “breathe” animation */
@keyframes referralValuePulse {
  0%   { transform: translateY(0) scale(1);   text-shadow: none; }
  40%  { transform: translateY(-1px) scale(1.03); text-shadow: 0 0 16px rgba(250, 204, 21, 0.45); }
  100% { transform: translateY(0) scale(1);   text-shadow: none; }
}

body.pp-dashboard-page .referral-stat--updated .stat-number-large {
  animation: referralValuePulse 650ms ease-out;
}

/* Boost banner hint readability */
body.pp-dashboard-page .boost-expand-hint {
  color: rgba(148, 163, 184, 0.92);
  font-weight: 700;
}

/* Improve secondary text readability consistently */
body.pp-dashboard-page .welcome-subtitle,
body.pp-dashboard-page .boost-subtitle,
body.pp-dashboard-page .dashboard-muted {
  color: rgba(209, 213, 219, 0.88);
}

/* Tighten card header typography alignment */
body.pp-dashboard-page .card-header {
  margin-bottom: var(--pp-space-5);
}

body.pp-dashboard-page .card-title {
  line-height: 1.2;
}

/* Card icon polish (no glow on dashboard) */
body.pp-dashboard-page .card-icon {
  flex: 0 0 auto;
  box-shadow: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.pp-dashboard-page .dashboard-card:hover .card-icon {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.55);
}

/* Quick results container: ensure smooth reveal, no layout shift overflow */
body.pp-dashboard-page #quickResults {
  margin-top: var(--pp-space-5);
}

/* Analysis input: grid for consistent alignment */
body.pp-dashboard-page .analysis-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
  margin-top: var(--pp-space-2);
  margin-bottom: var(--pp-space-3);
}

/* Quick Analysis: align input + Analyze perfectly */
body.pp-dashboard-page .analysis-input .form-input {
  min-height: var(--pp-dashboard-control-h);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  padding: 0 12px;
 }

body.pp-dashboard-page .analysis-input .form-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
}

body.pp-dashboard-page .analysis-input .pp-btn {
  min-height: var(--pp-dashboard-control-h);
  padding-block: 0;
  padding-inline: 16px;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

/* Stronger focus visibility for the whole control group */
body.pp-dashboard-page .analysis-input:focus-within {
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.16);
}

/* Stronger animated focus for Quick Analysis input */
body.pp-dashboard-page .analysis-input .form-input:focus {
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

/* Analyze button hover / press feedback */
body.pp-dashboard-page .analysis-input .pp-btn.pp-btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--pp-shadow-glow-primary);
}

body.pp-dashboard-page .analysis-input .pp-btn.pp-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

/* Optional caret polish for the input */
body.pp-dashboard-page .analysis-input .form-input {
  caret-color: var(--pp-color-accent-primary);
}

/* Action buttons: grid for consistent spacing */
body.pp-dashboard-page .action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-space-3);
  margin-top: var(--pp-space-4);
  align-items: stretch;
}

/* AI Recommendations: keep actions visually grouped as a pair */
body.pp-dashboard-page .dashboard-card:last-of-type .action-buttons {
  margin-top: var(--pp-space-4);
}

body.pp-dashboard-page .action-buttons .pp-btn {
  justify-content: center;
}

/* --------------------------------------
   Dashboard: input standardization
   Match login.html input styling (scoped)
-------------------------------------- */
body.pp-dashboard-page .form-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 70%),
    rgba(15, 23, 42, 0.78);
  color: var(--pp-color-text-primary);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.pp-dashboard-page .form-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

body.pp-dashboard-page .form-input:focus {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  background: rgba(15, 23, 42, 0.82);
}

/* Reduce number input spinner visual noise (keeps behavior) */
body.pp-dashboard-page input[type="number"].form-input {
  appearance: textfield;
}

body.pp-dashboard-page input[type="number"].form-input::-webkit-outer-spin-button,
body.pp-dashboard-page input[type="number"].form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Donation block tweaks: keep existing class hooks but use consistent field sizing */
body.pp-dashboard-page .custom-donation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pp-space-3);
}

body.pp-dashboard-page .custom-donation .form-input {
  text-align: center;
}

/* --------------------------------------
   Dashboard: button standardization
   Keep legacy class hooks, map to pp-btn
-------------------------------------- */

/* Ensure anchor-buttons behave like buttons */
body.pp-dashboard-page a.pp-btn {
  text-decoration: none;
}

/* Donation tiles: when combined with pp-btn, they should be consistent */
body.pp-dashboard-page .donation-btn.pp-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 14px 14px;
  border-radius: var(--pp-radius-lg);
}

body.pp-dashboard-page .donation-btn.pp-btn.selected,
body.pp-dashboard-page .donation-btn.pp-btn:focus-visible {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.22),
    0 14px 40px rgba(0, 0, 0, 0.35);
}

body.pp-dashboard-page .donation-btn .price {
  display: block;
  margin-top: 8px;
  font-weight: 900;
  color: var(--pp-color-text-accent);
}

/* Submit donation: full-width primary */
body.pp-dashboard-page .donation-submit.pp-btn {
  width: 100%;
}

/* Legacy buttons: if markup still uses these classes elsewhere, keep consistent states */
body.pp-dashboard-page .upgrade-btn,
body.pp-dashboard-page .analyze-btn,
body.pp-dashboard-page .donation-submit {
  -webkit-tap-highlight-color: transparent;
}

/* Trial Limit / Upgrade modal - align with dashboard card system */
body.pp-dashboard-page .upgrade-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.96));
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: var(--pp-space-6);
}

body.pp-dashboard-page .upgrade-modal-content {
  max-width: 520px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.96);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  padding: var(--pp-space-7) var(--pp-space-6) var(--pp-space-6);
  text-align: center;
}

body.pp-dashboard-page .upgrade-icon {
  font-size: 2.8rem;
  margin-bottom: var(--pp-space-3);
}

body.pp-dashboard-page .upgrade-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: var(--pp-space-3);
}

body.pp-dashboard-page .upgrade-message {
  color: rgba(209, 213, 219, 0.9);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: var(--pp-space-5);
}

body.pp-dashboard-page .upgrade-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-space-3);
}

body.pp-dashboard-page .upgrade-buttons .upgrade-btn {
  border-radius: 999px;
}

body.pp-dashboard-page .upgrade-buttons .upgrade-btn-primary {
  /* Reuse primary CTA styling */
  background-color: #22c55e;
  color: #021012;
}

body.pp-dashboard-page .upgrade-buttons .upgrade-btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgba(248, 250, 252, 0.9);
}

body.pp-dashboard-page .upgrade-buttons .upgrade-btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
}

/* Welcome */
body.pp-dashboard-page .welcome-section {
  margin-bottom: 0;
}

/* Dashboard hero (Welcome): subtle lighting, premium contrast (no heavy glow) */
body.pp-dashboard-page .welcome-section.pp-card--highlight {
  position: relative;
  background:
    radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.10), transparent 55%),
    radial-gradient(circle at 82% 70%, rgba(34, 197, 94, 0.08), transparent 60%),
    rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.26);
}

body.pp-dashboard-page .welcome-section.pp-card--highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.00) 55%,
      rgba(255, 255, 255, 0.02) 100%
    );
  opacity: 0.85;
}

body.pp-dashboard-page .welcome-section.pp-card--highlight > * {
  position: relative;
  z-index: 1;
}

.welcome-title {
  font-size: clamp(1.9rem, 2.9vw, 2.45rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: var(--pp-space-2);
}

.welcome-title {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(125, 211, 252, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  color: rgba(209, 213, 219, 0.90);
  font-size: 1rem;
  line-height: 1.55;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--pp-space-4);
  margin-top: var(--pp-space-6);
}

.stat-item {
  position: relative;
  padding: var(--pp-space-5);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.10), transparent 55%),
    rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-item .stat-number {
  font-variant-numeric: tabular-nums;
}

/* De-emphasize secondary stats for scanability */
body.pp-dashboard-page .quick-stats .stat-item:not(.stat-item--primary) {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

body.pp-dashboard-page .quick-stats .stat-item:not(.stat-item--primary) .stat-number {
  opacity: 0.86;
  font-size: clamp(1.35rem, 2.0vw, 1.7rem);
}

body.pp-dashboard-page .quick-stats .stat-item:not(.stat-item--primary) .stat-label {
  opacity: 0.85;
}

/* Portfolio Value: make dominant */
body.pp-dashboard-page .stat-item--primary {
  grid-column: span 2;
  align-items: flex-start;
  text-align: left;
  background:
    radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.14), transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(56, 189, 248, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.78);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

body.pp-dashboard-page .stat-item--primary .stat-number {
  font-size: clamp(2.0rem, 3.4vw, 2.6rem);
  color: rgba(255, 255, 255, 0.96);
}

body.pp-dashboard-page .stat-item--primary .stat-label {
  font-size: 0.78rem;
  color: rgba(209, 213, 219, 0.92);
}

@media (max-width: 860px) {
  body.pp-dashboard-page .stat-item--primary {
    grid-column: span 1;
  }
}

.stat-number {
  display: block;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pp-color-text-strong);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-color-text-muted);
}

/* Premium hover interaction (clean, no neon glow) */
body.pp-dashboard-page .stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* Buttons/inputs: reuse system styles but keep existing class hooks */
.ticker-input {
  width: 100%;
  padding: 0px 22px;
  border-radius: var(--pp-radius-md);
  border: 1px solid var(--pp-color-border-subtle);
  background: rgba(2, 6, 23, 0.35);
  color: var(--pp-color-text-strong);
  text-transform: uppercase;
}

.ticker-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.analysis-input {
  display: flex;
  gap: var(--pp-space-3);
  align-items: stretch;
}

.analyze-btn {
  white-space: nowrap;
  border-radius: var(--pp-radius-md);
  border: 1px solid var(--pp-color-btn-primary-border);
  background: var(--pp-color-btn-primary-bg);
  color: rgba(2, 6, 23, 0.9);
  font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.16);
}

.analyze-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.22);
}

.action-buttons {
  display: flex;
  gap: var(--pp-space-3);
  margin-top: var(--pp-space-6);
}

.action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--pp-radius-pill);
  border: 1px solid var(--pp-color-border-subtle);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(148, 163, 184, 0.14);
}

.action-btn.primary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(56, 189, 248, 0.22));
  border-color: rgba(56, 189, 248, 0.45);
}

/* Cookie consent banner */
.pp-consent {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  padding: 0;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.70);
  color: var(--pp-color-text-primary);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(var(--pp-blur-strong));
  -webkit-backdrop-filter: blur(var(--pp-blur-strong));
  overflow: hidden;
}

.pp-consent-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 16px 14px;
}

.pp-consent-copy {
  max-width: 760px;
}

.pp-consent-title {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--pp-color-text-strong);
}

.pp-consent-text {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(209, 213, 219, 0.86);
  line-height: 1.5;
}

/* Back-compat: dashboard.html uses `.pp-consent-sub` */
.pp-consent-sub {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(209, 213, 219, 0.86);
  line-height: 1.5;
}

.pp-consent-link {
  color: var(--pp-color-text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pp-consent-options {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.pp-consent-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.18);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.pp-consent-option:hover {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.28);
}

.pp-consent-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--pp-color-accent-primary);
}

.pp-consent-option input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.pp-consent-option--required {
  opacity: 0.92;
}

.pp-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2px;
}

.pp-consent-btn {
  padding: 10px 12px;
  min-width: 120px;
  justify-content: center;
}

/* Make consent buttons follow dashboard hierarchy */
body.pp-dashboard-page .pp-consent-actions .pp-btn-primary {
  background-color: #22c55e;
  color: #021012;
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.pp-dashboard-page .pp-consent-actions .pp-btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

body.pp-dashboard-page .pp-consent-actions .pp-btn-secondary:hover {
  background-color: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.5);
}

@media (max-width: 860px) {
  .pp-consent-inner {
    grid-template-columns: 1fr;
  }

  .pp-consent-actions {
    justify-content: stretch;
  }

  .pp-consent-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 861px) and (max-width: 1440px) {
  body.pp-dashboard-page .nav-links .nav-item,
  body.pp-dashboard-page .nav-links .nav-link {
    font-size: 0.82rem;
    padding: 4px 8px;
  }
  body.pp-dashboard-page .nav-links .nav-item-special {
    font-size: 0.82rem;
    padding: 5px 10px;
  }
}

@media (max-width: 860px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .main-container { padding: var(--pp-space-8) var(--pp-space-4); }

  body.pp-dashboard-page .nav-header-inner,
  body.pp-analysis-page .nav-header-inner,
  body.pp-analysis-page .header-inner.nav-header-inner {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  body.pp-dashboard-page .nav-links,
  body.pp-analysis-page .nav-links.header-links {
    justify-content: flex-start;
  }

  body.pp-dashboard-page .user-info,
  body.pp-analysis-page .user-info {
    justify-content: flex-start;
  }

  body.pp-dashboard-page .referral-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.pp-dashboard-page .referral-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pp-dashboard-page .boost-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.pp-dashboard-page .analysis-input {
    grid-template-columns: 1fr;
  }

  body.pp-dashboard-page .action-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body.pp-dashboard-page .referral-stats {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------
   2a. PUBLIC LANDING HEADER & HERO
-------------------------------------- */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo styles → logo.css */

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    backdrop-filter 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.nav-link--primary {
  color: var(--pp-color-accent-primary);
}

.nav-link--primary:hover {
  background-color: rgba(34, 197, 94, 0.12);
  color: var(--pp-color-accent-primary);
}

/* Dashboard-specific nav polish */
body.pp-dashboard-page .nav-header.header-nav {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

body.pp-dashboard-page .nav-links .nav-link.active {
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.30), transparent 60%),
    rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.65);
}

body.pp-dashboard-page .nav-links .nav-link:not(.active) {
  opacity: 0.9;
}

body.pp-dashboard-page .nav-links .nav-link:not(.active):hover {
  opacity: 1;
}

body.pp-dashboard-page .nav-header-inner {
  padding-block: 4px;
}

.hero {
  text-align: left;
  position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.18) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.16) 0, transparent 60%),
    linear-gradient(135deg, #020617, #020617 55%, #020617 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      120deg,
      rgba(59, 130, 246, 0.0) 0%,
      rgba(59, 130, 246, 0.22) 35%,
      rgba(147, 51, 234, 0.24) 65%,
      rgba(16, 185, 129, 0.18) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.35;
}

.hero-layout {
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  row-gap: 16px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.hero-actions .pp-btn {
  width: 100%;
  max-width: 320px;
  min-width: 0;
  box-sizing: border-box;
}

.hero-right {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-preview-card {
  max-width: 440px;
  background:
    linear-gradient(#020617, #020617) padding-box,
    linear-gradient(120deg, #22c55e, #38bdf8) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.18),
    0 0 70px rgba(99, 102, 241, 0.10),
    0 16px 50px rgba(0, 0, 0, 0.5);
  animation: heroFloat 6s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-preview-card:hover {
  transform: translateY(-10px) scale(1.02);
  animation-name: none;
  box-shadow:
    0 0 56px rgba(56, 189, 248, 0.28),
    0 0 90px rgba(99, 102, 241, 0.18),
    0 24px 56px rgba(0, 0, 0, 0.5);
}

.hero-preview-body {
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-4);
}

.hero-preview-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pp-space-3);
}

.hero-preview-ticker {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pp-color-text-soft);
}

.hero-preview-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pp-color-text-strong);
}

.hero-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-preview-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-preview-tag--diamond {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.hero-preview-tag--fair {
  background: rgba(56, 189, 248, 0.14);
  color: #e0f2fe;
}

.hero-preview-chart {
  margin-top: 8px;
  height: 70px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 100%, rgba(34, 197, 94, 0.22), transparent 60%),
              radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.22), transparent 60%);
  overflow: hidden;
  position: relative;
}

.hero-preview-chart-line {
  position: absolute;
  inset: 18px 6px 18px 6px;
  border-radius: 999px;
  background: linear-gradient(120deg,
    rgba(148, 163, 184, 0.2),
    rgba(226, 232, 240, 0.95),
    rgba(148, 163, 184, 0.2)
  );
  background-size: 200% 100%;
  opacity: 0.9;
  animation: heroChartShimmer 5s linear infinite, heroChartDrift 12s ease-in-out infinite;
}

@keyframes heroChartShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes heroChartDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.hero-preview-footnote {
  font-size: 0.75rem;
  color: var(--pp-color-text-soft);
}

.hero-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  color: var(--pp-color-text-muted);
}

body.pp-glow-bg::before,
body.pp-glow-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

/* Subtle grid / noise overlay */
body.pp-glow-bg::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
}

/* Corner glows + soft gradient mesh (cyan, emerald, indigo) */
body.pp-glow-bg::after {
  background:
    radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.10) 0, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.10) 0, transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(99, 102, 241, 0.09) 0, transparent 70%),
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(56, 189, 248, 0.04) 0, transparent 50%),
    radial-gradient(ellipse 60% 80% at 70% 60%, rgba(34, 197, 94, 0.035) 0, transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 10%, rgba(99, 102, 241, 0.04) 0, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* Cursor glow - fixed behind UI, pointer-events: none */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -1;
  will-change: transform;
}


/* --------------------------------------
   3. TYPOGRAPHY SCALE
-------------------------------------- */
.pp-hero-title {
  font-family: var(--pp-font-family-sans);
  font-size: var(--pp-font-size-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0;
  max-width: 32rem;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pp-color-text-muted);
  max-width: 28rem;
  margin: 0;
}

.pp-section-title {
  font-size: var(--pp-font-size-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pp-color-text-strong);
  text-align: center;
  margin-bottom: 28px;
}

.pp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--pp-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.38), transparent 60%);
  font-size: var(--pp-font-size-xs);
  font-weight: 600;
  color: var(--pp-color-text-accent);
}

.pp-section-description {
  font-size: var(--pp-font-size-body);
  color: var(--pp-color-text-muted);
  max-width: 65ch;
  margin: 0 auto var(--pp-space-4);
  text-align: center;
}

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

.pp-text-soft {
  color: var(--pp-color-text-soft);
}

.pp-text-accent {
  color: var(--pp-color-text-accent);
}

/* Generic body text readability */
.pp-shell p {
  max-width: 65ch;
}


/* --------------------------------------
   9. LANDING SECTIONS (index.html)
-------------------------------------- */
.registration-cta {
  max-width: 760px;
  margin-inline: auto;
}

.cta-card {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px 48px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(56, 189, 248, 0.08);
}

.registration-icon,
.cta-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
  margin-bottom: 20px;
}

.cta-card .platform-title,
.cta-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.cta-card .platform-subtitle,
.cta-subtitle {
  max-width: 520px;
  margin: auto;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 20px;
}

.trust-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.trust-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.trust-chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

.cta-button {
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
  border: none;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.45);
}

.cta-secondary {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.cta-secondary a {
  color: #22c55e;
  font-weight: 500;
  text-decoration: none;
}

.cta-secondary a:hover {
  text-decoration: underline;
}

.cta-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 28px 0;
  width: 100%;
}

.cta-disclaimer {
  font-size: 0.75rem;
  opacity: 0.6;
  max-width: 480px;
  margin: auto;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .cta-card {
    padding: 44px 32px;
  }
}

@media (max-width: 640px) {
  .cta-card {
    padding: 32px 22px;
  }

  .trust-chips-row {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-chip {
    text-align: center;
  }

  .cta-button {
    width: 100%;
  }
}

.section.pp-section h2 {
  text-align: center;
  margin-bottom: var(--pp-space-5);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}

.step-flow-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.2),
    transparent
  );
  transform: translateY(-50%);
  z-index: 0;
}

.step.step-card.pp-card {
  padding: 36px;
  border-radius: 22px;
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(56, 189, 248, 0.12);
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: var(--pp-color-text-strong);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.step-body {
  text-align: center;
}

.step-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.25));
  margin-bottom: 8px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
}

.step-description {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-flow-line {
    display: none;
  }
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: var(--pp-space-4);
}

.pricing-card {
  text-align: left;
  padding: var(--pp-space-4) var(--pp-space-5);
  display: flex;
  flex-direction: column;
  position: relative; /* ensure ribbons anchor to each card */
  overflow: hidden;   /* prevent badges from overflowing rounded corners */
}

.pricing-card.info-only {
  cursor: default;
}

.pricing-tier {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-text-soft);
  margin-bottom: var(--pp-space-2);
}

.pricing-price {
  margin-bottom: 18px;
  color: var(--pp-color-text-strong);
}

.pricing-price .price {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pricing-price .price-period,
.pricing-price .period {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-left: 6px;
}

.pricing-features {
  margin-bottom: 18px;
}

.pricing-features .feature {
  position: relative;
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--pp-color-text-soft);
  padding-left: 1.4rem;
}

.pricing-features .feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  color: #4ade80;
}

.pricing-card .pp-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.pricing-note {
  margin-bottom: var(--pp-space-5);
  max-width: 700px;
  margin-inline: auto;
}

.pricing-note p {
  font-size: 0.9rem;
  color: var(--pp-color-text-soft);
}

.pricing-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

.pricing-card.info-only .pricing-cta[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pricing-flow-text {
  max-width: 640px;
  margin: 0 auto var(--pp-space-4);
  font-size: 0.95rem;
  color: var(--pp-color-text-soft);
  text-align: center;
}

.pricing-card--membership {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.membership-card {
  max-width: 900px;
  margin: 0 auto 28px;
}

.popular-plan {
  transform: scale(1.04);
  box-shadow:
    0 30px 80px rgba(34, 197, 94, 0.25);
  position: relative;
}

.badge-popular {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.info-text--note {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.12), transparent 60%);
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--pp-color-text-soft);
}

.button-primary {
  transition: all 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.45);
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 28px;
  color: var(--pp-color-text-soft);
}

@media (max-width: 768px) {
  .pricing-card--membership,
  .membership-card {
    grid-column: auto;
    margin-bottom: var(--pp-space-4);
  }
}

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .trust-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.qr-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qr-popup {
  max-width: 420px;
  width: 92%;
  text-align: center;
}

.qr-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--pp-space-3);
}

.qr-steps {
  margin-top: var(--pp-space-3);
}

.qr-step {
  font-size: 0.9rem;
  margin-block: 4px;
}

.bot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--pp-color-text-strong);
  font-size: 0.85rem;
  font-weight: 600;
  margin-block: var(--pp-space-2);
}

.pricing-card--muted {
  opacity: 0.4;
  position: relative;
}

.pricing-card--muted .feature,
.pricing-card--muted .info-text p {
  color: var(--pp-color-text-muted);
}

.pricing-card--primary {
  background:
    linear-gradient(#020617, #020617) padding-box,
    linear-gradient(120deg, #22c55e, #38bdf8) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 50px rgba(56, 189, 248, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.55);
  transform: scale(1.06);
  cursor: default;
}


/* Trust strip + final CTA */
.trust-strip {
  padding-top: 0;
  padding-bottom: 0;
}

.trust-strip-grid {
  gap: 28px;
}

.trust-item {
  position: relative;
  padding: 18px 26px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(var(--pp-blur-soft));
  -webkit-backdrop-filter: blur(var(--pp-blur-soft));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.trust-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pp-color-text-soft);
  opacity: 0.75;
  margin-bottom: 4px;
}

.trust-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--pp-color-text-strong);
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.trust-strip-header {
  margin-bottom: 1.5rem;
}

.trust-strip-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pp-color-text-soft);
}

.features-section {
  padding-block: 96px;
}

.feature-grid {
  gap: var(--pp-space-5);
}

.features-grid-shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: 20px;
}

.feature-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.feature-grid--5 .feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .feature-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .feature-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid-shell {
    padding-inline: 16px;
  }

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

.feature-card {
  min-height: 0;
  padding: var(--pp-space-6);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(56, 189, 248, 0.08);
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--pp-space-2);
}

.feature-card-text {
  font-size: 0.95rem;
  color: var(--pp-color-text-soft);
}

.final-cta-section {
  padding-top: 0;
  padding-bottom: 0;
}

.final-cta-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(#020617, #020617) padding-box,
              linear-gradient(120deg, #22c55e, #38bdf8) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.final-cta-title {
  font-size: var(--pp-font-size-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pp-color-text-strong);
  margin-bottom: var(--pp-space-3);
}

.final-cta-text {
  font-size: 0.98rem;
  color: var(--pp-color-text-soft);
  max-width: 36rem;
  margin: 0 auto var(--pp-space-5);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.pricing-card:hover:not(.pricing-card--muted) {
  transform: translateY(-8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card--primary:hover {
  transform: scale(1.06) translateY(-8px);
}

.pricing-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 8px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1;
}

.pricing-tier--muted {
  margin-top: var(--pp-space-4);
}

.hero-stats-section {
  padding-top: 0;
  padding-bottom: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1024px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(56, 189, 248, 0.12);
}

.platform-card-label {
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--pp-color-text-soft);
}

.platform-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pp-color-text-strong);
}

.platform-card-description {
  margin-top: 8px;
  font-size: var(--pp-font-size-small);
  color: var(--pp-color-text-soft);
}

.platform-signals-list {
  list-style: none;
  margin: 0;
  margin-top: 6px;
  padding: 0;
  font-size: var(--pp-font-size-small);
  color: var(--pp-color-text-soft);
}

.platform-signals-list li + li {
  margin-top: 4px;
}

.hero-stats-header {
  margin-bottom: 1.75rem;
}

.hero-stats-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--pp-color-text-soft);
}

.hero-stats-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 44rem;
  color: var(--pp-color-text-muted);
}

.video-placeholder {
  margin: 0 auto;
  margin-top: var(--pp-space-5);
  max-width: 840px;
  padding: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
  text-align: center;
  overflow: hidden;
}

.intro-video-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.intro-video-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-video-thumbnail {
  width: 100%;
  display: block;
}

.intro-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal-content {
  width: 80%;
  max-width: 900px;
  position: relative;
}

.video-modal video {
  width: 100%;
  border-radius: 12px;
}

.video-modal-close {
  position: absolute;
  top: -32px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.video-modal-close:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(56, 189, 248, 0.8);
}

.qr-bot-link-wrapper {
  margin-top: var(--pp-space-3);
}

.qr-bot-link {
  font-size: 0.95rem;
  padding: 0.6rem 1.8rem;
}


/* --------------------------------------
   4. SECTION LAYOUT
-------------------------------------- */
.pp-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

.pp-shell--wide {
  max-width: 1280px;
}

.pp-section {
  padding-block: 96px;
  position: relative;
}

.pp-section::before {
  content: '';
  position: absolute;
  inset: -260px 0 -260px 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 40%, rgba(56, 189, 248, 0.06), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05), transparent 75%);
  mix-blend-mode: screen;
}

.pp-section--tight {
  padding-block: 64px;
}

/* Subtle separators between major sections */
.pp-section:not(.pp-section--hero) {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.pp-section--hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: calc(64px + 0px); /* header height + minimal top spacing */
  padding-bottom: var(--pp-space-12);
  position: relative;
}

.pp-section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--pp-space-6);
}


/* --------------------------------------
   5. GLASS CARD COMPONENT
-------------------------------------- */
.pp-card {
  position: relative;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--pp-shadow-subtle);
  padding: var(--pp-space-5);
  color: var(--pp-color-text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.pp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

.pp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.pp-card--muted {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.8)
  );
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: none;
}

.pp-card--highlight {
  border-color: var(--pp-color-border-accent);
}

.pp-card--warning {
  border-color: rgba(250, 204, 21, 0.6);
  box-shadow: 0 0 32px rgba(250, 204, 21, 0.25);
}

.sec-disclaimer {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--pp-font-size-small);
  color: var(--pp-color-text-muted);
  background: var(--pp-color-accent-gold-soft);
  border-color: rgba(250, 204, 21, 0.7);
}

.sec-disclaimer p {
  margin: 0;
}

.pp-card--compact {
  padding: var(--pp-space-4);
}

.pp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

/* Scroll reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
  animation: revealFallback 0s 1.2s forwards;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-up.is-visible:nth-child(1) { transition-delay: 0.05s; }
.reveal-up.is-visible:nth-child(2) { transition-delay: 0.1s; }
.reveal-up.is-visible:nth-child(3) { transition-delay: 0.15s; }
.reveal-up.is-visible:nth-child(4) { transition-delay: 0.2s; }
.reveal-up.is-visible:nth-child(5) { transition-delay: 0.25s; }
.reveal-up.is-visible:nth-child(6) { transition-delay: 0.3s; }
.reveal-up.is-visible:nth-child(7) { transition-delay: 0.35s; }
.reveal-up.is-visible:nth-child(8) { transition-delay: 0.4s; }

.step.pp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-stat-card {
  padding: var(--pp-space-4);
  background: rgba(15, 23, 42, 0.9);
  cursor: default;
}

.hero-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.pp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pp-space-3);
  margin-bottom: var(--pp-space-4);
}

.pp-card-title {
  font-size: var(--pp-font-size-h3);
  font-weight: 600;
  color: var(--pp-color-text-strong);
}

.pp-card-subtitle {
  font-size: var(--pp-font-size-small);
  color: var(--pp-color-text-muted);
}


/* --------------------------------------
   6. BUTTON SYSTEM
-------------------------------------- */
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--pp-radius-pill);
  font-family: var(--pp-font-family-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.pp-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 2px;
}

.pp-btn-primary {
  background-image: var(--pp-color-btn-primary-bg);
  color: #0b1120;
  border-color: var(--pp-color-btn-primary-border);
  box-shadow:
    0 6px 20px rgba(34, 197, 94, 0.35),
    0 0 25px rgba(34, 197, 94, 0.25);
}

.pp-btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 10px 28px rgba(34, 197, 94, 0.5),
    0 0 36px rgba(34, 197, 94, 0.35);
}

.pp-btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--pp-shadow-subtle);
}

/* Hero-specific CTA styling to match reference heroes */
.hero .pp-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 999px;
}

.hero .pp-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #021012;
  border: none;
  box-shadow:
    0 10px 30px rgba(34, 197, 94, 0.45),
    0 0 25px rgba(34, 197, 94, 0.35);
  transition: all 0.25s ease;
}

.hero .pp-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 45px rgba(34, 197, 94, 0.55),
    0 0 45px rgba(34, 197, 94, 0.4);
}

.hero .pp-btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--pp-color-text-primary);
}

.hero .pp-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}

.pp-btn-secondary {
  background-color: var(--pp-color-btn-secondary-bg);
  color: var(--pp-color-text-primary);
  border-color: var(--pp-color-btn-secondary-border);
  padding: 0.65rem 1.4rem;
}

.pp-btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.9);
  box-shadow: var(--pp-shadow-subtle);
}

.pp-btn-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

.pp-btn-outline {
  background-color: transparent;
  color: var(--pp-color-accent-primary);
  border: 1px solid rgba(34, 197, 94, 0.55);
}

.pp-btn-outline:hover {
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.75);
  transform: translateY(-1px);
}

.pp-btn-outline:active {
  transform: translateY(0);
}

.pp-btn-outline:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.85);
  outline-offset: 2px;
}

.pp-btn-ghost {
  background-color: transparent;
  color: var(--pp-color-text-muted);
  border-color: transparent;
}

.pp-btn-ghost:hover {
  background-color: rgba(148, 163, 184, 0.08);
  color: var(--pp-color-text-primary);
}

.pp-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.pp-btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.02rem;
}

.pp-btn[disabled],
.pp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Map legacy CTA buttons into the new system when combined */
.cta-button.pp-btn-primary {
  background-image: var(--pp-color-btn-primary-bg);
  background-color: transparent;
  color: #0b1120;
  border-color: var(--pp-color-btn-primary-border);
  box-shadow: var(--pp-shadow-glow-primary);
}

.cta-button.pp-btn-secondary,
.cta-button.secondary.pp-btn-secondary {
  background-image: none;
  background-color: var(--pp-color-btn-secondary-bg);
  color: var(--pp-color-text-primary);
  border-color: var(--pp-color-btn-secondary-border);
  box-shadow: none;
}


/* --------------------------------------
   7. GRID SYSTEM
-------------------------------------- */
.pp-grid {
  display: grid;
  gap: var(--pp-space-5);
}

.pp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pp-grid--stretch {
  align-items: stretch;
}

.pp-grid--center {
  align-items: center;
}

.pp-grid-gap-tight {
  gap: var(--pp-space-3);
}

.pp-grid-gap-wide {
  gap: var(--pp-space-8);
}


/* --------------------------------------
   8. RESPONSIVE RULES (down to 375px)
-------------------------------------- */
@media (max-width: 1024px) {
  .pp-section--hero {
    padding-top: calc(64px + 0px);
    padding-bottom: var(--pp-space-10);
  }
}

@media (max-width: 768px) {
  .pp-shell {
    padding-inline: 16px;
  }

  .pp-section {
    padding-block: 70px;
  }

  .pp-section--hero {
    padding-top: calc(64px + 0px);
    padding-bottom: var(--pp-space-8);
    min-height: auto;
  }

  .pp-hero-title {
    text-align: left;
  }

  .pp-hero-subtitle {
    text-align: left;
    margin-inline: 0;
  }

  .pp-section-title,
  .pp-section-description {
    text-align: left;
  }

  .pp-grid--2,
  .pp-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-card {
    padding: var(--pp-space-4);
  }
}

/* Very small devices (~375px) */
@media (max-width: 400px) {
  .pp-shell {
    padding-inline: 14px;
  }

  .pp-hero-title {
    font-size: clamp(2.1rem, 7vw, 2.4rem);
  }

  .pp-section {
    padding-block: var(--pp-space-6);
  }

  .pp-card {
    border-radius: var(--pp-radius-md);
  }

  .pp-grid {
    gap: var(--pp-space-4);
  }
}

/* --------------------------------------
   FOOTER (Landing)
--------------------------------------- */

.pp-footer {
  margin-top: 120px;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* .pp-footer-logo color → logo.css */
.pp-footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}


.pp-footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--pp-color-text-soft);
  max-width: 320px;
}

.pp-footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--pp-color-text-muted);
}

.pp-footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--pp-color-text-soft);
  transition: color 0.2s ease, transform 0.15s ease;
}

.pp-footer-col a:hover {
  color: var(--pp-color-text-primary);
  transform: translateX(2px);
}

.pp-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: var(--pp-color-text-soft);
}

/* ============================================================
   IMPORTANT INFORMATION (index footer injection)
   Injected by: /static/js/important_information.js
   Container: .footer-disclaimer
   ============================================================ */

.footer-disclaimer {
  margin-top: var(--pp-space-10);
}

.pp-info-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: var(--pp-radius-xl);
  border: 1px solid color-mix(in srgb, var(--pp-color-border-subtle) 85%, transparent);
  background: linear-gradient(135deg,
    rgba(15, 23, 42, 0.72),
    rgba(5, 8, 22, 0.78)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.pp-info-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pp-space-4);
  padding-bottom: var(--pp-space-4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.pp-info-header h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pp-color-text-strong);
}

.pp-info-header p {
  margin: 0;
  color: var(--pp-color-text-muted);
  font-size: 14px;
}

.pp-info-warning {
  margin-top: var(--pp-space-5);
  padding: 14px 16px;
  border-radius: var(--pp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-danger) 45%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--pp-color-accent-danger) 14%, rgba(15, 23, 42, 0.75)),
    rgba(15, 23, 42, 0.72)
  );
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pp-info-warning .warn-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--pp-color-accent-danger) 18%, rgba(15, 23, 42, 0.85));
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-danger) 35%, transparent);
}

.pp-info-warning p {
  margin: 0;
  color: var(--pp-color-text-primary);
  line-height: 1.55;
  font-size: 14px;
}

.pp-info-grid {
  margin-top: var(--pp-space-6);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pp-space-4);
}

.pp-info-card {
  border-radius: var(--pp-radius-lg);
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  min-height: 160px;
}

.pp-info-card h4 {
  margin: 10px 0 8px;
  color: var(--pp-color-text-strong);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.pp-info-card p {
  margin: 0;
  color: var(--pp-color-text-muted);
  line-height: 1.55;
  font-size: 13.5px;
}

.pp-info-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pp-info-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--pp-color-text-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.pp-info-card li strong {
  color: var(--pp-color-text-primary);
}

.pp-info-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.li-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--pp-color-text-accent);
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

/* Card variants */
.pp-info-card.green {
  border-color: color-mix(in srgb, var(--pp-color-accent-primary) 35%, rgba(148, 163, 184, 0.18));
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(15, 23, 42, 0.55));
}
.pp-info-card.orange {
  border-color: rgba(255, 159, 67, 0.42);
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.10), rgba(15, 23, 42, 0.55));
}
.pp-info-card.gold {
  border-color: color-mix(in srgb, var(--pp-color-accent-gold) 45%, rgba(148, 163, 184, 0.18));
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.10), rgba(15, 23, 42, 0.55));
}
.pp-info-card.purple {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(15, 23, 42, 0.55));
}

.pp-info-footnote {
  margin-top: var(--pp-space-6);
  padding-top: var(--pp-space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.pp-info-footnote p {
  margin: 0;
  color: var(--pp-color-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.pp-info-footnote a {
  color: var(--pp-color-text-accent);
  text-decoration: none;
  font-weight: 650;
}

.pp-info-footnote a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .pp-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pp-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .pp-info-grid {
    grid-template-columns: 1fr;
  }
  .pp-info-warning {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------
   AUTH PAGE (login.html)
-------------------------------------- */
body.pp-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure predictable sizing inside auth page */
body.pp-auth-page,
body.pp-auth-page * {
  box-sizing: border-box;
}

/* Soften outer background for auth page while keeping global glow grid */
body.pp-auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, rgba(15, 23, 42, 0.78), transparent 68%),
    radial-gradient(circle at 80% 55%, rgba(15, 23, 42, 0.76), transparent 70%),
    linear-gradient(135deg, #020617, #020617 55%, #020617 100%);
}

/* Soft bottom fade so the page never feels "cut off" */
body.pp-auth-page::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0),
    rgba(2, 6, 23, 0.55) 40%,
    rgba(2, 6, 23, 0.92) 100%
  );
}

/* Auth page wordmark → logo.css */

body.pp-auth-page .auth-shell {
  width: 100%;
  margin: 0;
  padding-inline: 0;
  padding-top: 32px;
  padding-bottom: 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.pp-auth-page .auth-shell > .pp-shell {
  width: 100%;
}

body.pp-auth-page .auth-shell::before {
  content: '';
  position: absolute;
  inset: -50px 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(34, 197, 94, 0.2), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(129, 140, 248, 0.18), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

body.pp-auth-page .auth-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr);
  gap: var(--pp-space-10);
  align-items: stretch;
  position: relative;
}

body.pp-auth-page .auth-card {
  width: 100%;
  max-width: 560px;
  padding: 32px 32px 28px;
  border-radius: var(--pp-radius-xl);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.9),
    0 0 56px rgba(15, 118, 110, 0.35);
}

body.pp-auth-page .auth-copy {
  align-self: center;
  min-width: 0;
}

body.pp-auth-page .auth-card {
  min-width: 0;
}

body.pp-auth-page .auth-copy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 60%);
  font-size: var(--pp-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pp-color-text-accent);
  margin-bottom: 12px;
}

body.pp-auth-page .auth-copy-title {
  font-size: calc(var(--pp-font-size-h1) * 1.05);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pp-color-text-strong);
  margin-bottom: 12px;
}

body.pp-auth-page .auth-copy-subtitle {
  font-size: 0.98rem;
  color: rgba(209, 213, 219, 0.9);
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 20px;
}

body.pp-auth-page .auth-copy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  color: rgba(209, 213, 219, 0.92);
}

body.pp-auth-page .auth-copy-list li {
  position: relative;
  padding-left: 22px;
}

body.pp-auth-page .auth-copy-list li::before {
  content: '▹';
  position: absolute;
  left: 8px;
  top: 0;
  color: #22c55e;
}

body.pp-auth-page .auth-trust-row {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.pp-auth-page .auth-trust-chip {
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.85);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
}

body.pp-auth-page .auth-trust-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pp-color-text-soft);
  margin-bottom: 2px;
}

body.pp-auth-page .auth-trust-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pp-color-text-strong);
}

body.pp-auth-page .back-link {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1000;
  font-size: 0.82rem;
  padding: 0.45rem 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pp-auth-page .tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

body.pp-auth-page .tab {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.7);
  color: var(--pp-color-text-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.pp-auth-page .tab:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

body.pp-auth-page .tab.active {
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.22), transparent 65%),
              rgba(15, 23, 42, 0.95);
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow:
    0 0 24px rgba(34, 197, 94, 0.32),
    0 10px 26px rgba(15, 23, 42, 0.9);
  color: #bbf7d0;
}

body.pp-auth-page .tab-content { display: none; }
body.pp-auth-page .tab-content.active { display: block; }

body.pp-auth-page .login-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 14px 0 6px;
  text-align: center;
  color: var(--pp-color-text-strong);
}

body.pp-auth-page .login-subtitle {
  color: var(--pp-color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 24px;
}

body.pp-auth-page .form-group {
  margin-bottom: 16px;
  text-align: left;
}

body.pp-auth-page .form-label {
  display: block;
  color: rgba(156, 163, 175, 0.95);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pp-auth-page .form-label-optional {
  color: var(--pp-color-text-soft);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

body.pp-auth-page .form-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 70%),
    rgba(15, 23, 42, 0.78);
  color: var(--pp-color-text-primary);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.pp-auth-page .form-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

body.pp-auth-page .form-input:focus {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  background: rgba(15, 23, 42, 0.82);
}

body.pp-auth-page .form-input[readonly] {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-weight: 600;
}

body.pp-auth-page .license-input,
body.pp-auth-page .referral-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  letter-spacing: 0.08em;
}

body.pp-auth-page .referral-input {
  text-transform: uppercase;
}

body.pp-auth-page .login-btn {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

body.pp-auth-page .register-btn {
  background-image: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(34, 197, 94, 0.8);
  color: #021012;
}

body.pp-auth-page .error-message,
body.pp-auth-page .success-message {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: none;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.65);
}

body.pp-auth-page .error-message {
  border-color: rgba(249, 115, 115, 0.65);
  color: #fca5a5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

body.pp-auth-page .success-message {
  border-color: rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  white-space: pre-line;
}

body.pp-auth-page .admin-mode-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

body.pp-auth-page .admin-mode-box:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.75);
}

body.pp-auth-page .admin-mode-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pp-color-accent-gold);
  margin: 0;
  flex-shrink: 0;
  pointer-events: none;
}

body.pp-auth-page .admin-mode-box label {
  color: rgba(249, 250, 251, 0.9);
  font-weight: 600;
  flex: 1;
  cursor: pointer;
  pointer-events: none;
}

body.pp-auth-page .loading {
  display: none;
  margin-top: 14px;
  text-align: center;
  color: var(--pp-color-text-muted);
  font-size: 0.9rem;
}

body.pp-auth-page .spinner {
  border: 2px solid rgba(56, 189, 248, 0.22);
  border-top: 2px solid rgba(56, 189, 248, 0.9);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
  vertical-align: -4px;
}

body.pp-auth-page .info-box {
  margin-top: 16px;
  border-radius: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.7);
  color: var(--pp-color-text-soft);
  line-height: 1.7;
  font-size: 0.9rem;
}

body.pp-auth-page .info-box strong {
  color: var(--pp-color-text-primary);
  font-weight: 800;
}

body.pp-auth-page .referral-info-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: rgba(191, 219, 254, 0.95);
  line-height: 1.55;
}


/* Auth page responsive refinements */
@media (max-width: 1200px) {
  body.pp-auth-page .auth-shell {
    padding-top: 104px;
    padding-bottom: 72px;
  }

  body.pp-auth-page .auth-layout {
    gap: var(--pp-space-8);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.0fr);
  }

  body.pp-auth-page .auth-card {
    max-width: 540px;
  }

  body.pp-auth-page .auth-copy-title {
    font-size: var(--pp-font-size-h1);
  }
}

@media (max-width: 900px) {
  body.pp-auth-page .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--pp-space-10);
  }

  body.pp-auth-page .auth-copy {
    text-align: left;
  }

  body.pp-auth-page .auth-copy-subtitle {
    max-width: none;
  }

  body.pp-auth-page .auth-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pp-auth-page .auth-card {
    margin: 0 auto;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  body.pp-auth-page .auth-shell {
    padding-top: 88px;
    padding-bottom: 60px;
  }

  body.pp-auth-page .auth-card {
    padding: 20px 18px 22px;
  }

  body.pp-auth-page .auth-copy-title {
    font-size: 1.6rem;
  }

  body.pp-auth-page .auth-copy-subtitle {
    font-size: 0.94rem;
  }

  body.pp-auth-page .tabs {
    gap: 6px;
  }

  body.pp-auth-page .tab {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  body.pp-auth-page .auth-shell > .pp-shell {
    padding-inline: 20px;
  }

  body.pp-auth-page .auth-trust-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.pp-auth-page .auth-card {
    border-radius: var(--pp-radius-lg);
    max-width: 100%;
  }

  body.pp-auth-page .auth-trust-chip {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  body.pp-auth-page .login-title {
    font-size: 1.15rem;
  }

  body.pp-auth-page .login-subtitle {
    font-size: 0.9rem;
  }

  body.pp-auth-page .form-input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.pp-auth-page .auth-shell {
    padding-top: 96px;
    padding-bottom: 72px;
  }

  body.pp-auth-page .auth-card {
    padding: 22px;
  }

  body.pp-auth-page .back-link {
    position: absolute;
    top: 12px;
    right: 18px;
  }
}

@media (max-width: 900px) {
  body.pp-auth-page .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--pp-space-10);
  }

  body.pp-auth-page .auth-copy {
    text-align: left;
  }

  body.pp-auth-page .auth-copy-subtitle {
    max-width: none;
  }

  body.pp-auth-page .auth-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.pp-auth-page .auth-trust-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .pp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .pp-footer-grid {
    grid-template-columns: 1fr;
  }

  .pp-footer {
    text-align: center;
  }

  .pp-footer-description {
    margin: auto;
  }
}


/* --------------------------------------
   ProfitPal Analysis — Premium SaaS UI overrides
   (accordion polish, hierarchy, reduced noise)
-------------------------------------- */

/* 1) Collapsible dropdown (accordion) — smooth max-height + opacity */
body.pp-analysis-page .section-content,
.section-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.25s ease;
}

body.pp-analysis-page .section-content.expanded,
.section-content.expanded {
  max-height: 2000px;
  opacity: 1;
}

/* Prevent collapsed padding “ghost space” while keeping expanded spacing */
body.pp-analysis-page .section-content,
.section-content {
  padding: 0 !important;
}

body.pp-analysis-page .section-content .section-inner,
.section-content .section-inner {
  padding: var(--pp-space-4) var(--pp-space-6) var(--pp-space-6);
}

/* 2) Smooth content slide */
body.pp-analysis-page .section-inner,
.section-inner {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

body.pp-analysis-page .section-content.expanded .section-inner,
.section-content.expanded .section-inner {
  transform: translateY(0);
}

/* 3) Arrow rotation (visual feedback) */
body.pp-analysis-page .section-toggle,
.section-toggle {
  display: inline-block;
  transition: transform 0.25s ease;
  transform-origin: 50% 50%;
}

body.pp-analysis-page .section-header.active .section-toggle,
.section-header.active .section-toggle {
  transform: rotate(180deg);
}

/* 3) Dropdown header feels clickable */
body.pp-analysis-page .section-header,
.section-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.2s ease;
}

body.pp-analysis-page .section-header:hover,
.section-header:hover {
  background: rgba(148, 163, 184, 0.08);
}

/* 5) Open state highlight (active section) */
body.pp-analysis-page .collapsible-section.pp-card,
.collapsible-section.pp-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.pp-analysis-page .section-header.active,
.section-header.active {
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
}

/* Use :has for modern browsers */
body.pp-analysis-page .collapsible-section.pp-card:has(.section-header.active),
.collapsible-section.pp-card:has(.section-header.active) {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}

/* 5) Reduce visual noise (clean SaaS look) */
.pp-card {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pp-card,
.valuation-card,
.pp-chart-card {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* 6) Improve text hierarchy */
.summary-value,
.valuation-price {
  font-size: 1.4rem;
  font-weight: 900;
}

.summary-label,
.valuation-method {
  opacity: 0.7;
}

body.pp-analysis-page .section-title,
.section-title {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
}

/* 7) Improve spacing between sections */
.collapsible-section {
  margin-bottom: 20px;
}

/* 8) Reduce background distraction */
.floating-shape {
  opacity: 0.3;
  filter: blur(20px);
}

/* 9) Subtle micro-interactions */
.pp-card {
  transition: transform 0.25s ease;
}

.pp-card:hover {
  transform: translateY(-4px);
}

.pp-btn-primary:hover {
  transform: scale(1.03);
}

/* 10) Improve chart card spacing */
.pp-chart-card {
  margin-bottom: 20px;
}

/* WACC breakdown: add breathing room under titles */
body.pp-analysis-page #wacc-content .metric-title {
  margin-bottom: 14px;
}

/* Typography consistency across analysis page (ensure Inter everywhere) */
body.pp-analysis-page,
body.pp-analysis-page button,
body.pp-analysis-page input,
body.pp-analysis-page select,
body.pp-analysis-page textarea {
  font-family: var(--pp-font-family-sans);
}

body.pp-analysis-page .metric-title,
body.pp-analysis-page .section-title,
body.pp-analysis-page .valuation-method,
body.pp-analysis-page .valuation-price,
body.pp-analysis-page .summary-label,
body.pp-analysis-page .summary-value {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Multi-Method Breakdown: add top spacing */
body.pp-analysis-page .mm-section-header {
  margin-top: var(--pp-space-5);
}

/* Auth page logo size → logo.css */
body.pp-auth-page .pp-public-topbar {
  padding-top: 18px;
  padding-bottom: 10px;
}

/* Auth header uses shared header-nav styles */
body.pp-auth-page .header-nav {
  position: sticky;
}

body.pp-auth-page .header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


/* Floating AI assistant mount (future chat UI) */
#ai-assistant {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: calc(100vw - 40px);
  pointer-events: none; /* empty mount should not block clicks */
}

#ai-assistant > * {
  pointer-events: auto;
}

/* ============================================================
   TRADING JOURNAL — component styles
   Required by pp-trading-journal.js and trading-journal.html
   (Scoped to dashboard pages to avoid global overrides)
   ============================================================ */

/* ── P&L colors (used inline by JS on stat values and table cells) ── */
body.pp-dashboard-page .profit { color: var(--pp-color-accent-primary); }
body.pp-dashboard-page .loss   { color: var(--pp-color-accent-danger); }

/* ── Trade action colors ── */
body.pp-dashboard-page .action-buy  { color: var(--pp-color-accent-danger); font-weight: 700; }
body.pp-dashboard-page .action-sell { color: var(--pp-color-accent-primary); font-weight: 700; }

/* ── Locked feature button (🔒 Analyze) ── */
body.pp-dashboard-page .btn-locked {
  background: color-mix(in srgb, var(--pp-color-accent-danger) 12%, transparent);
  color: var(--pp-color-accent-danger);
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-danger) 30%, transparent);
  padding: 6px 12px;
  border-radius: var(--pp-radius-xs);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}
body.pp-dashboard-page .btn-locked:hover {
  background: color-mix(in srgb, var(--pp-color-accent-danger) 18%, transparent);
  transform: scale(1.05);
}

/* ── Trade tables ── */
body.pp-dashboard-page .table-section {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.4), rgba(15, 35, 65, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-primary) 28%, rgba(148, 163, 184, 0.25));
  margin-bottom: 30px;
}

/* Override global `.section-title` only inside journal tables */
body.pp-dashboard-page .table-section > .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--pp-color-accent-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: normal;
  text-transform: none;
}

body.pp-dashboard-page .table-container { overflow-x: auto; }
body.pp-dashboard-page .table-container table { width: 100%; border-collapse: collapse; }

body.pp-dashboard-page .table-container th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

body.pp-dashboard-page .table-container td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  color: var(--pp-color-text-primary);
}

body.pp-dashboard-page .table-container tr:hover { background: rgba(34, 197, 94, 0.06); }

/* ── Instrument type badges ── */
body.pp-dashboard-page .type-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

body.pp-dashboard-page .type-option-put {
  background: rgba(155, 89, 182, 0.2);
  color: #c084fc;
  border: 1px solid rgba(155, 89, 182, 0.3);
}

body.pp-dashboard-page .type-option-call {
  background: rgba(230, 126, 34, 0.2);
  color: #fb923c;
  border: 1px solid rgba(230, 126, 34, 0.3);
}

/* ── Main Summary — company cards ── */
body.pp-dashboard-page .company-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.4), rgba(15, 35, 65, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-primary) 28%, rgba(148, 163, 184, 0.25));
  margin-bottom: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.pp-dashboard-page .company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.15);
}

body.pp-dashboard-page .company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  cursor: pointer;
  gap: 16px;
}

body.pp-dashboard-page .company-info h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--pp-color-accent-primary);
  margin-bottom: 5px;
}

body.pp-dashboard-page .company-info .company-meta {
  font-size: 14px;
  color: var(--pp-color-text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.pp-dashboard-page .company-period {
  font-size: 13px;
  color: var(--pp-color-text-accent);
  margin-top: 5px;
}

body.pp-dashboard-page .expand-icon {
  font-size: 20px;
  color: var(--pp-color-accent-primary);
  transition: transform 0.22s ease;
  flex: 0 0 auto;
}

body.pp-dashboard-page .company-card.expanded .expand-icon { transform: rotate(180deg); }

body.pp-dashboard-page .currency-breakdown {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.pp-dashboard-page .company-card.expanded .currency-breakdown { display: block; }

body.pp-dashboard-page .currency-block {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.pp-dashboard-page .currency-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--pp-color-accent-gold);
}

body.pp-dashboard-page .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

body.pp-dashboard-page .metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}

body.pp-dashboard-page .metric-label {
  font-size: 12px;
  color: var(--pp-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.pp-dashboard-page .metric-value {
  font-size: 16px;
  font-weight: 700;
}

/* ── Position status badges (OPEN / ALL CLOSED) ── */
body.pp-dashboard-page .status-badge-open {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--pp-color-accent-gold-soft);
  color: var(--pp-color-accent-gold);
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-gold) 40%, transparent);
}

body.pp-dashboard-page .status-badge-closed {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--pp-color-accent-primary-soft);
  color: var(--pp-color-accent-primary);
  border: 1px solid color-mix(in srgb, var(--pp-color-accent-primary) 40%, transparent);
}

/* ── Milestone modal ── */
body.pp-dashboard-page .milestone-modal .modal-content {
  text-align: center;
  max-width: 500px;
}

body.pp-dashboard-page .milestone-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: msBounce 1s infinite;
}

@keyframes msBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

body.pp-dashboard-page .milestone-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--pp-color-accent-gold), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.pp-dashboard-page .milestone-message {
  font-size: 16px;
  color: rgba(229, 231, 235, 0.85);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ── Feature comparison list (inside milestone modal) ── */
body.pp-dashboard-page .feature-comparison {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: left;
}

body.pp-dashboard-page .feature-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.pp-dashboard-page .feature-row:last-child { border-bottom: none; }
body.pp-dashboard-page .feature-name   { color: rgba(229, 231, 235, 0.82); font-size: 14px; }
body.pp-dashboard-page .feature-status { font-weight: 700; }
body.pp-dashboard-page .feature-locked   { color: var(--pp-color-accent-danger); }
body.pp-dashboard-page .feature-unlocked { color: var(--pp-color-accent-primary); }

/* ── pp-card--subtle (modal card background) ── */
body.pp-dashboard-page .pp-card--subtle {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.95), rgba(15, 35, 65, 0.95));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 2px solid color-mix(in srgb, var(--pp-color-accent-primary) 30%, transparent);
}

/* ── Optional: Social proof + countdown row (wired in JS) ── */
body.pp-dashboard-page .journal-social-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--pp-color-accent-primary);
}
body.pp-dashboard-page .early-bird-countdown { color: var(--pp-color-accent-gold); }

/* ── Generic modal support (if a modal uses `.modal.active`) ── */
body.pp-dashboard-page .modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 39, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}
body.pp-dashboard-page .modal.active { display: flex; }

/* ── WACC verdict ── */
.wacc-formula-row {
  font-size: 14px;
  color: var(--pp-color-text-muted);
  margin-top: 10px;
}

/* ── Intrinsic verdict colors ── */
#intrinsicVerdictBox {
  margin-top: 16px;
  text-align: center;
}
#intrinsicVerdictBox.is-overvalued {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}
#intrinsicVerdictBox.is-overvalued .verdict-text {
  color: #f87171 !important;
}
#intrinsicVerdictBox.is-undervalued {
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}
#intrinsicVerdictBox.is-undervalued .verdict-text {
  color: #86efac !important;
}
#intrinsicVerdictBox.is-fair {
  border-color: rgba(250, 204, 21, 0.5) !important;
  background: rgba(250, 204, 21, 0.08) !important;
}
#intrinsicVerdictBox.is-fair .verdict-text {
  color: #fcd34d !important;
}

/* ============================================================
   Section  — AI DAY SUMMARY (dashboard.html)
   to the end of the file redesign_v2.css
   ============================================================ */

/* ── Обёртка секции ─────────────────────────────────────────── */
#ai-day-summary-section {
  background: linear-gradient(135deg, rgba(30,58,95,0.4), rgba(15,35,65,0.6));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(34,139,34,0.3);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

/* ── Шапка ──────────────────────────────────────────────────── */
.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.summary-date {
  font-size: 13px;
  color: #87ceeb;
  margin-left: auto;
}

/* ── Бейджи ─────────────────────────────────────────────────── */
.summary-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.summary-badge--fresh  { background: rgba(50,205,50,0.2);   color: #32cd32; }
.summary-badge--stale  { background: rgba(255,215,0,0.2);   color: #ffd700; }
.summary-badge--signal { background: rgba(255,215,0,0.25);  color: #ffd700; }
.summary-badge--diamond{ background: rgba(100,149,237,0.2); color: #6495ed; }

/* ── Нарратив ───────────────────────────────────────────────── */
.summary-narrative {
  font-size: 14px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* ── Gainers / Losers ───────────────────────────────────────── */
.summary-movers {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.summary-movers__col { flex: 1; }

.summary-movers__label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-movers__label--up   { color: #32cd32; }
.summary-movers__label--down { color: #e74c3c; }

.summary-mover {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-mover__ticker {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  min-width: 52px;
}

.summary-mover__chg {
  font-size: 13px;
  font-weight: 600;
}

.summary-mover--up   .summary-mover__chg { color: #32cd32; }
.summary-mover--down .summary-mover__chg { color: #e74c3c; }
.summary-mover-empty { font-size: 13px; color: #666; }

/* ── Sectors ────────────────────────────────────────────────── */
.summary-sectors { margin-top: 4px; }

.summary-sectors__label {
  font-size: 12px;
  font-weight: 700;
  color: #87ceeb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.summary-sectors__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-sector {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.summary-sector__name { font-weight: 600; }
.summary-sector__chg  { font-weight: 600; }

.sector--up   { background: rgba(50,205,50,0.12);  color: #32cd32; }
.sector--down { background: rgba(231,76,60,0.12);  color: #e74c3c; }
.sector--flat { background: rgba(255,255,255,0.05); color: #87ceeb; }

/* ── Блюр (триал) ───────────────────────────────────────────── */
.summary-blur-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.summary-body--blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.summary-upgrade-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,14,39,0.55);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.summary-upgrade-icon  { font-size: 28px; }

.summary-upgrade-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.summary-upgrade-text {
  font-size: 13px;
  color: #87ceeb;
  max-width: 280px;
  line-height: 1.5;
}

.summary-upgrade-btn {
  margin-top: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #32cd32, #228b22);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.summary-upgrade-btn:hover {
  transform: translateY(-2px);
}

/* ── Пустые состояния ───────────────────────────────────────── */
.summary-empty {
  font-size: 14px;
  color: #666;
  padding: 20px 0;
}

/* ── Мобайл ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .summary-movers { flex-direction: column; }
}
/* ============================================================
   PROFITPAL SUPPLEMENT — migrated from profitpal_reunion_styles.css
   Contains all components used by stock-analysis.html / pp-analysis.js
   that are absent from redesign_v2.css.

   Structure:
     S0.  Legacy variable bridge  (--pp-bg-*, --pp-accent-*, --pp-text-*, …)
     S1.  Layout helpers          (.container, .quick-summary, .valuation-grid)
     S2.  Header extras           (.user-avatar)
     S3.  Ticker input            (.ticker-input-section, .ticker-input-group)
     S4.  Company header          (.company-header, .company-name, .company-meta)
     S5.  Summary cards           (.summary-card, .summary-change, .summary-status, .summary-sub)
     S6.  Valuation extras        (.valuation-detail, .valuation-grid, .verdict-box)
     S7.  Intrinsic cards         (.intrinsic-grid, .intrinsic-card)
     S8.  Score / Diamond         (.score-hero, .score-display, .scoring-grid, .score-category-*)
     S9.  Diamond AI summary      (.diamond-ai-summary, .diamond-ai-label, .score-category-detail)
     S10. Collapsible extras      (.section-icon)
     S11. Mini-tabs               (.mini-tabs, .mini-tab)
     S12. Metric content          (.metric-content, .metric-title, .chart-container, .chart-placeholder)
     S13. Year data table         (.year-data, .year-row, .year-label, .year-value, .year-change)
     S14. Data source             (.data-source)
     S15. Chart shell             (.pp-chart-head, .pp-chart-title, .pp-chart-subtitle,
                                   .pp-chart-stage, .pp-chart-canvas)
     S16. Multi-method table      (.mm-section, .mm-table, .mm-row, .mm-cell, … )
     S17. Ownership / PE Risk     (.pe-risk-banner, .ownership-table, .dir-badge, …)
     S18. LBO explainer           (.lbo-explainer-wrap, .lbo-step, …)
     S19. Insider activity        (.insider-type-legend, .insider-type-badge, .insider-sec-link, …)
     S20. Institutional holdings  (.inst-badge-*, .inst-chg-*, .inst-conviction, .jcode-badge, …)
     S21. Hourglass loader        (.pp-hourglass, .pp-sand-timer, …)
     S22. Utilities               (.hidden, .positive, .negative, .spinner)
     S23. Keyframes               (fadeIn, fadeInUp, spin, pulse, jcode-pulse,
                                   pp-chart-shimmer, pp-hg-rock)
   ============================================================ */


/* ── S0. LEGACY VARIABLE BRIDGE ───────────────────────────── */
/* Maps old --pp-* names used by reunion components → redesign vars.
   No values are duplicated; everything cascades from redesign :root.   */
:root {
  --pp-bg-base:            var(--pp-color-bg-base);
  --pp-bg-surface:         var(--pp-color-surface);
  --pp-bg-surface-hover:   var(--pp-color-surface-soft);
  --pp-bg-surface-active:  var(--pp-color-surface-strong);

  --pp-border-dim:         var(--pp-color-border-subtle);
  --pp-border-light:       var(--pp-color-border-strong);
  --pp-border-active:      var(--pp-color-border-accent);

  --pp-text-title:         var(--pp-color-text-strong);
  --pp-text-body:          var(--pp-color-text-primary);
  --pp-text-muted:         var(--pp-color-text-muted);
  --pp-text-dim:           var(--pp-color-text-soft);
  --pp-text-primary:       var(--pp-color-text-primary);
  --pp-text-secondary:     var(--pp-color-text-muted);

  --pp-accent-cyan:        var(--pp-color-accent-secondary);
  --pp-accent-blue:        #3b82f6;
  --pp-accent-gold:        var(--pp-color-accent-gold);
  --pp-accent-green:       var(--pp-color-accent-primary);
  --pp-accent-red:         var(--pp-color-accent-danger);

  --pp-shadow-glow:        var(--pp-shadow-glow-primary);

  /* profitpal-* legacy vars used in a few older components */
  --profitpal-primary:     var(--pp-color-accent-primary);
  --profitpal-danger:      var(--pp-color-accent-danger);
  --profitpal-gradient-card: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.05) 100%);
}


/* ── S1. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.quick-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.valuation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}


/* ── S2. HEADER — user avatar ──────────────────────────────── */
.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pp-accent-green), #228b22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
  transition: all 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(50, 205, 50, 0.5);
}


/* ── S3. TICKER INPUT ──────────────────────────────────────── */
.ticker-input-section {
  max-width: 600px;
  margin: 0 auto 50px;
}

.ticker-input-group {
  display: flex;
  gap: 15px;
  background: var(--pp-bg-surface);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--pp-border-dim);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticker-input-group:focus-within {
  border-color: var(--pp-border-active);
  box-shadow: var(--pp-shadow-glow);
}


/* ── S4. COMPANY HEADER ────────────────────────────────────── */
body[data-pp-page="private"] .company-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(15, 25, 45, 0.9));
  border-radius: 20px;
  border: 2px solid var(--pp-border-dim);
}

body[data-pp-page="private"] .company-name {
  font-size: 36px;
  font-weight: 900;
  color: var(--pp-text-title);
  margin-bottom: 10px;
}

body[data-pp-page="private"] .company-meta {
  color: var(--pp-text-muted);
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 768px) {
  body[data-pp-page="private"] .company-name { font-size: 24px; }
}


/* ── S5. SUMMARY CARDS ─────────────────────────────────────── */
.summary-card {
  background: var(--pp-bg-surface);
  border: 1px solid var(--pp-border-dim);
  border-radius: var(--pp-radius-lg);
  padding: 25px;
  transition: all 0.3s ease;
}

.summary-card:hover {
  background: var(--pp-bg-surface-hover);
  border-color: var(--pp-border-light);
  transform: translateY(-3px);
}

.summary-card.highlight {
  border-top-color: var(--pp-accent-gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--pp-bg-surface) 100%);
}

.summary-change {
  font-size: 14px;
  font-weight: 600;
}

.summary-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pp-radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
}

.summary-status.safe {
  background: rgba(16, 185, 129, 0.1);
  color: var(--pp-accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.summary-status.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--pp-accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.summary-status.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--pp-accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.summary-sub {
  font-size: 11px;
  color: var(--pp-text-dim);
  margin-top: 4px;
}

.positive { color: var(--pp-accent-green); }
.negative { color: var(--pp-accent-red); }


/* ── S6. VALUATION EXTRAS ──────────────────────────────────── */
.valuation-detail {
  font-size: 11px;
  color: var(--pp-text-dim);
}

/* Verdict box */
.verdict-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--pp-accent-green);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-top: 30px;
}

.verdict-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--pp-accent-green);
}

.verdict-box.is-undervalued {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.05));
  border-color: var(--pp-accent-green);
}
.verdict-box.is-undervalued .verdict-text { color: var(--pp-accent-green); }

.verdict-box.is-fair {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
  border-color: var(--pp-accent-blue);
}
.verdict-box.is-fair .verdict-text { color: var(--pp-accent-blue); }

.verdict-box.is-overvalued,
.verdict-box.negative {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(239, 68, 68, 0.05));
  border-color: var(--pp-accent-red);
}
.verdict-box.is-overvalued .verdict-text,
.verdict-box.negative .verdict-text { color: var(--pp-accent-red); }


/* ── S7. INTRINSIC CARDS ───────────────────────────────────── */
.intrinsic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.intrinsic-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.intrinsic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.intrinsic-card .valuation-method {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.intrinsic-card .valuation-price {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intrinsic-card .valuation-detail {
  font-size: 12px;
  opacity: 0.75;
}

.intrinsic-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(255, 211, 106, 0.16) 0%,
    rgba(74, 211, 255, 0.10) 55%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border-color: rgba(255, 211, 106, 0.26);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.33);
}

.intrinsic-card.highlight .valuation-price { font-size: 28px; }

#w_dcf, #w_graham, #w_ddm, #w_ev, #w_pe { opacity: 0.80; }

#w_dcf::before, #w_graham::before, #w_ddm::before,
#w_ev::before,  #w_pe::before {
  content: "• ";
  opacity: 0.55;
}

@media (max-width: 980px) {
  .intrinsic-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 620px) {
  .intrinsic-grid { grid-template-columns: 1fr; }
  .intrinsic-card .valuation-price { font-size: 24px; }
  .intrinsic-card.highlight .valuation-price { font-size: 26px; }
}


/* ── S8. SCORE / DIAMOND ───────────────────────────────────── */
.score-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(26, 35, 50, 0.95));
  border: 2px solid var(--pp-accent-gold);
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 24px;
  text-align: center;
  overflow: hidden;
}

.score-display {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pp-accent-gold), #FFA500);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.score-verdict {
  font-size: 18px;
  font-weight: 700;
  color: var(--pp-text-muted);
  margin-bottom: 6px;
}

.score-scale {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pp-border-dim);
}

.score-scale-title {
  color: var(--pp-accent-gold);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-scale-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--pp-text-muted);
}

/* Scoring grid (collapsible category cards) */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--pp-space-4);
}

.score-category-collapsible {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.score-category-collapsible:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.score-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pp-space-3);
  padding: var(--pp-space-4);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease;
}

.score-category-header:hover {
  background: rgba(148, 163, 184, 0.06);
}

.score-category-header-left {
  display: flex;
  align-items: center;
  gap: var(--pp-space-3);
  min-width: 0;
}

.score-category-icon { font-size: 1.25rem; flex-shrink: 0; }

.score-category-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(209, 213, 219, 0.92);
}

.score-category-toggle {
  flex-shrink: 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.7rem;
  font-weight: 900;
  transition: transform 0.22s ease;
  transform: rotate(-90deg);
}

.score-category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.score-category-body.expanded { max-height: 300px; }

.score-category-body .score-category-value {
  padding: 0 var(--pp-space-4) var(--pp-space-4);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pp-color-text-primary);
}

.score-category-collapsible[data-expanded="true"] .score-category-toggle,
.score-category-toggle.expanded { transform: rotate(0deg); }

.collapsible-section.pp-card { padding: 0; }


/* ── S9. DIAMOND AI SUMMARY ────────────────────────────────── */
.diamond-ai-summary {
  background: rgba(50, 205, 50, 0.06);
  border: 1px solid rgba(50, 205, 50, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #bdc3c7;
  line-height: 1.6;
}

.diamond-ai-label {
  color: #32cd32;
  font-weight: 700;
  margin-right: 8px;
}

.score-category-detail {
  padding: 0 16px 12px;
  font-size: 11px;
  color: #bdc3c7;
}

#diamondBreakdownSection { margin-top: 12px; }


/* ── S10. COLLAPSIBLE EXTRAS ───────────────────────────────── */
.section-icon { font-size: 24px; }


/* ── S11. MINI-TABS ────────────────────────────────────────── */
.mini-tabs {
  display: inline-flex;
  background: var(--pp-bg-surface-hover);
  padding: 4px;
  border-radius: var(--pp-radius-md);
  gap: 2px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.mini-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  color: var(--pp-text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: calc(var(--pp-radius-md) - 2px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-tab:hover { color: var(--pp-text-body); }

.mini-tab.active {
  background: var(--pp-border-light);
  color: var(--pp-text-title);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* ── S12. METRIC CONTENT ───────────────────────────────────── */
.metric-content {
  background: var(--pp-bg-surface);
  border-radius: var(--pp-radius-lg);
  padding: 30px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease-out;
}

.metric-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--pp-text-title);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.chart-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--pp-border-dim);
  border-radius: var(--pp-radius-md);
  margin-bottom: 25px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* когда ECharts инициализирован — убираем flex-center, даём высоту */
.chart-container[id] {
  display: block;
  height: 260px;
  padding: 0;
}

.chart-placeholder {
  color: var(--pp-text-dim);
  font-size: 14px;
  font-style: italic;
}


/* ── S13. YEAR DATA TABLE ──────────────────────────────────── */
.year-data { display: grid; gap: 8px; }

.year-row {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.year-row:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.year-label { color: var(--pp-text-muted); font-weight: 500; }
.year-value { color: var(--pp-text-title); font-weight: 600; }

.year-change { text-align: right; font-weight: 500; }
.year-change.positive { color: var(--pp-accent-green); }
.year-change.negative { color: var(--pp-accent-red); }
.year-change.warning  { color: var(--pp-accent-gold); }

@media (max-width: 768px) {
  .year-row { grid-template-columns: 80px 1fr 100px; padding: 12px 15px; }
}


/* ── S14. DATA SOURCE ──────────────────────────────────────── */
.data-source {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pp-border-dim);
  color: var(--pp-text-dim);
  font-size: 12px;
  font-style: italic;
}


/* ── S15. CHART SHELL (pp-charts.js) ───────────────────────── */
.pp-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pp-chart-title {
  color: var(--pp-text-title);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pp-chart-subtitle {
  margin-top: 2px;
  color: var(--pp-text-muted);
  font-size: 12px;
}

.pp-chart-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.pp-chart-canvas {
  width: 100%;
  height: 280px;
  display: block;
}


/* ── S16. MULTI-METHOD BREAKDOWN TABLE ─────────────────────── */
.mm-section {
  margin-top: 20px;
  overflow: hidden;
}

.mm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mm-section-title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pp-text-dim);
}

.mm-section-subtitle { font-size: 11px; color: var(--pp-text-muted); }

.mm-placeholder { padding: 14px 16px; color: var(--pp-text-muted); font-size: 13px; }

.mm-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.mm-thead th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pp-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mm-thead th.mm-th-right { text-align: right; }

.mm-row { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s; }
.mm-row:hover { background: rgba(255,255,255,0.03); }

.mm-row-blended {
  border-top: 2px solid rgba(59,130,246,0.40);
  background: rgba(59,130,246,0.07);
}
.mm-row-blended:hover { background: rgba(59,130,246,0.11); }

.mm-cell { padding: 9px 12px; vertical-align: middle; }
.mm-cell-right { text-align: right; }

.mm-method-label { font-weight: 500; color: var(--pp-text-primary); }
.mm-method-desc  { font-size: 11px; color: var(--pp-text-muted); margin-top: 2px; }

.mm-val-ok   { font-weight: 600; color: var(--pp-accent-green); }
.mm-val-na   { color: var(--pp-text-muted); }

.mm-weight-ok { color: var(--pp-text-secondary); }
.mm-weight-na { color: var(--pp-text-muted); }

.mm-status-used { font-size: 11px; color: var(--pp-accent-green); }
.mm-status-na   { font-size: 11px; color: var(--pp-accent-red); }

.mm-comment {
  font-size: 11px;
  color: var(--pp-text-muted);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-comment-source {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pp-text-muted);
  opacity: 0.75;
  cursor: default;
}

/* Blended row */
.mm-blended-label  { font-weight: 700; color: var(--pp-accent-blue); }
.mm-blended-sub    { font-size: 11px; font-weight: 400; color: var(--pp-text-muted); margin-top: 2px; }
.mm-blended-val    { font-weight: 700; font-size: 15px; color: var(--pp-accent-blue); }
.mm-blended-weight { color: var(--pp-accent-blue); }
.mm-blended-note   { font-size: 11px; color: var(--pp-accent-blue); }


/* ── S17. OWNERSHIP & PE RISK ───────────────────────────────── */
.pe-risk-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--pp-radius-md);
  margin-bottom: 28px;
  transition: all 0.3s ease;
}

.pe-risk-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.pe-risk-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pe-risk-msg { font-size: 12px; color: var(--pp-text-muted); line-height: 1.5; }

.pe-risk-pct {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.pe-risk-low      { background: rgba(255,255,255,0.03); border: 1px solid var(--pp-border-dim); }
.pe-risk-medium   { background: rgba(245,158,11,0.06);  border: 1px solid rgba(245,158,11,0.25); }
.pe-risk-high     { background: rgba(239,68,68,0.06);   border: 1px solid rgba(239,68,68,0.3); }
.pe-risk-critical {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.5);
  box-shadow: 0 0 20px rgba(239,68,68,0.1);
}

.pe-risk-low .pe-risk-badge      { background: rgba(139,155,180,0.15); color: var(--pp-text-muted); }
.pe-risk-medium .pe-risk-badge   { background: rgba(245,158,11,0.15);  color: var(--pp-accent-gold); }
.pe-risk-high .pe-risk-badge     { background: rgba(239,68,68,0.15);   color: var(--pp-accent-red); }
.pe-risk-critical .pe-risk-badge { background: rgba(239,68,68,0.2);    color: #ff6b6b; font-size: 12px; }

.pe-risk-low .pe-risk-pct      { color: var(--pp-text-muted); }
.pe-risk-medium .pe-risk-pct   { color: var(--pp-accent-gold); }
.pe-risk-high .pe-risk-pct     { color: var(--pp-accent-red); }
.pe-risk-critical .pe-risk-pct { color: #ff6b6b; font-size: 28px; }

/* Ownership summary grid */
.ownership-summary-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }

/* Ownership table */
.ownership-table-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ownership-table-title  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--pp-text-body); }
.ownership-table-sub    { font-size: 11px; color: var(--pp-text-dim); }

.ownership-table-wrap {
  overflow-x: auto;
  border-radius: var(--pp-radius-md);
  border: 1px solid var(--pp-border-dim);
  margin-bottom: 20px;
}

.ownership-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.ownership-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--pp-text-muted);
  border-bottom: 1px solid var(--pp-border-dim);
  background: var(--pp-bg-surface);
  white-space: nowrap;
}

.ownership-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.ownership-table tbody tr:last-child td { border-bottom: none; }
.ownership-table tbody tr:hover td      { background: rgba(255,255,255,0.02); }
.ownership-loading { text-align: center; color: var(--pp-text-muted); padding: 24px; font-size: 12px; }

/* Owner cells */
.owner-name-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pp-text-body); }

.owner-badge-pe {
  background: rgba(239,68,68,0.15); color: var(--pp-accent-red);
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}
.owner-badge-activist {
  background: rgba(245,158,11,0.15); color: var(--pp-accent-gold);
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}

.owner-type-cell     { font-size: 11px; color: var(--pp-text-muted); }
.owner-type-pe       { font-size: 11px; color: var(--pp-accent-red); }
.owner-type-activist { font-size: 11px; color: var(--pp-accent-gold); }

/* Ownership % bar */
.owner-pct-wrap  { display: flex; align-items: center; gap: 10px; }
.owner-pct-bar-bg {
  background: rgba(255,255,255,0.08);
  border-radius: 3px; height: 4px; width: 70px; flex-shrink: 0;
}
.owner-pct-bar-fill {
  background: var(--pp-accent-blue);
  border-radius: 3px; height: 4px; transition: width 0.6s ease;
}
.owner-pct-bar-fill.pe-fill       { background: var(--pp-accent-red); }
.owner-pct-bar-fill.activist-fill { background: var(--pp-accent-gold); }

.owner-pct-val             { font-weight: 700; color: var(--pp-text-title); min-width: 46px; font-size: 13px; }
.owner-pct-val.pe-val      { color: var(--pp-accent-red); }
.owner-pct-val.activist-val { color: var(--pp-accent-gold); }

.owner-prev-cell { font-size: 12px; color: var(--pp-text-dim); }
.owner-date-cell { font-size: 11px; color: var(--pp-text-dim); white-space: nowrap; }

/* Change direction badges */
.dir-badge    { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.dir-new      { background: rgba(16,185,129,0.12); color: var(--pp-accent-green); }
.dir-increase { background: rgba(16,185,129,0.12); color: var(--pp-accent-green); }
.dir-decrease { background: rgba(239,68,68,0.12);  color: var(--pp-accent-red); }
.dir-unchanged { background: rgba(139,155,180,0.1); color: var(--pp-text-muted); }

@media (max-width: 768px) {
  .ownership-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .pe-risk-pct            { display: none; }
}
@media (max-width: 480px) {
  .ownership-summary-grid { grid-template-columns: 1fr 1fr; }
}


/* ── S18. LBO EXPLAINER ─────────────────────────────────────── */
.lbo-explainer-wrap {
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  margin-top: 8px;
}

.lbo-explainer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-accent-red);
  background: rgba(239,68,68,0.05);
  transition: background 0.2s;
  user-select: none;
}
.lbo-explainer-toggle:hover { background: rgba(239,68,68,0.08); }

.lbo-toggle-arrow { font-size: 14px; transition: transform 0.3s; }
.lbo-toggle-arrow.open { transform: rotate(180deg); }

.lbo-explainer-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: var(--pp-bg-surface);
  border-top: 1px solid rgba(239,68,68,0.15);
}
.lbo-explainer-body.expanded { max-height: 1200px; }

.lbo-disclaimer-top {
  font-size: 11px; color: var(--pp-text-muted); line-height: 1.6; padding: 16px 18px 0;
}
.lbo-disclaimer-top strong { color: var(--pp-text-body); }

/* LBO steps */
.lbo-steps-row {
  display: flex; align-items: flex-start; gap: 0;
  padding: 18px 18px 14px; overflow-x: auto;
}
.lbo-step       { flex: 1; min-width: 100px; text-align: center; padding: 0 8px; }
.lbo-step-arrow { color: var(--pp-text-dim); font-size: 18px; padding-top: 6px; flex-shrink: 0; }

.lbo-step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; margin: 0 auto 8px;
}
.lbo-step-1 { background: rgba(59,130,246,0.2);  color: var(--pp-accent-blue); }
.lbo-step-2 { background: rgba(245,158,11,0.2);  color: var(--pp-accent-gold); }
.lbo-step-3 { background: rgba(239,100,34,0.2);  color: #f0883e; }
.lbo-step-4 { background: rgba(239,68,68,0.2);   color: var(--pp-accent-red); }
.lbo-step-5 { background: rgba(139,0,0,0.3);     color: #ff6b6b; }

.lbo-step-title {
  font-size: 10px; font-weight: 700; color: var(--pp-text-body);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.lbo-step-desc { font-size: 10px; color: var(--pp-text-muted); line-height: 1.4; }

/* LBO cases grid */
.lbo-cases-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--pp-text-muted); padding: 0 18px 8px;
}
.lbo-cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 0 18px 16px;
}

.lbo-case-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--pp-border-dim);
  border-radius: var(--pp-radius-sm);
  padding: 10px 12px;
}
.lbo-case-company { font-size: 12px; font-weight: 700; color: var(--pp-text-body); margin-bottom: 2px; }
.lbo-case-pe      { font-size: 10px; color: var(--pp-text-muted); margin-bottom: 5px; }
.lbo-case-outcome { font-size: 10px; font-weight: 700; margin-bottom: 2px; }
.lbo-outcome-bankrupt   { color: var(--pp-accent-red); }
.lbo-outcome-struggling { color: var(--pp-accent-gold); }
.lbo-case-debt   { font-size: 9px; color: var(--pp-text-dim); margin-bottom: 4px; }
.lbo-case-source { font-size: 9px; color: var(--pp-accent-blue); text-decoration: none; }
.lbo-case-source:hover  { text-decoration: underline; }

.lbo-investor-note {
  font-size: 11px; color: var(--pp-text-muted); line-height: 1.6;
  padding: 12px 18px 16px; border-top: 1px solid var(--pp-border-dim);
}
.lbo-investor-note strong { color: var(--pp-text-body); }
.lbo-investor-note em     { color: var(--pp-text-dim); font-size: 10px; }

@media (max-width: 768px) {
  .lbo-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .lbo-steps-row  { flex-wrap: wrap; gap: 8px; }
  .lbo-step-arrow { display: none; }
}
@media (max-width: 480px) {
  .lbo-cases-grid { grid-template-columns: 1fr; }
}


/* ── S19. INSIDER ACTIVITY ──────────────────────────────────── */
/* Insider sentiment bar */
.insider-sentiment-section { margin-top: 8px; margin-bottom: 8px; }
.insider-bar-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--pp-text-muted); margin-bottom: 8px;
}
.insider-bar-bg {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.06); gap: 2px;
}
.insider-bar-buy  { background: var(--pp-accent-green); border-radius: 4px 0 0 4px; transition: width 0.6s ease; }
.insider-bar-sell { background: var(--pp-accent-red);   border-radius: 0 4px 4px 0; transition: width 0.6s ease; }
.insider-bar-legend { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-top: 6px; }

/* Type badge */
.insider-type-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: monospace;
}
.insider-type-positive { background: rgba(0,200,100,0.15); color: var(--pp-accent-green); border: 1px solid rgba(0,200,100,0.3); }
.insider-type-negative { background: rgba(220,50,50,0.12);  color: var(--pp-accent-red);   border: 1px solid rgba(220,50,50,0.25); }
.insider-type-neutral  { background: rgba(150,150,170,0.12);color: #aaa;                   border: 1px solid rgba(150,150,170,0.25); }

/* Transaction type legend */
.insider-type-legend {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0;
}
.insider-legend-title { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.08em; color: #666; margin-bottom: 10px; }
.insider-legend-grid  { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.insider-legend-item  { display: flex; align-items: flex-start; gap: 8px; min-width: 200px; }
.insider-legend-info  { display: flex; flex-direction: column; gap: 1px; }
.insider-legend-label { font-size: 0.82em; font-weight: 600; color: #ccc; }
.insider-legend-desc  { font-size: 0.74em; color: #666; line-height: 1.3; }

/* Trades table header */
.insider-trades-header { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; }
.insider-trades-title  { font-size: 0.82em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #ccc; }
.insider-trades-sub    { font-size: 0.72em; color: #555; }

.insider-trades-table td.muted,
.insider-trades-table .muted { color: #666; }

.insider-sec-link {
  color: #4a9eff; text-decoration: none; font-size: 0.78em; font-weight: 600;
  letter-spacing: 0.02em; white-space: nowrap; opacity: 0.8; transition: opacity 0.2s;
}
.insider-sec-link:hover { opacity: 1; text-decoration: underline; }

.insider-badge-10pct {
  display: inline-block; margin-left: 4px; padding: 1px 5px;
  font-size: 0.65em; font-weight: 700;
  background: rgba(255,180,0,0.15); color: #f0a500;
  border: 1px solid rgba(255,180,0,0.3); border-radius: 3px; vertical-align: middle;
}


/* ── S20. INSTITUTIONAL HOLDINGS ────────────────────────────── */
.inst-gold {
  color: var(--pp-accent-gold);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.inst-badge-quarter {
  display: inline-block; font-size: 10px; font-weight: 600;
  color: var(--pp-accent-gold);
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px; padding: 2px 7px; margin-left: 10px;
  letter-spacing: 0.5px; vertical-align: middle; text-transform: uppercase;
}

.inst-summary-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }

.inst-summary-grid .summary-card { border-top: 2px solid rgba(245, 158, 11, 0.2); transition: border-color 0.2s; }
.inst-summary-grid .summary-card:hover { border-top-color: rgba(245, 158, 11, 0.5); }

.inst-period { font-size: 15px; }

/* Holdings table */
.inst-holdings-table th.num,
.inst-holdings-table td.num { text-align: right; }

.inst-holdings-table td:first-child { font-weight: 500; color: var(--pp-text-body); }

.inst-chg-up   { color: var(--pp-accent-green); font-size: 12px; }
.inst-chg-down { color: var(--pp-accent-red);   font-size: 12px; }
.inst-chg-new  { color: var(--pp-accent-gold);  font-size: 11px; font-style: italic; }
.inst-chg-flat { color: var(--pp-text-dim);      font-size: 12px; }

/* Discretion badge */
.inst-disc-badge { font-size: 10px; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.3px; font-weight: 600; }
.inst-disc-sole  { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.inst-disc-dfnd  { background: rgba(150,150,170,0.1); color: #aaa;    border: 1px solid rgba(150,150,170,0.2); }
.inst-disc-otr   { background: rgba(245,158,11,0.1);  color: var(--pp-accent-gold); border: 1px solid rgba(245,158,11,0.2); }

/* Quarterly trend table */
.inst-trend-table th,
.inst-trend-table td { text-align: right; font-size: 12px; }

.inst-trend-table th:first-child,
.inst-trend-table td:first-child { text-align: left; font-weight: 500; color: var(--pp-text-body); min-width: 160px; }

.inst-trend-table td.inst-trend-latest { color: var(--pp-accent-gold); font-weight: 600; }
.inst-trend-table td.inst-trend-up     { color: var(--pp-accent-green); }
.inst-trend-table td.inst-trend-down   { color: var(--pp-accent-red); }
.inst-trend-table td.inst-trend-na     { color: var(--pp-text-dim); }

/* Institutional type badges */
.inst-badge {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: 0.72em; font-weight: 700; letter-spacing: 0.04em;
}
.inst-badge-put   { background: rgba(220,38,38,0.18);   color: #f87171; border: 1px solid rgba(220,38,38,0.4); }
.inst-badge-call  { background: rgba(34,197,94,0.15);   color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.inst-badge-prn   { background: rgba(139,92,246,0.18);  color: #c4b5fd; border: 1px solid rgba(139,92,246,0.4); }
.inst-badge-class { background: rgba(100,116,139,0.2);  color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); font-size: 0.68em; }

/* Conviction badges */
.inst-conviction        { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.72em; font-weight: 600; cursor: default; }
.inst-conviction-high   { background: rgba(255,165,0,0.15);   color: #fbbf24; border: 1px solid rgba(255,165,0,0.35); }
.inst-conviction-index  { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.inst-conviction-mid    { background: rgba(59,130,246,0.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

/* J-code badge — pulsing */
.jcode-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: help;
  color: #ff4d4d;
  background: rgba(139, 0, 0, 0.25);
  border: 1px solid rgba(180, 0, 0, 0.6);
  box-shadow: 0 0 6px rgba(180, 0, 0, 0.5), inset 0 0 4px rgba(100, 0, 0, 0.3);
  animation: jcode-pulse 2.8s ease-in-out infinite;
}

@media (max-width: 900px) { .inst-summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) {
  .inst-summary-grid { grid-template-columns: 1fr 1fr; }
  .inst-trend-table  { display: none; }
}


/* ── S21. HOURGLASS LOADER ──────────────────────────────────── */
.pp-hourglass {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}
.pp-hourglass-inner { text-align: center; color: rgba(255,255,255,0.7); }
.pp-sand-timer { margin-bottom: 12px; animation: pp-hg-rock 2s ease-in-out infinite; }
.pp-hourglass-text { font-size: 14px; color: #32cd32; margin: 0 0 4px; }
.pp-hourglass-sub  { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }
.pp-countdown      { color: #ffd700; font-weight: 700; }


/* ── S22. UTILITIES ─────────────────────────────────────────── */
.hidden { display: none; }

.spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.copy-success {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background: rgba(50, 205, 50, 0.12);
  border: 1px solid rgba(50, 205, 50, 0.35);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.clickable { cursor: pointer; }


/* ── S23. KEYFRAMES ─────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes jcode-pulse {
  0%   { box-shadow: 0 0 4px rgba(180,0,0,0.4), inset 0 0 3px rgba(100,0,0,0.2); }
  50%  { box-shadow: 0 0 12px rgba(200,0,0,0.7), inset 0 0 6px rgba(120,0,0,0.4); }
  100% { box-shadow: 0 0 4px rgba(180,0,0,0.4), inset 0 0 3px rgba(100,0,0,0.2); }
}

@keyframes pp-chart-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

@keyframes pp-hg-rock {
  0%, 100% { transform: rotate(-3deg); }
  50%       { transform: rotate(3deg); }
}

/* ── END OF SUPPLEMENT ──────────────────────────────────────── */

/* ── S24. RESIDUAL PATCHES ──────────────────────────────────── */

/* Current price card (full component) */
.current-price-card { display: flex; flex-direction: column; gap: 12px; }
.current-price-card .cp-header  { display: flex; justify-content: space-between; align-items: center; }
.current-price-card .cp-ticker  { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(96,165,250,0.16); color: #60a5fa; }
.current-price-card .cp-main    { display: flex; align-items: baseline; gap: 10px; }
.current-price-card .cp-price   { font-size: 32px; font-weight: 800; color: var(--pp-text-title); }
.current-price-card .cp-change  { font-size: 14px; font-weight: 600; }
.current-price-card .cp-rows    { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px 18px; font-size: 13px; }
.current-price-card .cp-row     { display: flex; justify-content: space-between; }
.current-price-card .cp-row span:first-child { color: var(--pp-text-muted); }
.current-price-card .cp-row span:last-child  { color: var(--pp-text-title); }
.current-price-card .cp-range-block   { margin-top: 6px; }
.current-price-card .cp-range-title   { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pp-text-muted); }
.current-price-card .cp-range-bar     { position: relative; margin-top: 6px; height: 6px; border-radius: 999px; background: var(--pp-border-dim); overflow: hidden; }
.current-price-card .cp-range-fill    { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--pp-accent-blue), var(--pp-accent-green)); width: 0%; transition: width 0.25s ease-out; }
.current-price-card .cp-range-indicator { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 12px; height: 12px; border-radius: 999px; background: #ffffff; border: 3px solid var(--pp-accent-blue); box-shadow: 0 0 0 2px rgba(15,23,42,0.7); left: 50%; transition: left 0.25s ease-out; }
.current-price-card .cp-range-labels  { margin-top: 4px; display: flex; justify-content: space-between; font-size: 11px; color: var(--pp-text-dim); }
.current-price-card .cp-meta          { margin-top: 8px; display: flex; justify-content: space-between; font-size: 11px; color: var(--pp-text-dim); }
.current-price-card .cp-meta-delay    { color: var(--pp-accent-gold); }

/* Trend cell states (used in JS innerHTML) */
.inst-trend-table td.inst-trend-latest { color: var(--pp-accent-gold); font-weight: 600; }
.inst-trend-table td.inst-trend-na     { color: var(--pp-text-dim); }

/* mm-th-right (JS-generated) */
.mm-thead th.mm-th-right { text-align: right; }

/* score-category-value standalone (score cards body) */
.score-category-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--pp-text-title);
}

/* ── END RESIDUAL ────────────────────────────────────────────── */

/* ADDITIONAL */

/* ============================================================
   Section — AICI (AI Investment Case Intelligence)
   Добавить в redesign_v2.css перед /* ── END RESIDUAL ──
   ============================================================ */

/* ── AICI Wrapper ─────────────────────────────────────────── */
.aici-wrapper {
  padding: 20px 0 8px;
}

.hidden {
  display: none !important;
}

/* ── Loading ──────────────────────────────────────────────── */
.aici-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: #87ceeb;
  font-size: 14px;
}

.aici-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(50,205,50,0.2);
  border-top-color: #32cd32;
  border-radius: 50%;
  animation: aiciSpin 0.8s linear infinite;
}

@keyframes aiciSpin {
  to { transform: rotate(360deg); }
}

/* ── Error ────────────────────────────────────────────────── */
.aici-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #e74c3c;
  font-size: 14px;
  background: rgba(231,76,60,0.08);
  border-radius: 12px;
  border: 1px solid rgba(231,76,60,0.2);
}

/* ── Header: EV + Probs + Years ───────────────────────────── */
.aici-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(15,25,50,0.5);
  border-radius: 16px;
  border: 1px solid rgba(50,205,50,0.15);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .aici-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Expected Return Block */
.aici-ev-block {
  text-align: center;
  min-width: 110px;
}

.aici-ev-label {
  font-size: 11px;
  color: #87ceeb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.aici-ev-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.aici-ev-value.positive { color: #32cd32; }
.aici-ev-value.negative { color: #e74c3c; }

.aici-ev-sub {
  font-size: 10px;
  color: #5a7a9a;
  margin-top: 4px;
}

/* Probability Bar */
.aici-probs {
  flex: 1;
}

.aici-prob-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  margin-bottom: 8px;
}

.aici-prob-fill {
  height: 100%;
  transition: width 0.6s ease;
}

.aici-prob-fill.bull { background: #32cd32; }
.aici-prob-fill.base { background: #3498db; }
.aici-prob-fill.bear { background: #e74c3c; }

.aici-prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.bull-label { color: #32cd32; }
.base-label { color: #3498db; }
.bear-label { color: #e74c3c; }

.aici-prob-labels strong {
  font-weight: 700;
}

/* Year Switcher */
.aici-year-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 240px;
}

.year-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(50,205,50,0.2);
  background: transparent;
  color: #87ceeb;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-btn:hover {
  border-color: rgba(50,205,50,0.5);
  color: #32cd32;
}

.year-btn.active {
  background: rgba(50,205,50,0.15);
  border-color: #32cd32;
  color: #32cd32;
  font-weight: 600;
}

/* ── Three Cases ──────────────────────────────────────────── */
.aici-cases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .aici-cases {
    grid-template-columns: 1fr;
  }
}

.aici-case {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  background: rgba(15,25,50,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aici-case:hover {
  transform: translateY(-2px);
}

.bull-case {
  border-color: rgba(50,205,50,0.25);
  background: rgba(50,205,50,0.04);
}

.bull-case:hover {
  box-shadow: 0 8px 24px rgba(50,205,50,0.1);
}

.base-case {
  border-color: rgba(52,152,219,0.25);
  background: rgba(52,152,219,0.04);
}

.base-case:hover {
  box-shadow: 0 8px 24px rgba(52,152,219,0.1);
}

.bear-case {
  border-color: rgba(231,76,60,0.25);
  background: rgba(231,76,60,0.04);
}

.bear-case:hover {
  box-shadow: 0 8px 24px rgba(231,76,60,0.1);
}

/* Case Header */
.case-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.case-icon { font-size: 18px; }

.case-title {
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e0;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-prob {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.bull-case .case-prob  { background: rgba(50,205,50,0.15); color: #32cd32; }
.base-case .case-prob  { background: rgba(52,152,219,0.15); color: #3498db; }
.bear-case .case-prob  { background: rgba(231,76,60,0.15); color: #e74c3c; }

.case-upside   { font-size: 12px; color: #32cd32; font-weight: 600; }
.case-downside { font-size: 12px; color: #e74c3c; font-weight: 600; }

/* Case Narrative */
.case-narrative {
  font-size: 13px;
  line-height: 1.6;
  color: #c0d0e0;
  white-space: pre-wrap;
}

.case-skeleton {
  height: 80px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Signals */
.case-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.signal-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #87ceeb;
  background: rgba(255,255,255,0.04);
}

.signal-tag.bull {
  border-color: rgba(50,205,50,0.2);
  color: #7ddf7d;
}

.signal-tag.bear {
  border-color: rgba(231,76,60,0.2);
  color: #f08080;
}

/* ── 10-Year Chart ────────────────────────────────────────── */
.aici-chart-section {
  background: rgba(15,25,50,0.4);
  border-radius: 14px;
  border: 1px solid rgba(50,205,50,0.1);
  padding: 16px;
  margin-bottom: 16px;
}

.aici-chart-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-sub {
  font-size: 11px;
  color: #5a7a9a;
}

/* ── Badge ────────────────────────────────────────────────── */
.section-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 8px;
}

.badge-green {
  background: rgba(50,205,50,0.15);
  color: #32cd32;
  border: 1px solid rgba(50,205,50,0.3);
}

.badge-red {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.3);
}

/* ── Disclaimer ───────────────────────────────────────────── */
.aici-disclaimer {
  font-size: 11px;
  color: #4a6a8a;
  line-height: 1.5;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}