/* Homepage-specific layout for Bright Market Lab (guest trading + sections) */

.market-stats {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #0F172A 0%, #134E4A 60%, #0F766E 100%);
    color: #fff;
}

body.page-home .market-stats.above-fold {
    padding: 1.5rem 0 1.75rem;
}

body.page-home .market-stats.above-fold .section-title {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    text-align: left;
    margin-bottom: 0.25rem;
}

body.page-home .market-stats.above-fold .section-lead {
    text-align: left;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

body.page-home .market-stats.above-fold .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

body.page-home .market-stats.above-fold .stat-card {
    padding: 0.85rem 0.75rem;
    text-align: left;
}

body.page-home .market-stats.above-fold .stat-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

body.page-home .market-stats.above-fold .stat-card p {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

body.page-home .market-stats.above-fold .stat-card small {
    font-size: 0.75rem;
}

body.page-home .market-stats.above-fold .stat-icon {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

body.page-home .market-stats.above-fold .learning-cta {
    display: none;
}

@media (max-width: 991.98px) {
    body.page-home .market-stats.above-fold .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    body.page-home .market-stats.above-fold .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.market-stats .section-title {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.stat-card p {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.5rem;
    color: #5EEAD4;
    margin-bottom: 0.5rem;
}

.recent-additions {
    padding: 3.5rem 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.9);
}

.recent-additions h2 {
    color: #fff;
}

.addition-item {
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.15rem;
    height: 100%;
}

.addition-item h5 {
    color: #fff;
    font-size: 1rem;
}

.addition-item p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Guest trading floating summary */
.portfolio-summary,
#portfolioSummary {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1040;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    min-width: 220px;
}

.broker-pitch-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--brand);
    color: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 350px;
    z-index: 1060;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s ease;
}

.broker-pitch-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.hero-broker-slot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 0;
}

.hero-lab .broker-badge {
    width: 100%;
    max-width: 340px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    animation: heroFade 0.7s ease 0.2s both;
}

.hero-lab .broker-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    color: var(--ink);
}

.hero-lab .broker-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.hero-lab .broker-name-info {
    flex: 1;
    min-width: 0;
}

.hero-lab .broker-name-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.hero-lab .broker-name-info small,
.hero-lab .broker-motto,
.hero-lab .broker-stats {
    color: var(--ink-muted) !important;
}

.hero-lab .broker-fee {
    text-align: right;
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}

.hero-lab .broker-fee small {
    display: block;
    font-weight: 500;
    color: var(--ink-muted);
}

.hero-lab .broker-motto {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.hero-lab .broker-stats {
    font-size: 0.75rem;
}

.broker-card {
    background: var(--canvas);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--border);
}

.trade-modal-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .hero-broker-slot {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .hero-lab .broker-badge {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .broker-pitch-notification {
        top: 72px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-80px);
    }

    .broker-pitch-notification.show {
        transform: translateY(0);
    }

    .portfolio-summary,
    #portfolioSummary {
        left: 1rem;
        right: 1rem;
        min-width: 0;
    }
}
