
  /* Quiet Money: no scroll-reveal choreography — content is simply there.
     Classes kept for markup compatibility; they are inert. */
  .reveal, .reveal-left, .reveal-scale, .stagger-children > * {
    opacity: 1; transform: none; transition: none;
  }

  /* ═══════════════════════════════════════════════════════════
     BIG SECTION HEADERS
  ═══════════════════════════════════════════════════════════ */
  .section-heading {
    margin-bottom: 32px;
    position: relative;
  }

  .section-heading .section-number {
    display: none;
  }

  .section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: var(--text);
    line-height: 1.1;
    position: relative;
  }

  .section-heading .section-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0;
    line-height: 1.6;
    margin-top: 10px;
    position: relative;
  }


  /* ═══════════════════════════════════════════════════════════
     STRATEGY CONTENT — AJAX TRANSITION
  ═══════════════════════════════════════════════════════════ */
  .strategy-content {
    transition: opacity 0.2s ease;
    min-height: 200px;
  }
  .strategy-content[data-loading="1"] {
    pointer-events: none;
  }

  /* ═══════════════════════════════════════════════════════════
     STRATEGY SELECTOR
  ═══════════════════════════════════════════════════════════ */
  .strategy-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

  .strategy-card {
    flex: 1 1 200px;
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
  }

  [data-theme="light"] .strategy-card {
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
  }

  .strategy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    background: var(--gradient-1);
    transition: opacity 0.25s;
    z-index: 0;
  }

  .strategy-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

  .strategy-card:hover::before { opacity: 0.04; }

  .strategy-card.active {
    border-color: var(--accent);
    background: var(--accent-glow);
  }

  .strategy-card.active::before { opacity: 0.06; }

  .strategy-card-inner {
    position: relative;
    z-index: 1;
  }

  .strategy-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .strategy-card.active .strategy-name { color: var(--accent); }

  .strategy-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .strategy-investors-count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .strategy-active-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: none;
  }

  .strategy-card.active .strategy-active-dot { display: inline-block; }

  @media (max-width: 640px) {
    /* Collapse the four tall cards into a single swipeable chip row so the
       selector costs one line of height instead of two rows of cards. */
    .strategy-selector {
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 8px;
      margin-bottom: 20px;
      padding-bottom: 4px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .strategy-selector::-webkit-scrollbar { display: none; }
    .strategy-card {
      flex: 0 0 auto;
      min-width: 0;
      padding: 9px 15px;
      border-radius: 999px;
    }
    .strategy-card:hover { transform: none; }
    .strategy-name { font-size: 0.76rem; margin-bottom: 0; white-space: nowrap; }
    .strategy-desc,
    .strategy-investors-count { display: none; }
  }

  /* Trust banner near the holdings table */
  .tracked-banner {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
    padding: 12px 18px; margin: 0 0 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px;
  }
  .tracked-banner-label {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-dim);
  }
  .tracked-banner-names { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
  .tracked-banner-more {
    margin-left: auto; color: var(--accent); text-decoration: none;
    font-size: 0.78rem; font-weight: 500; white-space: nowrap;
  }
  .tracked-banner-more:hover { text-decoration: underline; }
  @media (max-width: 600px) {
    .tracked-banner { padding: 10px 14px; }
    .tracked-banner-names { font-size: 0.85rem; }
    .tracked-banner-more { margin-left: 0; flex-basis: 100%; }
  }

  /* ═══════════════════════════════════════════════════════════
     REGION TABS
  ═══════════════════════════════════════════════════════════ */
  .tab-bar {
    display: flex; gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    background: none; border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-muted);
    padding: 10px 18px;
    white-space: nowrap;
    transition: color var(--t), border-color var(--t);
  }

  .tab-btn:hover { color: var(--text); }

  .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
  }

  .tab-btn .tab-count {
    display: inline-block;
    margin-left: 6px;
    background: var(--surface2);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.78rem;
    color: var(--text-dim);
    transition: all var(--t);
  }

  .tab-btn.active .tab-count {
    background: var(--accent-glow);
    color: var(--accent);
  }

  /* ═══════════════════════════════════════════════════════════
     COUNTRY CHIP & HIDDEN ROWS
  ═══════════════════════════════════════════════════════════ */
  .country-chip {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 2px;
    display: block;
  }

  tr.hidden-row { display: none; }

  /* ═══════════════════════════════════════════════════════════
     TOP CONVICTION CARDS
  ═══════════════════════════════════════════════════════════ */
  .spark-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
  }

  .spark-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
  }

  [data-theme="light"] .spark-card {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  [data-theme="light"] .spark-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--card-hover-border);
  }

  .spark-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .spark-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-glow), 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-4px);
  }

  .spark-card:hover::after { transform: scaleX(1); }

  .spark-rank {
    position: absolute;
    top: 12px; right: 16px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.1;
  }

  .spark-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .spark-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .spark-score {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1;
  }

  .spark-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
  }

  .spark-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-2);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(34,211,238,0.3);
  }

  [data-theme="light"] .spark-bar-fill {
    box-shadow: none;
  }

  .spark-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-dim);
  }

  .spark-investors {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 4px;
  }


  /* ═══════════════════════════════════════════════════════════
     CHANGES BANNER
  ═══════════════════════════════════════════════════════════ */
  .changes-banner {
    display: flex; align-items: center;
    gap: 12px; flex-wrap: wrap;
  }

  .changes-banner .change-group {
    display: flex; align-items: center;
    gap: 6px; flex-wrap: wrap;
  }

  /* ═══════════════════════════════════════════════════════════
     HERO CTA BUTTON
  ═══════════════════════════════════════════════════════════ */
  .hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t), box-shadow var(--t);
    align-self: flex-start;
  }
  .hero-cta-btn:hover {
    background: var(--accent2);
    box-shadow: var(--shadow-md);
  }
  .hero-cta-btn svg { transition: transform var(--t); }
  .hero-cta-btn:hover svg { transform: translateY(2px); }

  .hero-cta-tertiary {
    display: inline-flex; align-items: center;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 13px 4px;
    transition: color var(--t);
  }
  .hero-cta-tertiary:hover { color: var(--accent); }

  /* ═══════════════════════════════════════════════════════════
     FAQ ACCORDION
  ═══════════════════════════════════════════════════════════ */
  .faq-section { margin-top: 56px; }
  .faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
  .faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--t);
  }
  .faq-item:hover { border-color: var(--border2); }
  .faq-item.open  { border-color: var(--accent); }
  .faq-q {
    width: 100%; text-align: left; background: none; border: none;
    padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    color: var(--text);
    gap: 12px;
  }
  .faq-q:hover { color: var(--accent); }
  .faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--text-dim);
  }
  .faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
  .faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
    font-family: var(--font-body); font-size: 0.85rem;
    color: var(--text-muted); line-height: 1.7;
    padding: 0 20px;
  }
  .faq-a a { color: var(--accent); text-decoration: none; }
  .faq-a a:hover { text-decoration: underline; }
  .faq-item.open .faq-a { max-height: 400px; padding: 0 20px 16px; }

  /* ═══════════════════════════════════════════════════════════
     PRICE DATA
  ═══════════════════════════════════════════════════════════ */
  .spark-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .spark-price {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
  }

  .spark-price-change {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
  }

  .spark-price-change.up { color: var(--buy); }
  .spark-price-change.down { color: var(--sell); }
  .spark-price-change.flat { color: var(--text-dim); }

  .sparkline-canvas {
    width: 100%;
    height: 32px;
    margin-top: 6px;
  }

  .price-refresh-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dim);
  }

  .price-refresh-btn {
    padding: 5px 12px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--surface-solid);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem; font-weight: 500;
    cursor: pointer;
    transition: all var(--t);
  }

  .price-refresh-btn:hover { border-color: var(--accent); color: var(--accent); }
  .price-refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  .price-refresh-btn.loading {
    position: relative;
    padding-left: 26px;
    pointer-events: none;
  }

  .price-refresh-btn.loading::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--border2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }

  @keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
  }

  /* Table price cell */
  .price-cell {
    font-family: var(--font-mono);
    font-size: 0.82rem;
  }

  .price-cell .price-val { font-weight: 500; color: var(--text); }
  .price-cell .price-chg { font-size: 0.82rem; }
  /* A carried-forward price. We show it rather than a dash, but we never let
     it pass for today's number. */
  .price-cell .price-stale {
    display: block; font-size: 0.68rem; letter-spacing: .02em;
    color: var(--text-dim, #8a8f98); cursor: help;
  }
  .price-cell .price-chg.up { color: var(--buy); }
  .price-cell .price-chg.down { color: var(--sell); }

  /* ═══════════════════════════════════════════════════════════
     PORTFOLIO STAGE — flexbox layout (table LEFT, panel RIGHT)
  ═══════════════════════════════════════════════════════════ */
  .portfolio-stage {
    display: flex;
    align-items: stretch;
    gap: 0;
  }

  /* Table: only as wide as its content needs */
  .portfolio-stage .table-wrap {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
  }

  /* Side panel: fills all remaining space to the right */
  .portfolio-side-panel {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 16px;
    border-left: 1px solid var(--border);
    background: var(--bg2);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  [data-theme="light"] .portfolio-side-panel {
    background: #f8fafc;
    border-left-color: rgba(15,23,42,0.08);
  }

  /* BC watermark — visible but tasteful */
  .side-watermark {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.22;
    line-height: 1;
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
    text-align: center;
  }

  [data-theme="light"] .side-watermark {
    opacity: 0.15;
  }

  /* See full portfolio button */
  .see-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    background: transparent;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-align: center;
  }

  .see-full-btn:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(3,105,161,0.18);
  }

  /* Collapse button — appears above table when expanded */
  .portfolio-collapse-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border2);
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
  }

  .portfolio-collapse-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Hidden extra columns */
  .col-extra {
    display: none;
  }

  /* Expanded state — panel collapses away */
  .portfolio-stage.expanded .portfolio-side-panel {
    width: 0;
    opacity: 0;
    padding: 0;
    border-left-width: 0;
    pointer-events: none;
  }

  /* Expanded state — extra columns appear */
  .portfolio-stage.expanded .col-extra {
    display: table-cell;
    animation: colSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .portfolio-stage.expanded th.col-extra:nth-child(4),
  .portfolio-stage.expanded td.col-extra:nth-child(4) {
    animation-delay: 0.05s;
  }
  .portfolio-stage.expanded th.col-extra:nth-child(6),
  .portfolio-stage.expanded td.col-extra:nth-child(6) {
    animation-delay: 0.15s;
  }
  .portfolio-stage.expanded th.col-extra:nth-child(7),
  .portfolio-stage.expanded td.col-extra:nth-child(7) {
    animation-delay: 0.25s;
  }

  @keyframes colSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Hide side panel on mobile — no room */
  @media (max-width: 768px) {
    .portfolio-side-panel { display: none; }
    .portfolio-stage { display: block; }
  }

  /* Mini inline sparkline for table */
  .mini-sparkline {
    width: 60px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    transition: opacity var(--t);
  }

  .mini-sparkline:hover { opacity: 0.7; }

  /* ═══════════════════════════════════════════════════════════
     PRICE CHART MODAL
  ═══════════════════════════════════════════════════════════ */
  .chart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="light"] .chart-modal-overlay {
    background: rgba(15,23,42,0.35);
    backdrop-filter: blur(6px);
  }

  .chart-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .chart-modal {
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.3), var(--shadow-glow);
    width: 90%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px 32px 24px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .chart-modal-overlay.active .chart-modal {
    transform: translateY(0) scale(1);
  }

  .chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .chart-modal-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.2;
  }

  .chart-modal-ticker {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 2px;
  }

  .chart-modal-price {
    text-align: right;
  }

  .chart-modal-price .val {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
  }

  .chart-modal-price .chg {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
  }

  .chart-modal-price .chg.up { color: var(--buy); }
  .chart-modal-price .chg.down { color: var(--sell); }

  .chart-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface2);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--t);
  }

  .chart-modal-close:hover {
    background: var(--border2);
    color: var(--text);
  }

  .chart-modal-canvas-wrap {
    position: relative;
    height: 260px;
    margin-bottom: 12px;
  }

  .chart-modal-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.82rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .chart-modal-stats .stat-up { color: var(--buy); }
  .chart-modal-stats .stat-down { color: var(--sell); }

  .chart-range-btn {
    padding: 6px 14px;
    border: 1px solid var(--border2);
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .chart-range-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .chart-range-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0e17;
  }

  [data-theme="light"] .chart-range-btn.active {
    color: #ffffff;
  }

  .chart-range-btn.loading {
    opacity: 0.5;
    pointer-events: none;
  }

  @media (max-width: 640px) {
    .chart-modal { width: 95%; padding: 20px 16px 16px; }
    .chart-modal-canvas-wrap { height: 200px; }
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE OPTIMIZATIONS
  ═══════════════════════════════════════════════════════════ */

  @media (max-width: 640px) {
    /* Hero — fix nav overlap, compact layout, smaller image */
    .hero-bg { min-height: auto; }
    .hero-image-layer { opacity: 0.05 !important; }
    .hero-content {
      padding-top: calc(var(--nav-h) + 20px);
      padding-bottom: 20px;
      padding-left: 16px;
      padding-right: 16px;
    }
    .hero-eyebrow { font-size: 0.82rem; margin-bottom: 8px; }
    .hero-title { font-size: 1.8rem !important; line-height: 1.1; }
    .hero-tagline { font-size: 0.8rem; margin-top: 10px; max-width: 100%; line-height: 1.45; }
    .hero-sub { font-size: 0.78rem; gap: 8px; margin-top: 10px; }
    .hero-stats-strip { gap: 20px; margin-top: 16px; }
    .hero-stat-val { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.54rem; }

    /* Hero CTA button — full width on mobile */
    .hero-cta-btn {
      margin-top: 18px;
      padding: 14px 24px;
      font-size: 0.85rem;
    }

    /* Spark cards */
    .spark-scroll { gap: 10px; padding-bottom: 6px; }
    .spark-card { min-width: 240px; padding: 14px; }

    /* Stat chips — 2x2 grid */
    .stats-row { gap: 6px; flex-wrap: wrap; }
    .stat-chip { min-width: 65px; flex: 1 1 calc(50% - 6px); padding: 12px 8px; }
    .stat-value { font-size: 1.3rem; }
    .stat-label { font-size: 0.55rem; }

    /* Holdings: the wide table is hidden ≤600px and replaced by the
       .m-card-list stacked cards (see the ≤600px block below). */

    /* Section headings */
    .section-heading h2 { font-size: 1.25rem; }
    .section-heading .section-sub { font-size: 0.82rem; }
    .section-number { font-size: 3.5rem; }

    /* Cards */
    .card { padding: 14px; }
    .card-label { font-size: 0.78rem; }

    /* Tabs */
    .tab-bar { margin-bottom: 14px; }
    .tab-btn { font-size: 0.78rem; padding: 7px 10px; }

    /* Modals — full width, scrollable */
    .chart-modal { width: 96% !important; max-width: 96% !important; padding: 14px 12px !important; max-height: 88vh; overflow-y: auto; }

    /* About on dashboard */
    .about-section { margin-top: 32px; }
    .about-card { padding: 14px; }
    .about-card h3 { font-size: 0.85rem; }
    .about-card p, .about-card li { font-size: 0.76rem; }

    /* Changes banner */
    .changes-banner { gap: 4px; }
    .badge { font-size: 0.78rem; padding: 3px 7px; }

    /* Disclaimer */
    .disclaimer { font-size: 0.82rem; padding: 12px; margin-top: 20px; }
  }

  @media (max-width: 380px) {
    .hero-title { font-size: 1.5rem !important; }
    .hero-stats-strip { gap: 14px; }
    .hero-stat-val { font-size: 1.2rem; }
    .spark-card { min-width: 220px; }
  }

  /* ═══════════════════════════════════════════════════════════
     HERO LAYOUT — side-by-side on desktop
  ═══════════════════════════════════════════════════════════ */
  .hero-stage {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    width: 100%;
  }

  .hero-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }

  .hero-float-card {
    flex-shrink: 0;
    width: 260px;
    background: rgba(17,24,39,0.65);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(34,211,238,0.14);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.03) inset;
    animation: float-card 8s ease-in-out infinite;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
  }

  .hero-float-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,0.4), transparent);
  }

  [data-theme="light"] .hero-float-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(3,105,161,0.14);
    box-shadow: 0 20px 60px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
    animation: none;
  }

  [data-theme="light"] .hero-float-card::before {
    background: linear-gradient(90deg, transparent, rgba(3,105,161,0.25), transparent);
  }

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

  .hfc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }

  .hfc-title {
    font-size: 0.78rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hfc-title::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }

  .hfc-count {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
  }

  .hfc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
  }

  [data-theme="light"] .hfc-row {
    border-bottom-color: rgba(15,23,42,0.07);
  }

  .hfc-row:last-child { border-bottom: none; }


  .hfc-name {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hfc-score {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
  }

  .hfc-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  [data-theme="light"] .hfc-footer {
    border-top-color: rgba(15,23,42,0.08);
  }

  .hfc-footer-label {
    font-size: 0.58rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
  }

  .hfc-footer-val {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent);
  }

  @media (max-width: 960px) {
    .hero-float-card { display: none; }
    .hero-stage { display: block; }
  }

  /* ═══════════════════════════════════════════════════════════
     STRATEGY CARD ACCENT STRIPS
  ═══════════════════════════════════════════════════════════ */
  .strategy-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    opacity: 0.7;
    transition: opacity var(--t);
  }
  .strategy-card:hover::after,
  .strategy-card.active::after { opacity: 1; }
  .strategy-card--all::after         { background: var(--gradient-1); }
  .strategy-card--steady::after      { background: var(--gradient-2); }
  .strategy-card--innovation::after  { background: var(--gradient-3); }
  .strategy-card--bold::after        { background: linear-gradient(90deg, #fbbf24 0%, #f97316 100%); }

  .strategy-icon {
    font-size: 0.75rem;
    opacity: 0.6;
    flex-shrink: 0;
  }

  /* ═══════════════════════════════════════════════════════════
     NEW BADGE (holdings table)
  ═══════════════════════════════════════════════════════════ */
  .badge-new {
    display: inline-block;
    background: var(--accent3);
    color: #000;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
  }

  /* ═══════════════════════════════════════════════════════════
     SCORE COLUMN REDESIGN
  ═══════════════════════════════════════════════════════════ */
  .score-col { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
  .score-num {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
  }
  .score-col .score-bar-bg { height: 6px; }
  .score-col .score-bar-fill {
    height: 6px;
    box-shadow: 0 0 8px rgba(34,211,238,0.35);
  }

  [data-theme="light"] .score-col .score-bar-fill {
    box-shadow: none;
  }

  .th-sort { cursor: pointer; user-select: none; }
  .th-sort:hover { color: var(--text); }
  .sort-arrow { font-size: 0.65em; margin-left: 3px; opacity: 0.35; }
  .th-sort.sorted .sort-arrow { opacity: 1; color: var(--accent); }

  /* ═══════════════════════════════════════════════════════════
     MOBILE CARD VIEW
  ═══════════════════════════════════════════════════════════ */
  .m-card-list { display: none; flex-direction: column; gap: 8px; margin-top: 12px; }
  .m-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    transition: border-color var(--t), box-shadow var(--t);
  }
  .m-card:hover { border-color: var(--border2); }
  [data-theme="light"] .m-card {
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
  }
  .m-card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
  }
  .m-rank {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    min-width: 20px;
  }
  .m-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-score {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
  }
  .m-card-body {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px;
  }
  .m-price { font-family: var(--font-mono); font-size: 0.85rem; margin-left: auto; }
  .m-price.up { color: var(--buy); }
  .m-price.down { color: var(--sell); }

  /* Simple card view (default on phones) — pares each card down to name +
     rank/percentile + price, with a bigger tap target. The Simple/Detailed
     toggle switches between this and the full card. */
  .m-card-list.cards-simple .m-card { padding: 16px 16px; }
  .m-card-list.cards-simple .m-card-body .badge { display: none; }
  .m-card-list.cards-simple .m-why { display: none; }
  .m-card-list.cards-simple .m-card-body:empty { display: none; }

  @media (max-width: 600px) {
    .table-wrap { display: none !important; }
    .tab-bar    { display: none !important; }
    .m-card-list { display: flex; }
  }

  /* ═══════════════════════════════════════════════════════════
     CONVICTION EXPLAINABILITY — trigger + slide-in drawer
  ═══════════════════════════════════════════════════════════ */
  .why-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    border: 1px solid var(--border2);
    border-radius: 999px;
    background: var(--surface2);
    color: var(--text);
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t), background var(--t);
  }
  .why-btn:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
  }
  .why-btn .why-count { font-weight: 600; }
  .why-btn .why-chev { color: var(--text-dim); transition: transform var(--t), color var(--t); }
  .why-btn:hover .why-chev { color: var(--accent); transform: translateX(2px); }
  .why-spark {
    font-size: 0.78rem; font-weight: 600;
    padding: 1px 5px; border-radius: 5px; line-height: 1.4;
  }
  .why-spark.new  { color: var(--buy);    background: rgba(52,211,153,0.12); }
  .why-spark.cong { color: var(--accent2); background: rgba(167,139,250,0.14); }
  .m-why {
    margin-top: 12px; width: 100%; justify-content: flex-start;
    border-radius: var(--radius); padding: 8px 12px; gap: 8px; flex-wrap: wrap;
  }
  .m-why .why-chev { margin-left: auto; color: var(--accent); }

  /* Drawer */
  #cd-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(5,8,15,0.55);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s var(--ease);
  }
  #cd-overlay.open { opacity: 1; pointer-events: auto; }
  [data-theme="light"] #cd-overlay { background: rgba(15,23,42,0.32); }

  #cd-drawer {
    position: fixed; top: 0; right: 0; z-index: 601;
    width: min(440px, 92vw); height: 100%;
    background: var(--surface-solid);
    border-left: 1px solid var(--border2);
    box-shadow: -24px 0 60px rgba(0,0,0,0.45);
    transform: translateX(100%);
    transition: transform 0.34s var(--ease);
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  #cd-overlay.open #cd-drawer { transform: translateX(0); }
  [data-theme="light"] #cd-drawer { box-shadow: -24px 0 60px rgba(15,23,42,0.18); }

  .cd-drawer-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .cd-drawer-eyebrow {
    font-size: 0.78rem; color: var(--accent);
    display: flex; align-items: center; gap: 8px;
  }
  .cd-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border2); background: var(--surface);
    color: var(--text-muted); cursor: pointer; font-size: 1.1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t);
  }
  .cd-close:hover { color: var(--accent); border-color: var(--card-hover-border); }

  #cd-body { padding: 22px; overflow-y: auto; flex: 1; }

  .cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .cd-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; color: var(--text); }
  .cd-sub  { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
  .cd-scorebox { text-align: right; flex-shrink: 0; }
  .cd-score {
    font-family: var(--font-display); font-size: 1.9rem; line-height: 1;
    color: var(--accent);
  }
  .cd-score-lbl { font-size: 0.58rem; color: var(--text-dim); margin-top: 3px; }

  .cd-rankline { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
  .cd-pct-badge {
    font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
    color: var(--accent3); background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25); border-radius: 6px; padding: 3px 9px;
  }
  .cd-rank { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

  .cd-section-lbl {
    font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
    margin: 24px 0 12px; display: flex; align-items: center; gap: 8px;
  }
  .cd-section-note {
    font-weight: 400; letter-spacing: 0.04em; text-transform: none;
    color: var(--text-dim); opacity: 0.8;
  }
  .cd-why { display: flex; flex-direction: column; gap: 8px; }
  .cd-why-row {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: 0.86rem; color: var(--text);
  }
  .cd-why-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient-1); flex-shrink: 0; }

  .cd-stats { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
  .cd-stat {
    flex: 1 1 60px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 6px; background: var(--surface2);
  }
  .cd-stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--text); line-height: 1; }
  .cd-stat span { font-size: 0.58rem; color: var(--text-muted); }
  .cd-stat.new b  { color: var(--buy); }
  .cd-stat.inc b  { color: var(--accent); }
  .cd-stat.dec b  { color: var(--sell); }
  .cd-stat.cong b { color: var(--accent2); }

  .cd-bars { display: flex; flex-direction: column; gap: 9px; }
  .cd-bar-row { display: flex; align-items: center; gap: 10px; }
  .cd-bar-name { flex: 0 0 38%; font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cd-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
  .cd-bar-fill { height: 100%; border-radius: 3px; background: var(--gradient-2); transform-origin: left; animation: cdBarGrow 0.6s var(--ease) both; }
  @keyframes cdBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .cd-bar-val { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); min-width: 42px; text-align: right; }

  .cd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .cd-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.82rem; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
    background: var(--surface2);
  }
  .cd-chip b { color: var(--text); font-weight: 600; }
  .cd-chip--new  { border-color: rgba(52,211,153,0.25); }
  .cd-chip--new b  { color: var(--buy); }
  .cd-chip--increased b { color: var(--accent); }
  .cd-chip--decreased b { color: var(--sell); }
  .cd-chip--cong { border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.07); }
  .cd-chip-flag { color: var(--accent2); }

  .cd-fulllink {
    display: block; margin-top: 26px; padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--accent);
    text-decoration: none;
  }
  .cd-fulllink:hover { text-decoration: underline; }

  @media (prefers-reduced-motion: reduce) {
    #cd-drawer, #cd-overlay, .cd-bar-fill { transition: none; animation: none; }
  }

  /* ═══════════ WEEKLY SIGNAL DIGEST ═══════════ */
  .dg-wrap { margin: 8px 0 12px; }
  .dg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
  .dg-eyebrow {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0; color: var(--text-muted);
  }
  .dg-eyebrow a { color: var(--accent); }
  .dg-jump { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--text-dim); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
  .dg-jump:hover { color: var(--accent); }

  .dg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  @media (max-width: 1080px) { .dg-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px)  { .dg-grid { grid-template-columns: 1fr; } }

  .dg-tile {
    background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px 16px 14px; box-shadow: var(--shadow-sm);
    transition: border-color var(--t), box-shadow var(--t);
  }
  .dg-tile:hover { border-color: var(--card-hover-border); box-shadow: var(--shadow-md); }
  .dg-tile-label {
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    color: var(--text-dim); margin-bottom: 12px;
  }
  .dg-list { display: flex; flex-direction: column; }
  .dg-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 0; text-decoration: none; color: var(--text);
    border-top: 1px solid var(--border);
  }
  .dg-row:first-child { border-top: none; }
  .dg-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
  .dg-name-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dg-name .stock-logo { --logo-size: 22px; flex-shrink: 0; }
  .dg-row:hover .dg-name { color: var(--accent); }
  .dg-metric { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .dg-metric.dg-up { color: var(--buy); }
  .dg-srcs { display: flex; gap: 5px; flex-shrink: 0; }
  .dg-src { font-size: 0.82rem; font-weight: 500; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border2); color: var(--text-muted); white-space: nowrap; }
  .dg-src--fund { color: var(--accent);  border-color: var(--card-hover-border); background: var(--brand-tint); }
  .dg-src--cong { color: var(--text-muted); }
  .dg-src--ins  { color: var(--buy);     border-color: rgba(14,159,110,0.25); }
  .dg-foot, .dg-empty { font-size: 0.76rem; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }
  .dg-empty { margin-top: 4px; }

  .dg-tile--perf { display: flex; flex-direction: column; }
  .dg-perf { display: flex; flex-direction: column; gap: 8px; }
  .dg-perf-nums { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .dg-perf-model { font-family: var(--font-body); font-weight: 700; font-size: 1.7rem; color: var(--buy); line-height: 1; font-variant-numeric: tabular-nums; }
  .dg-perf-vs { font-size: 0.85rem; color: var(--text-dim); }
  .dg-perf-bench { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .dg-perf-sub { font-size: 0.76rem; color: var(--text-dim); line-height: 1.5; }

  /* ── "Held out by the rules" ────────────────────────────────────────────
     A footnote to the book, so it sits below the holdings and stays shut
     until asked. Open, it ran to several lines per stock and pushed the
     portfolio itself off a phone screen. */
  .blocked-note { margin: 18px 0 8px; border: 1px solid var(--border);
                  border-radius: 10px; background: var(--surface); }
  .blocked-note > summary { cursor: pointer; list-style: none; padding: 13px 16px;
                            display: block; border-radius: 10px; }
  .blocked-note > summary::-webkit-details-marker { display: none; }
  .blocked-note > summary:hover { background: var(--surface2); }
  .blocked-note > summary:focus-visible { outline: 2px solid var(--accent);
                                          outline-offset: 2px; }
  .blocked-note .bn-title { display: block; font-size: 0.87rem; font-weight: 600;
                            color: var(--text); }
  .blocked-note .bn-title::before { content: "▸"; color: var(--text-dim);
                                    margin-right: 8px; font-size: 0.8rem;
                                    display: inline-block; transition: transform var(--t); }
  .blocked-note[open] .bn-title::before { transform: rotate(90deg); }
  .blocked-note .bn-why { display: block; font-size: 0.79rem; color: var(--text-dim);
                          line-height: 1.6; margin: 5px 0 0 18px; max-width: 74ch; }
  .blocked-note .bn-list { margin: 0; padding: 2px 18px 15px 38px;
                           font-size: 0.86rem; color: var(--text-dim); line-height: 1.75; }
  .blocked-note .bn-list a { color: var(--text); text-decoration: none; }
  .blocked-note .bn-list a:hover { color: var(--accent); }
  .blocked-note .bn-list b { color: var(--text-muted); font-family: var(--font-mono);
                             font-weight: 600; }
  @media (max-width: 600px) {
    .blocked-note .bn-why { margin-left: 0; }
    .blocked-note .bn-list { padding-left: 26px; }
  }
  .dg-perf-cta { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 2px; }
  .dg-perf-cta:hover { text-decoration: underline; }

  /* ═══════════ ROW: activity tags + holder stack (Move 3) ═══════════ */
  .act-tag {
    display: inline-block; font-size: 0.56rem;
    font-weight: 500; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 5px;
    margin-left: 6px; vertical-align: middle;
  }
  .act-added   { color: var(--buy);  background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.22); }
  .act-trimmed { color: var(--sell); background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.22); }
  [data-theme="light"] .act-added   { background: rgba(4,120,87,0.08); }
  [data-theme="light"] .act-trimmed { background: rgba(185,28,28,0.07); }

  .holder-stack { display: inline-flex; vertical-align: middle; margin-right: 8px; }
  .holder-mono {
    width: 20px; height: 20px; border-radius: 50%; margin-left: -6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.5rem; font-weight: 600;
    color: #07101c; background: var(--gradient-1);
    border: 1.5px solid var(--surface-solid);
  }
  .holder-mono:first-child { margin-left: 0; }
  .holder-mono:nth-child(2) { background: var(--gradient-2); }
  .holder-mono:nth-child(3) { background: var(--gradient-3); }
  .holder-mono:nth-child(4) { background: linear-gradient(135deg, var(--accent2), var(--accent)); }
  [data-theme="light"] .holder-mono { color: #fff; border-color: #fff; }


  /* ═══════════ SPOTLIGHT — top pick this week ═══════════ */
  .spotlight {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    text-decoration: none; color: var(--text);
    padding: 22px 26px; margin-bottom: 16px; border-radius: var(--radius-lg);
    background:
      linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
      var(--gradient-1) border-box;
    border: 1.5px solid transparent;
    position: relative; overflow: hidden;
    transition: box-shadow var(--t), transform var(--t);
  }
  .spotlight { border: 1px solid var(--border) !important; background: var(--surface) !important; }
  .spotlight:hover { box-shadow: var(--shadow-md); border-color: var(--card-hover-border) !important; }
  .spotlight > * { position: relative; z-index: 1; }
  .sp-eyebrow {
    font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0;
    color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  }
  .sp-name { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; }
  .sp-why { font-size: 0.92rem; color: var(--text-muted); margin-top: 10px; max-width: 52ch; line-height: 1.55; }
  .sp-cta { font-size: 0.88rem; font-weight: 600; color: var(--accent); margin-top: 12px; }
  .sp-right { display: flex; align-items: center; gap: 22px; }
  .sp-big { text-align: center; }
  .sp-big .n { font-family: var(--font-body); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
  .sp-big .l { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 4px; }
  .sp-chips { display: flex; flex-direction: column; gap: 8px; }
  .sp-chip { font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border2); color: var(--text-muted); white-space: nowrap; }
  .sp-chip b { color: var(--text); }
  .sp-chip.ins { color: var(--buy); border-color: rgba(14,159,110,0.3); }
  @media (max-width: 560px) { .sp-right { width: 100%; justify-content: space-between; } }

  /* ═══════════ Dynamic headline sentence ═══════════ */
  .dg-headline {
    font-family: var(--font-body); font-weight: 500;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.45;
    color: var(--text); margin: 2px 0 18px; max-width: 62ch; text-wrap: balance;
  }

  /* ═══════════ Simple / Detailed table toggle ═══════════ */
  .view-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border2); border-radius: 9px; background: var(--surface2); }
  .view-toggle button {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0;
    padding: 6px 14px; border: none; border-radius: 6px; background: transparent;
    color: var(--text-muted); cursor: pointer; transition: all var(--t);
  }
  .view-toggle button.active { background: var(--accent-glow); color: var(--accent); }
  .view-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
  .view-controls .vc-hint { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-muted); }
  /* Simple view (the default) leaves four columns that answer the actual
     question — Company, Price, Smart-money, Investors. It hides: # (1),
     Region (4), Sector (5), Trend (7), Insider (8), Filing date (10).
     Everything is one click away under "Detailed". */
  table.table-simple th:nth-child(1),  table.table-simple td:nth-child(1),
  table.table-simple th:nth-child(4),  table.table-simple td:nth-child(4),
  table.table-simple th:nth-child(5),  table.table-simple td:nth-child(5),
  table.table-simple th:nth-child(7),  table.table-simple td:nth-child(7),
  table.table-simple th:nth-child(8),  table.table-simple td:nth-child(8),
  table.table-simple th:nth-child(10), table.table-simple td:nth-child(10) { display: none; }



  /* Short mobile tagline is hidden on desktop */
  .hero-tagline-m { display: none; }

  /* ═══════════════════════════════════════════════════════════
     PHASE 1 — iPhone: condense the hero, kill dead space so the
     product is reachable in ~1 screen. Mobile-only; desktop intact.
  ═══════════════════════════════════════════════════════════ */
  @media (max-width: 600px) {
    /* Hero no longer reserves a tall empty band */
    .hero-bg { min-height: auto !important; }
    .hero-content {
      padding-top: calc(var(--nav-h) + 22px) !important;
      padding-bottom: 22px !important;
    }

    /* Swap the dense paragraph for a single-line value prop */
    .hero-tagline { display: none; }
    .hero-tagline-m {
      display: block; font-family: var(--font-body);
      font-size: 0.92rem; color: var(--text-muted);
      line-height: 1.5; margin-top: 12px; max-width: 100%;
    }

    /* Trim secondary hero text a first-timer doesn't need up top */
    .hero-sub,
    .hero-investor-strip,
    .hero-nl-mini,
    #hero-nl-msg,

    /* Two stats, not four */
    .hero-stats-strip { gap: 22px; margin-top: 18px; margin-bottom: 6px; }
    .hero-stats-strip > div:nth-child(n+3) { display: none; }

    /* One clear primary action; secondary links live in the nav/footer */
    .hero-cta-secondary,
    .hero-cta-tertiary { display: none !important; }
    .hero-cta-btn { width: 100%; justify-content: center; margin-top: 8px; }

    /* Tighten the big inter-section gaps that made the page feel endless */
    .perf-banner { margin-top: 20px !important; }
    #current-holdings { margin-top: 28px !important; }
    .dg-wrap { margin-top: 4px; }
  }

  /* Desktop: the how-it-works toggle is hidden (strip always shown) */

  /* ═══════════════════════════════════════════════════════════
     PHASE 2 — iPhone: de-dupe the lead, collapse how-it-works,
     make the digest tiles a swipeable row. Mobile-only.
  ═══════════════════════════════════════════════════════════ */
  @media (max-width: 600px) {
    /* The headline sentence just repeats the spotlight + digest — drop it here */
    .dg-headline { display: none; }

    /* The trust strip repeats the hero stats + backtest numbers just above it */

    /* Digest tiles → horizontal swipeable row instead of four stacks */
    .dg-grid {
      display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px;
      scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .dg-grid::-webkit-scrollbar { display: none; }
    .dg-grid > .dg-tile { flex: 0 0 82%; scroll-snap-align: start; }
  }

  /* Honest freshness cue: when the committed snapshot is stale (e.g. right
     after a deploy), the self-heal refresh is running — say so, gently. */
  .freshness-refreshing {
    color: #fbbf24;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
  }
  .freshness-refreshing::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 7px; height: 7px; margin-top: -3px;
    border-radius: 50%; background: #fbbf24;
    animation: freshness-pulse 1.4s ease-in-out infinite;
  }
  @keyframes freshness-pulse {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50%      { opacity: 1;   transform: scale(1.15); }
  }

  /* ═══════════ Since-your-last-visit card + streak ═══════════ */
  .wcv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px;
    margin: 14px 0 6px;
  }
  .wcv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .wcv-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
  .wcv-streak {
    font-size: 0.78rem; font-weight: 600; color: var(--accent);
    background: var(--brand-tint); border: 1px solid var(--card-hover-border);
    border-radius: 999px; padding: 3px 10px;
  }
  .wcv-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .wcv-list li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
  .wcv-list b { color: var(--text); font-weight: 600; }
  .wcv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
  .wcv-dot.wcv-in  { background: var(--buy); }
  .wcv-dot.wcv-out { background: var(--sell); }


  /* Calm section divider */
  .section-hr { border: none; border-top: 1px solid var(--border); margin: 56px 0; }

  /* ═══════════ New-user strip (replaces the blocking intro modal) ═══════════ */
  .newbie-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--brand-tint);
    border: 1px solid var(--card-hover-border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin: 18px 0 6px;
    font-size: 0.88rem; color: var(--text-muted);
  }
  .newbie-strip a { color: var(--accent); font-weight: 600; text-decoration: none; }
  .newbie-strip button {
    background: none; border: none; cursor: pointer;
    color: var(--text-dim); font-size: 1.1rem; line-height: 1; padding: 4px;
  }

  /* ═══════════ Quiet hero: CTA row + proof strip ═══════════ */
  .hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
  .proof-strip {
    list-style: none; padding: 0;
    margin: 26px 0 0;
    display: flex; flex-wrap: wrap; gap: 8px 24px;
  }
  .proof-strip li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-muted);
  }
  .proof-strip li a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
  .proof-strip li a:hover { color: var(--accent); }
  .ps-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
  @media (max-width: 600px) {
    .proof-strip { flex-direction: column; gap: 8px; }
  }
