body.dashboard-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
body.dashboard-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 32px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.logo-subtitle:hover {
    color: var(--transcend-blue);
}

.logo-subtitle.active {
    color: var(--transcend-blue);
    font-weight: 600;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--transcend-blue);
}

.nav-link.active {
    color: var(--transcend-blue);
    font-weight: 600;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    background: url('/shared/hero-bg.jpg?v=2026.05.20.2') center 35% / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.85) 0%, rgba(30, 66, 120, 0.85) 100%);
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-contract,
.source-freshness {
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-left: 4px solid #1e3a8a;
    border-radius: 8px;
    background: #f8fafc;
}

.page-contract h2 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.page-contract p,
.source-freshness p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.access-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.access-summary > div {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
}

.access-label,
.source-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.access-summary span:last-child {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.source-freshness {
    margin-bottom: 36px;
    border-left-color: #0f766e;
    background: #f0fdfa;
}

/* Section Header with Filters */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.section-answer {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    border-color: var(--transcend-blue);
    color: var(--transcend-blue);
}

.filter-chip.active {
    background: var(--transcend-blue);
    border-color: var(--transcend-blue);
    color: white;
}

/* Tools Section */
.tools-section {
    margin-bottom: 48px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    max-width: 450px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    border-color: var(--transcend-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card.hidden {
    display: none;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--transcend-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

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

.tool-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-fundraising { background: #dbeafe; color: #1e40af; }
.tag-operations { background: var(--green-light); color: var(--metric-green); }
.tag-analytics { background: #fce7f3; color: #9d174d; }
.tag-deal-flow { background: #fef3c7; color: #92400e; }
.tag-lp-relations { background: #e0e7ff; color: #3730a3; }
.tag-admin { background: #f3f4f6; color: #374151; }
.tag-new { background: var(--amber-light); color: #92400e; }
.tag-research { background: #fae8ff; color: #86198f; }

/* Research Cards (smaller) */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.research-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.research-card:hover {
    border-color: var(--transcend-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.research-icon {
    width: 40px;
    height: 40px;
    background: var(--transcend-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.research-content {
    flex: 1;
    min-width: 0;
}

.research-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.research-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    display: none;
}

.empty-state.visible {
    display: block;
}

.auth-required-copy {
    margin: 20px 0;
    color: var(--text-secondary);
}

/* Footer */
body.dashboard-page .footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer a {
    color: var(--transcend-blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-line {
    margin-top: 8px;
}

.comments-empty-help {
    margin-top: 8px;
    font-size: 12px;
}

@media (max-width: 768px) {
    body.dashboard-page .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .logo-section > a:first-child {
        flex-basis: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-divider {
        display: none;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .filter-chips {
        justify-content: center;
    }

    .access-summary {
        grid-template-columns: 1fr;
    }
}

/* ==================== LUXURY LANDING PAGE (LOGGED OUT) ==================== */

/* Logged-out state: full-screen dark experience */
body.logged-out {
    background: transparent;
    max-width: none;
    box-shadow: none;
}

body.logged-out .container {
    display: none;
}

/* Access Denied modal - shows over landing page */
.access-denied:not(.hidden) {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 48px;
    text-align: center;
    color: #ffffff;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.access-denied:not(.hidden) h2 {
    color: #f87171;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.access-denied:not(.hidden) p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.denied-email {
    margin: 12px 0;
    font-size: 14px;
    opacity: 0.7;
}

.denied-copy {
    margin: 20px 0;
}

.denied-copy-small {
    font-size: 14px;
}

.denied-copy a {
    color: #60a5fa;
}

.denied-retry {
    margin-top: 16px;
    padding: 10px 24px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    background: #3b82f6;
    border: 0;
    border-radius: 8px;
}

.access-denied.hidden {
    display: none;
}

/* Landing particle canvas (full-screen, logged-out only) */
#landingParticleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: none;
}

body.logged-out #landingParticleCanvas {
    display: block;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    display: none;
}

body.logged-out .noise-overlay {
    display: block;
}

/* Auth pending state - hide everything until auth resolves */
body.auth-pending .landing-container,
body.auth-pending .container,
body.auth-pending .noise-overlay {
    display: none !important;
}

body.auth-pending #landingParticleCanvas {
    display: none;
}

/* Hide comments system when logged out or auth pending */
body.logged-out .comments-toggle,
body.logged-out .comments-sidebar,
body.logged-out .comments-mode-indicator,
body.logged-out .selection-tooltip,
body.logged-out .onboarding-banner,
body.auth-pending .comments-toggle,
body.auth-pending .comments-sidebar,
body.auth-pending .comments-mode-indicator,
body.auth-pending .selection-tooltip,
body.auth-pending .onboarding-banner {
    display: none !important;
}

/* Landing container */
.landing-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    padding: 0 24px;
    color: #ffffff;
}

body.logged-out .landing-container {
    display: flex;
}

/* Landing header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: fadeSlideDown 0.8s ease-out 0.2s forwards;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-logo-mark {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-logo-img {
    height: 32px;
    width: auto;
    filter: brightness(1.1);
}

.landing-logo-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.3), transparent);
}

.landing-logo-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9a962;
}

.landing-member-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* Hero content */
.landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9a962;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
}

.landing-badge-dot {
    width: 6px;
    height: 6px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

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

.landing-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
}

.landing-title .highlight {
    color: #c9a962;
    font-style: italic;
}

.landing-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.8s forwards;
}

.landing-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 1s forwards;
}

.landing-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.landing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.landing-btn-icon {
    width: 20px;
    height: 20px;
}

.landing-cta-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Stats bar */
.landing-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.landing-stat {
    text-align: center;
}

.landing-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.landing-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* Landing footer */
.landing-footer {
    text-align: center;
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.4s forwards;
}

.landing-footer span {
    margin: 0 8px;
    opacity: 0.5;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer a:hover {
    color: #c9a962;
}

/* Responsive for landing */
@media (max-width: 768px) {
    .landing-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .landing-logo-mark {
        flex-direction: column;
        gap: 8px;
    }

    .landing-logo-divider {
        width: 40px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    }

    .landing-stats {
        flex-wrap: wrap;
        gap: 32px;
    }

    .landing-stat {
        flex: 0 0 calc(50% - 16px);
    }

    .landing-title {
        font-size: 2.5rem;
    }
}
