/* ===== HERO ===== */
  .af-hero {
    padding: 2.5rem 0 2rem;
    background: radial-gradient(circle at 70% 20%, #2d5a8a 0%, #0f1419 70%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  .af-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.04;
    pointer-events: none;
  }
  .af-hero-glow1 {
    position: absolute; top: -60px; right: 5%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .af-hero-glow2 {
    position: absolute; bottom: -40px; left: 8%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .af-hero .breadcrumb {
    font-size: 0.85rem; margin-bottom: 1rem;
    --bs-breadcrumb-divider-color: rgba(255,255,255,0.4);
  }
  .af-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
  .af-hero .breadcrumb a:hover { color: #fff; }
  .af-hero .breadcrumb .active { color: #fff; }
  .af-badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.35rem 1rem; border-radius: 50px;
    background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25);
    margin-bottom: 0.75rem;
  }
  .af-badge-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d4af37; box-shadow: 0 0 10px #d4af37;
  }
  .af-badge-pill span:last-child {
    color: #d4af37; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
  }
  .af-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -0.5px;
    margin: 0 0 0.6rem;
  }
  .af-hero h1 .gold {
    background: linear-gradient(90deg, #d4af37, #f6e05e);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .af-hero-desc {
    color: rgba(255,255,255,0.7); font-size: 0.95rem;
    max-width: 650px; line-height: 1.7; margin: 0 0 1.5rem;
  }
  .af-hero-desc strong { color: #fff; }

  /* Hero stat cards */
  .af-stats-row {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
  }
  .af-stat-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 0.9rem 1.3rem;
    min-width: 140px; transition: border-color 0.2s;
  }
  .af-stat-card:hover { border-color: rgba(212,175,55,0.35); }
  .af-stat-card .num {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 800; color: #fff;
    line-height: 1.2;
  }
  .af-stat-card .lbl {
    font-size: 0.72rem; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
  }

  /* ===== MAIN CONTENT ===== */
  .af-page { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

  /* ===== FILTER BAR ===== */
  .af-filter-bar {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  }
  .af-search-wrap {
    position: relative; flex: 1; min-width: 200px;
  }
  .af-search-wrap i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary, #94a3b8); font-size: 0.8rem;
  }
  .af-search {
    width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    border: 1px solid var(--border-color, #e2e8f0); border-radius: 8px;
    font-size: 0.85rem; background: #f8fafc;
    outline: none; transition: border-color 0.15s;
  }
  .af-search:focus { border-color: var(--color-accent, #d4af37); }
  .af-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .af-chip {
    padding: 5px 14px; border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px; font-size: 0.78rem; color: var(--text-secondary, #64748b);
    cursor: pointer; background: #fff; transition: all .15s;
    white-space: nowrap; user-select: none;
  }
  .af-chip:hover, .af-chip.active {
    background: rgba(30,58,95,0.08); color: #1e3a5f;
    border-color: rgba(30,58,95,0.3);
  }

  /* ===== TABLE ===== */
  .af-wrap {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px; overflow: hidden; position: relative;
    background: var(--bg-card, #fff);
    box-shadow: 0 2px 8px rgba(30,58,95,0.06);
  }
  .af-scroll { overflow-x: auto; }
  .af-scroll::-webkit-scrollbar { height: 6px; }
  .af-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }
  .af-scroll::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.4); border-radius: 3px; }

  .af-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 880px; }
  .af-table thead tr { background: #f1f5f9; }
  .af-table th {
    padding: 10px 12px; text-align: left; font-weight: 700; font-size: 0.72rem;
    color: var(--text-secondary, #64748b); border-bottom: 2px solid #e2e8f0;
    white-space: nowrap; cursor: pointer; user-select: none;
    letter-spacing: 0.04em; text-transform: uppercase;
    position: sticky; top: 0; background: #f1f5f9; z-index: 2;
  }
  .af-table th:hover { color: var(--text-primary, #1a1a2e); }
  .af-table th.sort-asc::after  { content: ' \2191'; color: var(--color-accent, #d4af37); }
  .af-table th.sort-desc::after { content: ' \2193'; color: var(--color-accent, #d4af37); }
  .af-table td {
    padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary, #1a1a2e); white-space: nowrap;
  }
  .af-table tr:last-child td { border-bottom: none; }
  .af-table tbody tr { transition: background 0.1s; }
  .af-table tbody tr:hover td { background: #f8fafc; }

  /* Cells */
  .af-rank { color: #94a3b8; font-size: 0.72rem; font-weight: 600; }
  .af-name { font-weight: 600; color: #1e3a5f; text-decoration: none; font-size: 0.82rem; }
  .af-name:hover { text-decoration: underline; color: #2d5a8a; }
  .af-aum  { color: #64748b; font-size: 0.78rem; }
  .pos { color: #16a34a; font-weight: 600; }
  .neg { color: #dc2626; font-weight: 600; }
  .neu { color: #94a3b8; }

  /* AE Score badge */
  .ae-badge {
    display: inline-block; padding: 2px 10px; border-radius: 6px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.78rem;
    min-width: 32px; text-align: center;
  }
  .ae-high   { background: rgba(34,197,94,0.12); color: #16a34a; }
  .ae-mid    { background: rgba(212,175,55,0.12); color: #b8960c; }
  .ae-low    { background: rgba(148,163,184,0.12); color: #64748b; }

  /* Bar cell */
  .bar-cell { display: flex; align-items: center; gap: 6px; }
  .bar-fill { height: 5px; border-radius: 3px; flex-shrink: 0; }

  /* Strategy */
  .af-strategy { color: #475569; font-size: 0.75rem; white-space: normal; line-height: 1.3; max-width: 180px; }

  /* ===== PAYWALL ===== */
  .af-paywall {
    position: absolute; bottom: 0; left: 0; right: 0; height: 240px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-body, #f5f7fa) 50%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding-bottom: 28px; pointer-events: none;
  }
  .af-paywall-box {
    pointer-events: all; text-align: center;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px; padding: 22px 32px; max-width: 380px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .af-paywall-box strong { font-size: 1rem; color: var(--text-primary, #1a1a2e); display: block; margin-bottom: 4px; }
  .af-paywall-box p { font-size: 0.85rem; color: var(--text-secondary, #64748b); margin: 6px 0 14px; }
  .af-unlock-btn {
    display: inline-block; padding: 10px 28px;
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    color: #fff; border-radius: 8px;
    font-size: 0.85rem; font-weight: 700; text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
  }
  .af-unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,175,55,0.4); color: #fff; }
  .af-unlock-note { font-size: 0.72rem; color: #94a3b8; margin-top: 8px; }

  /* ===== PAGINATION ===== */
  .af-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 1rem; border-top: 1px solid #e2e8f0; flex-wrap: wrap;
  }
  .af-pg-btn {
    padding: 5px 12px; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 0.78rem; cursor: pointer; background: #fff; color: #475569;
    transition: all .15s;
  }
  .af-pg-btn:hover { background: #f1f5f9; }
  .af-pg-btn.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; font-weight: 600; }
  .af-pg-btn:disabled { opacity: 0.4; cursor: default; }
  .af-pg-info { font-size: 0.75rem; color: #94a3b8; }

  /* ===== SKELETON ===== */
  .af-skeleton td {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 400% 100%; animation: shimmer 1.4s infinite; color: transparent;
  }
  @keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

  /* ===== SCROLL FADE ===== */
  .af-scroll-fade {
    position: absolute; top: 0; right: 0; width: 60px; height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-card, #fff));
    pointer-events: none; z-index: 3; transition: opacity 0.2s;
  }

  /* ===== MOBILE ===== */
  @media (max-width: 768px) {
    .af-stats-row { gap: 0.5rem; }
    .af-stat-card { min-width: 100px; padding: 0.7rem 1rem; }
    .af-stat-card .num { font-size: 1.2rem; }
    .af-table th:nth-child(n+7), .af-table td:nth-child(n+7) { display: none; }
    .af-hero { padding: 2rem 0 1.5rem; }
  }

/* ── SEO / UX FIXES ──────────────────────────────────────────── */
.af-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Minimum tap target for pagination and chip buttons */
.af-pg-btn,
.af-chip,
.af-unlock-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
