*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f7f6f3;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-2: #4a4a52;
    --text-3: #8a8a93;
    --green: #1a7a3a;
    --green-bg: #e6f5ec;
    --amber: #b8860b;
    --amber-bg: #fdf6e3;
    --red: #c0392b;
    --red-bg: #fdecea;
    --blue: #2563eb;
    --border: #e8e5e0;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1080px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font); color: var(--text); line-height: 1.5;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(235, 220, 200, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(200, 215, 235, 0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.01'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* === NAV === */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 246, 243, 0.88); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.015);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
}
.nav-logo { text-decoration: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 0; font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-logo span { color: #3b82f6; font-weight: 900; }
.nav-tagline { font-size: 0.65rem; font-weight: 500; color: #8a8a93; letter-spacing: 0.1px; position: relative; top: 2px; margin-left: 8px; }
.nav-links { display: flex; gap: 24px; }
.nav-link { text-decoration: none; font-size: 0.8rem; color: var(--text-3); font-weight: 500; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }

/* === HERO === */
.hero {
    max-width: var(--max-w); margin: 0 auto;
    padding: 80px 24px 60px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 235, 220, 0.4) 0%, transparent 60%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.hero-sub { font-size: 1.05rem; color: var(--text-3); max-width: 520px; margin: 0 auto 32px; line-height: 1.6; }

/* === SEARCH === */
.search-container { position: relative; max-width: 540px; margin: 0 auto; }
.search-box {
    position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s, border-color 0.2s;
    background-image: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,0.1), var(--shadow-md); }
.search-box input {
    width: 100%; padding: 16px 16px 16px 48px;
    border: none; background: none; font-size: 1rem; color: var(--text);
    font-family: var(--font); outline: none;
}
.search-box input::placeholder { color: var(--text-3); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); }

.search-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 100;
}
.search-dropdown.active { display: block; }
.search-item { padding: 14px 18px; cursor: pointer; transition: background 0.1s; display: flex; align-items: center; gap: 12px; }
.search-item:hover { background: var(--bg); }
.search-item + .search-item { border-top: 1px solid var(--border); }
.search-item-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.search-item-text {}
.search-item-name { font-weight: 600; font-size: 0.88rem; }
.search-item-sub { font-size: 0.72rem; color: var(--text-3); margin-top: 1px; }

/* === SECTIONS === */
.section { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px; }
.section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.3px; }

/* === MANAGER CARD === */
.manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card-scroll { position: relative; overflow: hidden; padding-bottom: 8px; }
.card-scroll-inner {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 4px 0;
    -ms-overflow-style: none; scrollbar-width: none;
}
.card-scroll-inner::-webkit-scrollbar { display: none; }
.card-scroll-inner .m-card { scroll-snap-align: start; flex-shrink: 0; }

.scroll-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; font-size: 0.9rem; color: var(--text-2);
    transition: all 0.2s;
}
.scroll-arrow:hover { background: var(--text); color: white; border-color: var(--text); }
.scroll-arrow-left { left: -4px; }
.scroll-arrow-right { right: -4px; }

.m-card {
    border-radius: 14px; padding: 22px 20px;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    min-width: 290px;
    position: relative; overflow: hidden;
    border: 1px solid transparent;
}
.m-card:hover { transform: translateY(-4px) scale(1.01); }

/* Sheen effect — diagonal light sweep on hover */
.m-card::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 55%, transparent 60%);
    transform: translateX(-100%) rotate(0deg);
    transition: transform 0.7s ease;
    pointer-events: none; z-index: 1;
}
.m-card:hover::before { transform: translateX(30%) rotate(0deg); }

/* Dark cards get brighter sheen */
.m-card.tier-legendary::before, .m-card.tier-elite::before, .m-card.tier-pro::before {
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.02) 44%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 56%, transparent 60%);
}

/* Tier: Legendary (90+) — Rich Gold */
.m-card.tier-legendary {
    background: linear-gradient(155deg, #2a2000 0%, #3d2e08 30%, #4a3810 60%, #2e2200 100%);
    border-color: rgba(218, 180, 70, 0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 24px rgba(180, 140, 30, 0.15), inset 0 1px 0 rgba(255,240,150,0.1);
    color: #fdf3d0;
}
.m-card.tier-legendary::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255,240,150,0.06) 0%, transparent 40%, rgba(255,240,150,0.03) 100%);
    pointer-events: none; border-radius: 14px;
}
.m-card.tier-legendary:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 16px 40px rgba(180, 140, 30, 0.2), inset 0 1px 0 rgba(255,240,150,0.15); border-color: rgba(218,180,70,0.7); }
.m-card.tier-legendary .m-card-amc { color: #c4a650; }
.m-card.tier-legendary .m-card-stat { background: rgba(218,180,70,0.08); border: 1px solid rgba(218,180,70,0.12); }
.m-card.tier-legendary .m-card-stat-label { color: #b89840; }
.m-card.tier-legendary .m-card-stat-value { color: #fdf3d0; }
.m-card.tier-legendary .m-card-rank { color: #e8c84a; }
.m-card.tier-legendary .tier-badge { background: linear-gradient(135deg, #e8c84a, #c4a030, #e8c84a); color: #2a2000; font-weight: 800; letter-spacing: 1px; }
.m-card.tier-legendary .m-card-avatar { border: 2px solid rgba(218,180,70,0.4); background: rgba(218,180,70,0.15); }
.m-card.tier-legendary .m-card-name { color: #fff; }
.m-card.tier-legendary .badge-up { color: #a0e0a0; background: rgba(100,200,100,0.1); }
.m-card.tier-legendary .badge-stable { color: #e8c84a; background: rgba(218,180,70,0.1); }

/* Tier: Elite (85-89) — Silver */
.m-card.tier-elite {
    background: linear-gradient(155deg, #2a2c30 0%, #383c42 30%, #44484f 60%, #2e3036 100%);
    border-color: rgba(200, 205, 215, 0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    color: #eef0f5;
}
.m-card.tier-elite::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(220,225,235,0.04) 0%, transparent 40%);
    pointer-events: none; border-radius: 14px;
}
.m-card.tier-elite:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 16px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08); border-color: rgba(200,205,215,0.45); }
.m-card.tier-elite .m-card-amc { color: #9ea4b0; }
.m-card.tier-elite .m-card-stat { background: rgba(200,205,215,0.06); border: 1px solid rgba(200,205,215,0.1); }
.m-card.tier-elite .m-card-stat-label { color: #8a90a0; }
.m-card.tier-elite .m-card-stat-value { color: #eef0f5; }
.m-card.tier-elite .m-card-rank { color: #c8cdd7; }
.m-card.tier-elite .tier-badge { background: linear-gradient(135deg, #d8dce5, #a8b0c0, #d8dce5); color: #2a2c30; font-weight: 700; }
.m-card.tier-elite .m-card-avatar { border: 2px solid rgba(200,205,215,0.25); background: rgba(200,205,215,0.08); }
.m-card.tier-elite .m-card-name { color: #fff; }
.m-card.tier-elite .badge-up { color: #6ecf8a; background: rgba(100,200,130,0.1); }
.m-card.tier-elite .badge-stable { color: #c8cdd7; background: rgba(200,205,215,0.08); }

/* Tier: Pro (80-84) — Bronze, lighter warm tone */
.m-card.tier-pro {
    background: linear-gradient(155deg, #5c4430 0%, #6e5240 30%, #7a5e48 60%, #604838 100%);
    border-color: rgba(220, 170, 110, 0.35);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 24px rgba(160, 100, 40, 0.1), inset 0 1px 0 rgba(255,220,160,0.08);
    color: #fef4e8;
}
.m-card.tier-pro::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255,220,160,0.04) 0%, transparent 40%);
    pointer-events: none; border-radius: 14px;
}
.m-card.tier-pro:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 16px 40px rgba(160, 100, 40, 0.15), inset 0 1px 0 rgba(255,220,160,0.12); border-color: rgba(220,170,110,0.5); }
.m-card.tier-pro .m-card-amc { color: #d4b090; }
.m-card.tier-pro .m-card-stat { background: rgba(220,170,110,0.08); border: 1px solid rgba(220,170,110,0.12); }
.m-card.tier-pro .m-card-stat-label { color: #c4a080; }
.m-card.tier-pro .m-card-stat-value { color: #fef4e8; }
.m-card.tier-pro .m-card-rank { color: #e8be78; }
.m-card.tier-pro .tier-badge { background: linear-gradient(135deg, #e0b070, #c09050, #e0b070); color: #3a2810; font-weight: 700; }
.m-card.tier-pro .m-card-avatar { border: 2px solid rgba(220,170,110,0.3); background: rgba(220,170,110,0.1); }
.m-card.tier-pro .m-card-name { color: #fff; }
.m-card.tier-pro .badge-up { color: #8ad4a0; background: rgba(100,180,120,0.1); }
.m-card.tier-pro .badge-down { color: #f0a0a0; background: rgba(240,120,120,0.1); }
.m-card.tier-pro .badge-stable { color: #e0b070; background: rgba(220,170,110,0.1); }

/* Tier: Rising (<80) — Light Sky Blue */
.m-card.tier-rising {
    background: linear-gradient(155deg, #f0f7ff 0%, #e8f2fc 40%, #e0eefa 100%);
    border-color: #c0d8ee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 6px 16px rgba(100,160,220,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    color: #1a3050;
}
.m-card.tier-rising:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 12px 28px rgba(100,160,220,0.1), inset 0 1px 0 rgba(255,255,255,0.9); border-color: #a8cce4; }
.m-card.tier-rising .m-card-amc { color: #5a7a98; }
.m-card.tier-rising .m-card-stat { background: rgba(100,160,220,0.05); border: 1px solid rgba(100,160,220,0.08); }
.m-card.tier-rising .m-card-stat-label { color: #5a7a98; }
.m-card.tier-rising .m-card-stat-value { color: #1a3050; }
.m-card.tier-rising .m-card-rank { color: #4a8abe; }
.m-card.tier-rising .tier-badge { background: #d0e4f5; color: #2a5a80; }
.m-card.tier-rising .m-card-avatar { border: 2px solid #c0d8ee; background: rgba(100,160,220,0.08); }
.m-card.tier-rising .badge-up { color: #2d6a4f; background: rgba(45,106,79,0.06); }
.m-card.tier-rising .badge-down { color: #c44; background: rgba(200,60,60,0.05); }
.m-card.tier-rising .badge-stable { color: #4a8abe; background: rgba(100,160,220,0.06); }

.m-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; z-index: 2; }
.m-card-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: white; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.m-card-avatar img { display: none; }
.m-card-name { font-weight: 700; font-size: 0.95rem; position: relative; z-index: 2; }

/* Embossed text on dark cards */
.m-card.tier-legendary .m-card-name { text-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 8px rgba(218,180,70,0.1); }
.m-card.tier-legendary .m-card-stat-value { text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.m-card.tier-legendary .m-card-rank { text-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 6px rgba(218,180,70,0.15); }
.m-card.tier-legendary .tier-badge { text-shadow: none; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

.m-card.tier-elite .m-card-name { text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.m-card.tier-elite .m-card-stat-value { text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.m-card.tier-elite .m-card-rank { text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.m-card.tier-elite .tier-badge { box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

.m-card.tier-pro .m-card-name { text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.m-card.tier-pro .m-card-stat-value { text-shadow: 0 1px 1px rgba(0,0,0,0.2); }
.m-card.tier-pro .m-card-rank { text-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 0 4px rgba(220,170,110,0.15); }
.m-card.tier-pro .tier-badge { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }

/* Light card (Rising) gets debossed/inset text effect */
.m-card.tier-rising .m-card-name { text-shadow: 0 1px 0 rgba(255,255,255,0.8); }
.m-card.tier-rising .m-card-stat-value { text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.m-card.tier-rising .m-card-rank { text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.m-card-amc { font-size: 0.72rem; }

.m-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; position: relative; z-index: 2; }
.m-card-stat { text-align: center; padding: 10px 4px; border-radius: 8px; }
.m-card-stat-value { font-size: 1.05rem; font-weight: 700; }
.m-card-stat-label { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 3px; }

.m-card-footer { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.m-card-badge { font-size: 0.65rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge-up { color: #4ade80; background: rgba(74,222,128,0.1); }
.badge-down { color: #f87171; background: rgba(248,113,113,0.1); }
.badge-stable { color: #fbbf24; background: rgba(251,191,36,0.1); }
.m-card-rank { font-size: 0.78rem; font-weight: 600; }

.tier-badge {
    position: absolute; top: 14px; right: 14px;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 1px;
    padding: 4px 10px; border-radius: 5px; text-transform: uppercase;
    z-index: 2;
}

/* === CHANGES === */
.changes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.change-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 18px;
    box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start;
}
.change-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); margin-top: 4px; flex-shrink: 0; }
.change-fund { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.change-detail { font-size: 0.78rem; color: var(--text-2); }
.change-detail span { color: var(--text-3); }
.change-date { font-size: 0.68rem; color: var(--text-3); margin-top: 4px; }

/* === MANAGER PROFILE === */
.profile-back { font-size: 0.82rem; color: var(--blue); cursor: pointer; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.profile-hero { margin-bottom: 32px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.profile-avatar img { display: none; }
.profile-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 2px; }
.profile-meta { font-size: 0.85rem; color: var(--text-3); margin-bottom: 10px; }
.profile-summary { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; max-width: 480px; }
.profile-stats { display: flex; gap: 20px; margin-top: 14px; }
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 1.3rem; font-weight: 700; }
.profile-stat-label { font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

.profile-section { margin-bottom: 32px; }
.profile-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }

/* Expandable cards */
.expand-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden;
    box-shadow: var(--shadow); transition: box-shadow 0.2s;
    background-image: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}
.expand-card:hover { box-shadow: var(--shadow-md); }
.expand-header {
    padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.expand-title { font-weight: 600; font-size: 0.88rem; }
.expand-score { font-size: 0.82rem; font-weight: 600; }
.expand-arrow { font-size: 1rem; color: #8a8a93; transition: transform 0.2s; font-weight: 300; }
.expand-card.open .expand-arrow { transform: rotate(45deg); }
.expand-body { padding: 0 20px 16px; display: none; font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.expand-card.open .expand-body { display: block; }

/* Timeline */
.timeline { padding-left: 20px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); border-radius: 1px; }
.timeline-item { position: relative; padding-left: 20px; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); }
.timeline-item.past::before { border-color: var(--border); background: var(--border); }
.timeline-year { font-size: 0.7rem; color: var(--text-3); font-weight: 600; }
.timeline-event { font-size: 0.85rem; font-weight: 500; margin-top: 2px; }

/* Fund table */
.fund-table { width: 100%; border-collapse: collapse; }
.fund-table th { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.fund-table td { font-size: 0.82rem; padding: 12px; border-bottom: 1px solid var(--border); }
.fund-table tr { cursor: pointer; transition: background 0.1s; }
.fund-table tr:hover { background: var(--bg); }

/* === FUND VIEW === */
.fund-hero { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; background-image: linear-gradient(160deg, #ffffff 0%, #f4f8fc 100%); }
.fund-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.fund-category { font-size: 0.82rem; color: var(--text-3); margin-bottom: 16px; }
.fund-key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fund-fact { padding: 12px; background: var(--bg); border-radius: var(--radius-xs); }
.fund-fact-value { font-size: 1rem; font-weight: 700; }
.fund-fact-label { font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
.fund-summary { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; padding: 14px 16px; background: var(--green-bg); border-radius: var(--radius-xs); border-left: 3px solid var(--green); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 48px 20px 40px; }
    .hero h1 { font-size: 1.8rem; }
    .section { padding: 0 20px 36px; }
    .manager-grid { grid-template-columns: 1fr; }
    .profile-hero { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats { justify-content: center; }
}

/* === UTILS === */
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.text-muted { color: var(--text-3); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* === AUTH MODAL === */
.auth-modal { max-width: 400px; padding: 36px; text-align: center; }
.auth-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 0.85rem; color: var(--text-3); margin-bottom: 24px; }
.btn-google {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); font-size: 0.88rem; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font); transition: all 0.2s;
}
.btn-google:hover { background: var(--bg); border-color: #ccc; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: 0.75rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.88rem; font-family: var(--font); margin-bottom: 10px; outline: none;
    transition: border-color 0.2s;
}
.auth-input:focus { border-color: var(--blue); }
.btn-full { width: 100%; margin-top: 4px; }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.auth-toggle { font-size: 0.78rem; color: var(--text-3); margin-top: 16px; }
.auth-toggle a { color: var(--blue); text-decoration: none; font-weight: 500; }

/* === USER MENU === */
.nav-right { display: flex; align-items: center; }
.user-pill {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 5px 12px 5px 5px; border-radius: 20px; border: 1px solid var(--border);
    background: var(--surface); transition: all 0.2s;
}
.user-pill:hover { border-color: #ccc; }
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.user-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.user-pill span { font-size: 0.78rem; font-weight: 500; }
.user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); min-width: 160px; overflow: hidden; z-index: 100;
}
.user-dropdown.active { display: block; }
.user-dropdown a {
    display: block; padding: 10px 16px; font-size: 0.82rem; color: var(--text);
    text-decoration: none; transition: background 0.1s;
}
.user-dropdown a:hover { background: var(--bg); }

/* === PORTFOLIO === */
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: 0.88rem; color: var(--text-3); margin-bottom: 24px; }

.alert-banner {
    padding: 12px 16px; background: var(--amber-bg); border: 1px solid #f5e6a3;
    border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.82rem;
}
.alert-banner a { color: var(--blue); text-decoration: none; font-weight: 500; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; color: var(--text-3); margin-bottom: 16px; max-width: 360px; margin-left: auto; margin-right: auto; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.portfolio-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
    background-image: linear-gradient(145deg, rgba(255,255,255,0.7) 0%, rgba(240,246,253,0.3) 100%);
}
.portfolio-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.portfolio-fund-name { font-weight: 600; font-size: 0.9rem; }
.portfolio-fund-cat { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }
.btn-icon { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; font-size: 0.75rem; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.btn-icon:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.portfolio-card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.portfolio-stat { padding: 8px; background: var(--bg); border-radius: var(--radius-xs); }
.portfolio-stat-value { font-size: 0.82rem; font-weight: 600; }
.portfolio-stat-label { font-size: 0.58rem; color: var(--text-3); text-transform: uppercase; margin-top: 1px; }
.portfolio-warning { font-size: 0.72rem; padding: 6px 10px; background: var(--amber-bg); border-radius: var(--radius-xs); color: var(--amber); font-weight: 500; }
.portfolio-ok { font-size: 0.72rem; padding: 6px 10px; background: var(--green-bg); border-radius: var(--radius-xs); color: var(--green); font-weight: 500; }

/* === ALERTS === */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.notif-amber .notif-dot { background: var(--amber); }
.notif-red .notif-dot { background: var(--red); }
.notif-title { font-weight: 600; font-size: 0.85rem; }
.notif-detail { font-size: 0.75rem; color: var(--text-2); margin-top: 2px; }
.notif-date { font-size: 0.65rem; color: var(--text-3); margin-top: 4px; }

.prefs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pref-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.pref-row:last-child { border-bottom: none; }
.pref-row strong { font-size: 0.85rem; }
.pref-desc { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }

/* Toggle switch */
.toggle { appearance: none; width: 40px; height: 22px; background: var(--border); border-radius: 11px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle::before { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle:checked { background: var(--green); }
.toggle:checked::before { transform: translateX(18px); }

/* === TOAST === */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 12px 20px; background: var(--text); color: white; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500; opacity: 0; transition: all 0.3s ease;
    z-index: 999; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === MODAL STATES === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 28px; max-width: 520px; width: 100%; max-height: 82vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-3); }

/* Add to portfolio button on fund page */
.btn-add-portfolio {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: var(--blue); color: white; border: none;
    border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600;
    cursor: pointer; font-family: var(--font); transition: all 0.2s; margin-top: 12px;
}
.btn-add-portfolio:hover { opacity: 0.9; }
.btn-add-portfolio.added { background: var(--green); }

/* === RANKINGS === */
.rankings-controls { margin-bottom: 20px; }
.rank-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-filter {
    padding: 7px 16px; border: 1px solid var(--border); border-radius: 20px;
    background: var(--surface); font-size: 0.75rem; font-weight: 500; color: var(--text-2);
    cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.rank-filter.active { background: var(--text); color: white; border-color: var(--text); }

.rankings-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
    display: grid; grid-template-columns: 36px 40px 1fr 100px 40px 70px 110px 28px;
    align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
    box-shadow: var(--shadow);
}
.rank-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: #d0dbe8; }

.rank-pos { font-size: 1.1rem; font-weight: 700; text-align: center; color: var(--text-3); }
.rank-row:nth-child(1) .rank-pos { color: #d4af37; }
.rank-row:nth-child(2) .rank-pos { color: #8a919e; }
.rank-row:nth-child(3) .rank-pos { color: #a0522d; }

.rank-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.rank-info {}
.rank-name { font-weight: 600; font-size: 0.85rem; }
.rank-meta { font-size: 0.68rem; color: var(--text-3); }

.rank-score-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.rank-score-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.rank-score-val { font-size: 0.85rem; font-weight: 700; text-align: center; }
.rank-tier { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.rank-stats-mini { font-size: 0.65rem; color: var(--text-3); display: flex; flex-direction: column; gap: 1px; }
.rank-trend { font-size: 0.8rem; text-align: center; }
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* === COMPARE === */
.compare-selectors {
    display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
    justify-content: center; flex-wrap: nowrap;
}
.compare-select {
    padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.78rem; font-family: var(--font); background: var(--surface);
    cursor: pointer; outline: none; min-width: 180px; max-width: 220px;
}
.compare-select:focus { border-color: var(--blue); }
.compare-vs { font-size: 0.8rem; font-weight: 700; color: var(--text-3); flex-shrink: 0; }
.btn-add-compare, .btn-remove-compare {
    padding: 8px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
    background: none; font-size: 0.78rem; font-weight: 600; color: var(--text-3);
    cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.btn-add-compare:hover { border-color: var(--blue); color: var(--blue); }
.btn-remove-compare:hover { border-color: var(--red); color: var(--red); }

.compare-table { margin-bottom: 24px; }
.compare-row {
    display: grid; align-items: center; gap: 0;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.compare-cols-2 .compare-row { grid-template-columns: 140px 1fr 1fr; }
.compare-cols-3 .compare-row { grid-template-columns: 140px 1fr 1fr 1fr; }
.compare-row:last-child { border-bottom: none; }

.compare-header-row { padding: 20px 0; border-bottom: 2px solid var(--border); }
.compare-header-cell { text-align: center; }
.compare-header-avatar { display: none; }
.compare-header-name { font-weight: 600; font-size: 0.85rem; }
.compare-header-amc { font-size: 0.68rem; color: var(--text-3); }

.compare-selector-item { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-remove-x {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
    background: none; font-size: 0.7rem; color: var(--text-3); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-remove-x:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }

.compare-val { font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-xs); text-align: center; }
.compare-winner { background: var(--green-bg); color: var(--green); }
.compare-label { font-size: 0.72rem; color: var(--text-3); text-align: left; font-weight: 500; padding-right: 12px; }
.compare-divider { height: 1px; background: var(--border); margin: 8px 0; grid-column: 1 / -1; }

.compare-verdict {
    padding: 20px; background: var(--bg); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.compare-verdict h3 { font-size: 0.9rem; margin-bottom: 6px; }
.compare-verdict p { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }

@media (max-width: 768px) {
    .rank-row { grid-template-columns: 28px 32px 1fr 60px 30px; font-size: 0.78rem; }
    .rank-row .rank-tier, .rank-row .rank-stats-mini, .rank-row .rank-trend { display: none; }
    .compare-selectors { flex-wrap: wrap; }
    .compare-select { min-width: 100%; max-width: 100%; }
    .compare-cols-2 .compare-row { grid-template-columns: 90px 1fr 1fr; }
    .compare-cols-3 .compare-row { grid-template-columns: 90px 1fr 1fr 1fr; }
    .compare-label { font-size: 0.62rem; }
}

.section-sub { font-size: 0.82rem; color: var(--text-3); margin-top: -14px; margin-bottom: 18px; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cta-link { color: #4a4a52; text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: opacity 0.2s; border-bottom: 1px solid #d0cdc6; padding-bottom: 2px; }
.cta-link:hover { opacity: 0.7; color: #1a1a1a; border-color: #1a1a1a; }

/* === UNDERPERFORMANCE ALERT === */
.underperform-alert {
    padding: 18px 20px; margin-bottom: 12px;
    background: #fffbf5; border: 1px solid #f0dcc0;
    border-left: 3px solid var(--amber);
    border-radius: var(--radius-sm);
}
.underperform-alert.severe { background: #fff8f8; border-color: #f0c8c8; border-left-color: var(--red); }
.underperform-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.underperform-icon { font-size: 1.2rem; flex-shrink: 0; }
.underperform-header strong { font-size: 0.85rem; display: block; margin-bottom: 2px; }
.underperform-header p { font-size: 0.75rem; color: var(--text-3); margin: 0; }
.underperform-bars {
    display: flex; gap: 8px; align-items: flex-end; height: 70px;
    padding-top: 10px;
}
.qbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.qbar-fill { width: 100%; max-width: 28px; border-radius: 3px 3px 0 0; transition: height 0.4s ease; min-height: 4px; }
.qbar-pos { background: var(--green); opacity: 0.7; }
.qbar-neg { background: var(--red); opacity: 0.6; }
.qbar-label { font-size: 0.55rem; color: var(--text-3); margin-top: 4px; }
.qbar-val { font-size: 0.6rem; font-weight: 600; position: absolute; top: -14px; }

/* === PORTFOLIO LAYOUT === */
.portfolio-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.portfolio-main { min-width: 0; }
.portfolio-sidebar { position: sticky; top: 80px; }

.portfolio-cta-card {
    padding: 28px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.portfolio-cta-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-cta-card p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 12px; }
.portfolio-benefits { list-style: none; margin-bottom: 18px; }
.portfolio-benefits li { font-size: 0.82rem; color: var(--text-2); padding: 6px 0; padding-left: 20px; position: relative; }
.portfolio-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.sidebar-card {
    padding: 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px;
}
.sidebar-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.sidebar-desc { font-size: 0.72rem; color: var(--text-3); margin-bottom: 14px; }

.prefs-list {}
.pref-row-compact {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.pref-row-compact:last-child { border-bottom: none; }
.pref-row-compact strong { font-size: 0.78rem; display: block; }
.pref-row-compact span { font-size: 0.65rem; color: var(--text-3); }

.notif-list-compact { display: flex; flex-direction: column; gap: 8px; }
.notif-item-compact { display: flex; gap: 8px; align-items: flex-start; }
.notif-title-compact { font-size: 0.75rem; font-weight: 600; }
.notif-detail-compact { font-size: 0.65rem; color: var(--text-3); }

@media (max-width: 768px) {
    .portfolio-layout { grid-template-columns: 1fr; }
    .portfolio-sidebar { position: static; }
}

/* === PORTFOLIO ADD BAR === */
.portfolio-add-bar { position: relative; margin-bottom: 18px; }
.portfolio-search-input {
    width: 100%; padding: 12px 16px;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text);
    font-family: var(--font); outline: none; transition: border-color 0.2s;
}
.portfolio-search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.08); }
.portfolio-search-input::placeholder { color: var(--text-3); }

.portfolio-search-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; z-index: 50;
}
.portfolio-search-dropdown.active { display: block; }

.pf-search-item {
    padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.1s;
}
.pf-search-item:last-child { border-bottom: none; }
.pf-search-item:hover { background: var(--bg); }
.pf-search-name { font-weight: 600; font-size: 0.82rem; }
.pf-search-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 2px; }
.pf-search-add { font-size: 0.75rem; font-weight: 600; color: var(--blue); white-space: nowrap; }

.pref-inline-select {
    padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 0.65rem; font-family: var(--font); background: var(--bg);
    color: var(--text); cursor: pointer; outline: none; margin: 0 2px;
}

.notif-item-compact { position: relative; }
.notif-content { flex: 1; min-width: 0; }
.notif-dismiss {
    width: 20px; height: 20px; border-radius: 50%; border: none;
    background: none; color: var(--text-3); font-size: 0.65rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.notif-dismiss:hover { background: var(--red-bg); color: var(--red); }

/* === PORTFOLIO TABLE === */
.portfolio-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.portfolio-table { width: 100%; border-collapse: collapse; }
.portfolio-table th {
    font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 600; text-align: left; padding: 12px 14px; background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.portfolio-table td { padding: 14px 14px; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.portfolio-table tr:last-child td { border-bottom: none; }
.portfolio-table tr:hover td { background: var(--bg); }

.pt-fund-name { font-weight: 600; font-size: 0.84rem; }
.pt-fund-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 1px; }
.pt-manager { font-size: 0.82rem; color: var(--text-2); }
.pt-score { font-weight: 600; }
.pt-return { font-weight: 700; }

.pt-status {
    font-size: 0.68rem; font-weight: 600; padding: 3px 8px;
    border-radius: 4px; white-space: nowrap;
}
.status-green { color: var(--green); background: var(--green-bg); }
.status-amber { color: var(--amber); background: var(--amber-bg); }
.status-red { color: var(--red); background: var(--red-bg); }

.btn-icon-sm {
    width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border);
    background: none; cursor: pointer; font-size: 0.65rem; color: var(--text-3);
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-icon-sm:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }

@media (max-width: 768px) {
    .portfolio-table th:nth-child(3), .portfolio-table td:nth-child(3),
    .portfolio-table th:nth-child(5), .portfolio-table td:nth-child(5) { display: none; }
}

.sidebar-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sidebar-title-row .sidebar-title { margin-bottom: 0; }
.btn-text-sm { background: none; border: none; color: var(--blue); font-size: 0.68rem; font-weight: 500; cursor: pointer; font-family: var(--font); }
.btn-text-sm:hover { text-decoration: underline; }
.notif-dismissed { opacity: 0.6; }
.notif-dismissed-date { font-size: 0.58rem; color: var(--text-3); margin-top: 2px; }
.text-muted-sm { font-size: 0.75rem; color: var(--text-3); }

.pt-manager-link { color: var(--blue); text-decoration: none; font-weight: 500; }
.pt-manager-link:hover { text-decoration: underline; }

.profile-tier-badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    padding: 4px 12px; border-radius: 4px;
}
.profile-tier-badge.tier-legendary { background: linear-gradient(135deg, #e8c84a, #c4a030, #e8c84a); color: #2a2000; }
.profile-tier-badge.tier-elite { background: linear-gradient(135deg, #d8dce5, #a8b0c0, #d8dce5); color: #2a2c30; }
.profile-tier-badge.tier-pro { background: linear-gradient(135deg, #e0b070, #c09050, #e0b070); color: #3a2810; }
.profile-tier-badge.tier-rising { background: #d0e4f5; color: #2a5a80; }

/* === FOOTER === */
.footer { background: #242220; color: #bbb8b2; margin-top: 60px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px 32px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 260px; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #f5f3f0; letter-spacing: -0.5px; margin-bottom: 8px; }
.footer-logo span { color: #6ba3d6; font-weight: 900; }
.footer-tagline { font-size: 0.82rem; color: #706c66; line-height: 1.5; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 0.68rem; font-weight: 600; color: #706c66; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer-col a { font-size: 0.8rem; color: #9a9690; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #f5f3f0; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { font-size: 0.68rem; color: #5a5650; }

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; gap: 28px; }
    .footer-links { gap: 28px; flex-wrap: wrap; }
}

/* === PAGE REFINEMENTS === */

/* Rankings — add subtle left border per tier and cleaner row styling */
.rank-row {
    background: var(--surface);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(248,250,252,0.5));
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.rank-row:nth-child(-n+3) { border-left: 3px solid; }
.rank-row:nth-child(1) { border-left-color: #d4af37; }
.rank-row:nth-child(2) { border-left-color: #8a919e; }
.rank-row:nth-child(3) { border-left-color: #a0522d; }
.rank-score-bar { background: #eef0f3; }

/* Compare — header and verdict refinement */
.compare-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 16px; box-shadow: var(--shadow); }
.compare-header-row { background: var(--bg); margin: -8px -16px 0; padding: 20px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.compare-divider { height: 1px; background: var(--border); margin: 4px -16px; }
.compare-verdict { background: var(--surface); box-shadow: var(--shadow); }

/* Profile sections — card-like containers */
.profile-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.profile-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); letter-spacing: -0.2px; }

/* Expand cards inside profile — remove double border */
.profile-section .expand-card { box-shadow: none; border-color: var(--border); }
.profile-section .expand-card:hover { box-shadow: none; background: var(--bg); }

/* Timeline refinement */
.timeline-item { padding-bottom: 18px; }
.timeline-year { font-size: 0.68rem; color: var(--text-3); font-weight: 600; letter-spacing: 0.3px; }
.timeline-event { font-size: 0.88rem; font-weight: 500; color: var(--text); margin-top: 3px; }

/* Fund table — zebra striping */
.fund-table tr:nth-child(even) td { background: var(--bg); }
.fund-table tr:hover td { background: #edf2f8 !important; }

/* Fund page hero — cleaner */
.fund-hero { background-image: linear-gradient(160deg, #ffffff 0%, #f8fafd 100%); }
.fund-key-facts { margin-top: 16px; }
.fund-fact { background: var(--bg); border: 1px solid var(--border); }
.fund-summary { margin-top: 16px; }

/* Portfolio table — status row highlights */
.portfolio-table tr:has(.status-red) { background: #fffbfb; }
.portfolio-table tr:has(.status-amber) { background: #fffdf7; }

/* Search dropdown — premium shadow */
.search-dropdown { box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04); }

/* Section titles on home */
.section-title { letter-spacing: -0.4px; }

/* Hero title refinement */
.hero h1 { color: #1a1a1a; }
.hero-sub { color: #5a5a62; }

/* Change cards — subtle left accent */
.change-card { border-left: 3px solid var(--amber); transition: all 0.2s; }
.change-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* === RANKINGS PAGE REDESIGN === */
.ranking-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 28px;
}
.ranking-stat-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; text-align: center; box-shadow: var(--shadow);
}
.ranking-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.ranking-stat-label { font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }

/* Podium */
.podium {
    display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px;
    align-items: end; margin-bottom: 32px; padding: 0 20px;
}
.podium-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 16px; text-align: center; cursor: pointer;
    box-shadow: var(--shadow); transition: all 0.25s;
    position: relative;
}
.podium-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.podium-1 { border-color: #d4af37; border-width: 2px; padding: 32px 16px; }
.podium-1 .podium-pos { color: #d4af37; }
.podium-1 .podium-score { color: #d4af37; }
.podium-2 { border-color: #8a919e; }
.podium-2 .podium-pos { color: #8a919e; }
.podium-2 .podium-score { color: #8a919e; }
.podium-3 { border-color: #a0522d; }
.podium-3 .podium-pos { color: #a0522d; }
.podium-3 .podium-score { color: #a0522d; }

.podium-crown { font-size: 1.2rem; margin-bottom: 4px; color: #d4af37; }
.podium-pos { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.podium-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.podium-amc { font-size: 0.7rem; color: var(--text-3); margin-bottom: 12px; }
.podium-score { font-size: 1.8rem; font-weight: 900; }
.podium-score-label { font-size: 0.58rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }

/* Rankings table */
.rankings-table-wrap {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.rankings-table { width: 100%; border-collapse: collapse; }
.rankings-table th {
    font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px;
    font-weight: 600; text-align: left; padding: 12px 14px; background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.rankings-table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.rankings-table tr:last-child td { border-bottom: none; }
.rankings-row { cursor: pointer; transition: background 0.15s; }
.rankings-row:hover td { background: #f9f8f6; }

.rk-pos { font-weight: 700; color: var(--text-3); width: 36px; }
.rk-name { font-weight: 600; font-size: 0.85rem; }
.rk-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 1px; }
.rk-score { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.rk-score-bar { width: 60px; height: 6px; background: #ece9e4; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.rk-score-fill { height: 100%; border-radius: 3px; }
.rk-score-num { font-weight: 700; font-size: 0.85rem; min-width: 24px; }
.rk-tier { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.rk-aum { font-size: 0.82rem; color: var(--text-2); }
.rk-funds { font-weight: 600; text-align: center; }
.rk-trend { text-align: center; font-size: 0.82rem; }

@media (max-width: 768px) {
    .podium { grid-template-columns: 1fr; gap: 10px; }
    .podium-1 { order: -1; }
    .ranking-stats { grid-template-columns: repeat(2, 1fr); }
    .rankings-table th:nth-child(5), .rankings-table td:nth-child(5),
    .rankings-table th:nth-child(6), .rankings-table td:nth-child(6) { display: none; }
}

/* === TYPOGRAPHY & COLOR PREMIUM PASS === */

/* Global text refinements */
body { letter-spacing: -0.01em; }
h1, h2, h3, .page-title, .section-title, .profile-name, .fund-name, .fund-title {
    color: #111;
    letter-spacing: -0.025em;
}

/* Page titles */
.page-title { font-size: 1.6rem; font-weight: 800; color: #111; letter-spacing: -0.03em; }
.page-sub { font-size: 0.88rem; color: #6b6b74; line-height: 1.6; }

/* Section titles */
.section-title { font-size: 1.2rem; font-weight: 700; color: #222; }

/* Body text consistency */
.hero-sub, .profile-summary, .fund-summary p, .portfolio-cta-card p, .sidebar-desc, .desc {
    color: #5a5a62; line-height: 1.65; font-size: 0.88rem;
}

/* Muted/secondary text */
.m-card-amc, .change-date, .modal-sub, .profile-meta, .fund-cat, .pt-fund-meta,
.portfolio-fund-cat, .pf-search-meta, .footer-tagline, .rank-meta, .rk-meta,
.podium-amc, .timeline-year, .fund-category {
    color: #8a8a93;
    font-size: 0.72rem;
}

/* Links — consistent blue */
a { color: #2563eb; }
.profile-back { color: #2563eb; font-weight: 500; }
.pt-manager-link { color: #2563eb; }
.cta-link { color: #2563eb; }

/* Score/value numbers — always sharp */
.podium-score, .ranking-stat-value, .profile-stat-value, .fund-fact-value,
.rk-score-num, .m-card-stat-value {
    font-feature-settings: 'tnum'; /* tabular numbers */
}

/* Positive/negative — refined colors */
.positive { color: #16864a !important; }
.negative { color: #c03030 !important; }

/* Change cards — cleaner text */
.change-fund { font-weight: 700; font-size: 0.88rem; color: #222; }
.change-detail { font-size: 0.8rem; color: #5a5a62; }
.change-detail strong { color: #222; }
.change-date { font-size: 0.68rem; color: #9a9aa3; font-weight: 500; }

/* Modal text */
.modal-name, .modal-title { color: #111; letter-spacing: -0.02em; }
.modal-fund-name { color: #222; font-weight: 600; }
.modal-fund-cat { color: #8a8a93; }

/* Expand cards */
.expand-title { font-weight: 600; color: #222; font-size: 0.9rem; }
.expand-body { color: #5a5a62; font-size: 0.84rem; line-height: 1.6; }

/* Profile page */
.profile-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.fund-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: #111; }

/* Rankings */
.rk-name { color: #1a1a1a; }
.podium-name { color: #1a1a1a; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }

/* Portfolio table */
.pt-fund-name { color: #1a1a1a; font-weight: 600; }
.pt-score { color: #333; }

/* Compare page */
.compare-val { font-weight: 700; color: #222; }
.compare-header-name { font-weight: 700; color: #1a1a1a; font-size: 0.88rem; }
.compare-header-amc { color: #8a8a93; }

/* Nav links */
.nav-link { color: #6b6b74; font-weight: 500; font-size: 0.82rem; }
.nav-link:hover, .nav-link.active { color: #1a1a1a; }

/* Buttons - slightly more refined */
.btn-primary { font-weight: 600; letter-spacing: 0.01em; }
.rank-filter { font-weight: 500; }
.rank-filter.active { font-weight: 600; }

/* Fund page fact labels */
.fund-fact-label, .portfolio-stat-label, .m-card-stat-label, .ranking-stat-label,
.podium-score-label, .profile-stat-label {
    font-size: 0.6rem; font-weight: 600; color: #9a9aa3;
    text-transform: uppercase; letter-spacing: 0.6px;
}

/* Scrollbar refinement */
::-webkit-scrollbar-thumb { background: #d4d0ca; }

/* === PORTFOLIO PAGE TEXT FIX === */
.portfolio-cta-card h3 { color: #1a1a1a; font-weight: 700; }
.portfolio-cta-card p { color: #5a5a62; }
.portfolio-benefits li { color: #4a4a52; }
.portfolio-benefits li::before { color: #2d7a4a; }

.sidebar-title { color: #222; }
.sidebar-desc { color: #8a8a93; }
.pref-row-compact strong { color: #333; font-size: 0.8rem; }
.pref-row-compact span { color: #8a8a93; font-size: 0.66rem; }

.pt-fund-name { color: #1a1a1a; }
.pt-fund-meta { color: #8a8a93; }
.pt-manager-link { color: #2563eb; font-size: 0.82rem; }
.pt-score { color: #333; font-weight: 600; }
.pt-return { font-weight: 700; }
.pt-status { font-size: 0.66rem; }

.portfolio-search-input::placeholder { color: #a0a0a8; }
.pf-search-name { color: #222; }
.pf-search-meta { color: #8a8a93; }
.pf-search-add { color: #2563eb; font-size: 0.72rem; }

.notif-title-compact { color: #333; font-size: 0.76rem; }
.notif-detail-compact { color: #7a7a84; font-size: 0.66rem; }

.alert-banner { color: #5a4a20; font-size: 0.8rem; }
.alert-banner strong { color: #3a3010; }

.empty-state h3 { color: #333; font-size: 1rem; }
.empty-state p { color: #7a7a84; font-size: 0.84rem; }

/* === FINAL CONSISTENCY PASS === */

/* Hero — ensure not too bright */
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: #151515; }

/* Search results */
.search-item-name { color: #222; font-weight: 600; }
.search-item-sub { color: #8a8a93; }
.search-item-icon { color: #8a8a93; font-size: 0.8rem; }

/* Scroll arrows */
.scroll-arrow { color: #5a5a62; }
.scroll-arrow:hover { color: #fff; }

/* Expand arrow */
.expand-arrow { color: #8a8a93; }

/* Fund table in profile */
.fund-table td { color: #333; }
.fund-table td strong { color: #1a1a1a; }
.fund-table .text-muted { color: #8a8a93 !important; font-size: 0.68rem; }

/* Timeline */
.timeline-event { color: #2a2a2a; }
.timeline-year { color: #8a8a93; }

/* Underperformance alert */
.underperform-header strong { color: #4a3a10; }
.underperform-header p { color: #7a6a40; }

/* Compare page values */
.compare-val { color: #1a1a1a; font-size: 0.86rem; }
.compare-winner { color: #16864a !important; }

/* Auth modal */
.auth-title { color: #111; }
.auth-sub { color: #6b6b74; }
.auth-input { color: #1a1a1a; }
.auth-input::placeholder { color: #a0a0a8; }
.auth-toggle { color: #8a8a93; }

/* Toast */
.toast { background: #222; }

/* Rankings table header */
.rankings-table th { color: #8a8a93; }
.rk-pos { color: #8a8a93; font-size: 0.9rem; }
.rk-aum { color: #4a4a52; }

/* Footer copyright */
.footer-bottom p { color: #5a5550; }

/* Fix CTA link override */
a.cta-link { color: #4a4a52; border-bottom: 1px solid #d0cdc6; padding-bottom: 2px; }
a.cta-link:hover { color: #1a1a1a; border-color: #1a1a1a; opacity: 1; }

/* === RANKINGS PREMIUM TOUCHES === */

/* Stat cards - subtle gradient */
.ranking-stat-item {
    background: linear-gradient(160deg, #fff 0%, #faf9f7 100%);
    border-color: #e8e5e0;
}
.ranking-stat-value { color: #222; }

/* Podium cards - tier-specific premium feel */
.podium-1 {
    background: linear-gradient(160deg, #fffdf5 0%, #faf5e8 100%);
    border-color: #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.08), var(--shadow);
}
.podium-1 .podium-score { background: linear-gradient(135deg, #d4af37, #b8960c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.podium-2 {
    background: linear-gradient(160deg, #fafbfd 0%, #f4f5f8 100%);
    border-color: #a0a8b4;
    box-shadow: 0 4px 12px rgba(120, 130, 145, 0.06), var(--shadow);
}

.podium-3 {
    background: linear-gradient(160deg, #fdfaf7 0%, #f8f4f0 100%);
    border-color: #b8885a;
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.06), var(--shadow);
}

/* Podium position numbers - metallic feel */
.podium-1 .podium-pos { background: linear-gradient(135deg, #d4af37, #aa8820); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.podium-2 .podium-pos { background: linear-gradient(135deg, #8a919e, #6a7080); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.podium-3 .podium-pos { background: linear-gradient(135deg, #b8885a, #8a6240); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Podium crown */
.podium-crown { color: #d4af37; text-shadow: 0 1px 3px rgba(212,175,55,0.3); }

/* Rankings table - alternating subtle tints */
.rankings-row:nth-child(odd) td { background: rgba(0,0,0,0.008); }
.rankings-row:hover td { background: #f5f3f0 !important; }

/* Score bar in table - warmer track */
.rk-score-bar { background: #ece9e4; }

/* Tier text with visible background */
.rk-tier {
    padding: 3px 10px; border-radius: 4px; font-size: 0.62rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.rk-tier-legendary { background: #f0e2a8; color: #5a4a0a; }
.rk-tier-elite { background: #d8dce6; color: #3a4050; }
.rk-tier-pro { background: #f0dcc0; color: #5a3e18; }
.rk-tier-rising { background: #cce0f2; color: #1a4a70; }

/* Trend arrows with subtle bg */
.rk-trend.trend-up { color: #16864a; background: rgba(22,134,74,0.06); padding: 2px 6px; border-radius: 4px; }
.rk-trend.trend-down { color: #c03030; background: rgba(192,48,48,0.05); padding: 2px 6px; border-radius: 4px; }

/* Filter pills - more contrast on active */
.rank-filter.active { background: #222; color: #fff; border-color: #222; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

/* Page title underline accent */
.page-title { position: relative; display: inline-block; }
.page-title::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 32px; height: 3px; background: linear-gradient(90deg, #d4af37, #e8c84a);
    border-radius: 2px;
}

/* === INFO PAGES === */
.info-page { max-width: 100%; }
.info-title { font-size: 1.3rem; font-weight: 800; color: #111; margin-bottom: 16px; letter-spacing: -0.03em; }
.info-body h3 { font-size: 0.92rem; font-weight: 700; color: #222; margin: 18px 0 8px; }
.info-body p { font-size: 0.84rem; color: #4a4a52; line-height: 1.7; margin-bottom: 10px; }
.info-body ul { list-style: none; margin: 8px 0 14px; padding: 0; }
.info-body ul li { font-size: 0.84rem; color: #4a4a52; line-height: 1.6; padding: 5px 0 5px 16px; position: relative; }
.info-body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #d4af37; }
.info-body ul li strong { color: #1a1a1a; }
.info-body em { color: #8a8a93; font-size: 0.8rem; }
#modalContent { max-width: 580px; }


/* === PORTFOLIO TABLE SHAREABLE === */
.portfolio-table-header { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.portfolio-table-header h3 { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; margin-bottom: 2px; }
.portfolio-table-header p { font-size: 0.72rem; color: #8a8a93; }

.pt-rating { }
.pt-rating-score { font-weight: 700; font-size: 0.88rem; color: #1a1a1a; }
.pt-rating-tier { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.tier-color-legendary { color: #8a6d0a; }
.tier-color-elite { color: #4a5060; }
.tier-color-pro { color: #7a5520; }
.tier-color-rising { color: #2a6090; }

/* Health column — more descriptive */
.pt-status.status-green { background: #edf7f0; color: #16864a; padding: 4px 10px; }
.pt-status.status-amber { background: #fdf6e3; color: #9a7200; padding: 4px 10px; }
.pt-status.status-red { background: #fdf0f0; color: #b82020; padding: 4px 10px; }

/* === VALUE PREVIEW (Homepage) === */
.value-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.value-desc { font-size: 0.88rem; color: #5a5a62; line-height: 1.6; margin-bottom: 14px; }
.value-points { list-style: none; margin-bottom: 20px; }
.value-points li { font-size: 0.84rem; color: #4a4a52; padding: 6px 0 6px 18px; position: relative; line-height: 1.5; }
.value-points li::before { content: '→'; position: absolute; left: 0; color: #3b82f6; font-weight: 600; }

.preview-table-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0; overflow: hidden; box-shadow: var(--shadow-md);
}
.preview-table-header { padding: 12px 16px; background: #f9f8f6; border-bottom: 1px solid var(--border); font-size: 0.7rem; font-weight: 600; color: #8a8a93; text-transform: uppercase; letter-spacing: 0.5px; }
.preview-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.preview-row:last-child { border-bottom: none; }
.preview-fund { font-size: 0.82rem; font-weight: 600; color: #1a1a1a; }
.preview-health { font-size: 0.68rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; }
.preview-green { background: #edf7f0; color: #16864a; }
.preview-amber { background: #fdf6e3; color: #9a7200; }
.preview-red { background: #fdf0f0; color: #b82020; }

@media (max-width: 768px) { .value-preview { grid-template-columns: 1fr; } }

/* === PORTFOLIO DUMMY DATA === */
.portfolio-dummy { opacity: 0.5; pointer-events: none; position: relative; }
.portfolio-dummy::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(247,246,243,0.8) 100%);
    pointer-events: none; border-radius: var(--radius);
}
.dummy-label {
    text-align: center; padding: 14px; font-size: 0.82rem; color: #5a5a62;
    background: #f5f3f0; border: 1px dashed var(--border); border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.dummy-label strong { color: #1a1a1a; }

/* === FIXES === */
.section-sub { color: #5a5a62 !important; font-size: 0.84rem !important; }

/* Podium cards - smaller and with darker shading */
.podium-card { padding: 18px 14px; }
.podium-1 { padding: 22px 14px; background: linear-gradient(160deg, #fdfaf2, #f5edd8); }
.podium-2 { background: linear-gradient(160deg, #f6f7fa, #eceef4); }
.podium-3 { background: linear-gradient(160deg, #fbf8f4, #f3ece4); }
.podium-pos { font-size: 1.6rem; margin-bottom: 6px; }
.podium-score { font-size: 1.4rem; }
.podium-name { font-size: 0.85rem; }
