﻿:root {
    --mm-investor-bg: #020805;
    --mm-investor-bg-soft: #07130b;
    --mm-investor-card: rgba(8, 22, 13, 0.96);
    --mm-investor-card-soft: rgba(13, 31, 19, 0.82);
    --mm-investor-border: rgba(178, 237, 31, 0.18);
    --mm-investor-border-strong: rgba(178, 237, 31, 0.42);
    --mm-investor-lime: #b2ed1f;
    --mm-investor-lime-hover: #c7ff38;
    --mm-investor-white: #f5f8f4;
    --mm-investor-muted: #9ba89e;
    --mm-investor-success: #35d886;
    --mm-investor-warning: #f5c451;
    --mm-investor-danger: #ff6b6b;
    --mm-investor-shadow: 0 28px 75px rgba(0, 0, 0, 0.38);
}

/* Main dashboard background */
.mm-investor-dashboard {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 64px 0 80px;
    overflow: hidden;
    color: var(--mm-investor-white);
    background: radial-gradient( circle at 12% 12%, rgba(178, 237, 31, 0.11), transparent 30% ), radial-gradient( circle at 88% 82%, rgba(39, 126, 67, 0.14), transparent 34% ), linear-gradient( 145deg, var(--mm-investor-bg) 0%, var(--mm-investor-bg-soft) 50%, #010503 100% );
}

    .mm-investor-dashboard::before {
        position: absolute;
        inset: 0;
        pointer-events: none;
        content: "";
        opacity: 0.15;
        background-image: linear-gradient( rgba(178, 237, 31, 0.05) 1px, transparent 1px ), linear-gradient( 90deg, rgba(178, 237, 31, 0.05) 1px, transparent 1px );
        background-size: 46px 46px;
    }

    .mm-investor-dashboard > .container {
        position: relative;
        z-index: 1;
    }

/* Dashboard header */
.mm-investor-dashboard-header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mm-investor-dashboard-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--mm-investor-lime);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mm-investor-dashboard-title {
    margin: 0 0 8px;
    color: var(--mm-investor-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.mm-investor-dashboard-copy {
    max-width: 650px;
    margin: 0;
    color: var(--mm-investor-muted);
    line-height: 1.7;
}

/* Investor ID card */
.mm-investor-code-card {
    min-width: 230px;
    padding: 20px 24px;
    border: 1px solid var(--mm-investor-border-strong);
    border-radius: 18px;
    background: linear-gradient( 145deg, rgba(178, 237, 31, 0.1), rgba(178, 237, 31, 0.025) );
    box-shadow: var(--mm-investor-shadow);
}

    .mm-investor-code-card small {
        display: block;
        margin-bottom: 7px;
        color: var(--mm-investor-muted);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .mm-investor-code-card strong {
        color: var(--mm-investor-lime);
        font-size: 1.15rem;
        letter-spacing: 0.035em;
    }

/* Summary cards */
.mm-investor-summary-card {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--mm-investor-border);
    border-radius: 20px;
    background: linear-gradient( 145deg, rgba(13, 31, 19, 0.96), rgba(5, 15, 9, 0.96) );
    box-shadow: var(--mm-investor-shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

    .mm-investor-summary-card:hover {
        border-color: var(--mm-investor-border-strong);
        box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
        transform: translateY(-4px);
    }

.mm-investor-summary-content {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.mm-investor-summary-label {
    display: block;
    margin-bottom: 10px;
    color: var(--mm-investor-muted);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mm-investor-summary-value {
    margin: 0;
    color: var(--mm-investor-white);
    font-size: 1.3rem;
    font-weight: 800;
}

    .mm-investor-summary-value.is-success {
        color: var(--mm-investor-success);
    }

.mm-investor-summary-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--mm-investor-border-strong);
    border-radius: 15px;
    color: var(--mm-investor-lime);
    background: rgba(178, 237, 31, 0.07);
}

    .mm-investor-summary-icon i {
        font-size: 1.35rem;
    }

/* Main portfolio card */
.mm-investor-portfolio-card {
    margin-top: 26px;
    padding: 44px;
    border: 1px solid var(--mm-investor-border);
    border-radius: 24px;
    background: linear-gradient( 145deg, rgba(13, 31, 19, 0.97), rgba(4, 13, 7, 0.97) );
    box-shadow: var(--mm-investor-shadow);
}

.mm-investor-empty-state {
    max-width: 700px;
    margin: 0 auto;
    padding: 35px 15px;
    text-align: center;
}

.mm-investor-empty-icon {
    display: inline-grid;
    width: 82px;
    height: 82px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid var(--mm-investor-border-strong);
    border-radius: 24px;
    color: var(--mm-investor-lime);
    background: rgba(178, 237, 31, 0.07);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

    .mm-investor-empty-icon i {
        font-size: 2.3rem;
    }

.mm-investor-empty-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--mm-investor-lime);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mm-investor-empty-title {
    margin-bottom: 12px;
    color: var(--mm-investor-white);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.mm-investor-empty-copy {
    margin-bottom: 25px;
    color: var(--mm-investor-muted);
    line-height: 1.75;
}

/* Dashboard buttons */
.mm-investor-primary-button {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--mm-investor-lime);
    border-radius: 12px;
    color: #071006;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--mm-investor-lime), #8fc900 );
    box-shadow: 0 16px 35px rgba(178, 237, 31, 0.13);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .mm-investor-primary-button:hover,
    .mm-investor-primary-button:focus {
        border-color: var(--mm-investor-lime-hover);
        color: #020602;
        background: linear-gradient( 135deg, var(--mm-investor-lime-hover), #9fdb09 );
        box-shadow: 0 20px 44px rgba(178, 237, 31, 0.2);
        transform: translateY(-2px);
    }

/* Bottom information cards */
.mm-investor-info-card {
    height: 100%;
    margin-top: 26px;
    padding: 26px;
    border: 1px solid var(--mm-investor-border);
    border-radius: 20px;
    background: var(--mm-investor-card);
    box-shadow: var(--mm-investor-shadow);
}

.mm-investor-info-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 18px;
}

.mm-investor-info-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--mm-investor-border-strong);
    border-radius: 14px;
    color: var(--mm-investor-lime);
    background: rgba(178, 237, 31, 0.06);
}

    .mm-investor-info-icon i {
        font-size: 1.25rem;
    }

.mm-investor-info-header h2 {
    margin: 0 0 3px;
    color: var(--mm-investor-white);
    font-size: 1.1rem;
    font-weight: 800;
}

.mm-investor-info-header p {
    margin: 0;
    color: var(--mm-investor-muted);
    font-size: 0.84rem;
}

.mm-investor-info-empty {
    padding: 24px;
    border: 1px dashed rgba(178, 237, 31, 0.2);
    border-radius: 14px;
    color: var(--mm-investor-muted);
    text-align: center;
    background: rgba(178, 237, 31, 0.025);
}

.mm-investor-info-copy {
    color: var(--mm-investor-muted);
    line-height: 1.7;
}

.mm-investor-secondary-button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--mm-investor-border-strong);
    border-radius: 11px;
    color: var(--mm-investor-white);
    font-weight: 700;
    background: rgba(178, 237, 31, 0.045);
}

    .mm-investor-secondary-button:hover,
    .mm-investor-secondary-button:focus {
        border-color: var(--mm-investor-lime);
        color: var(--mm-investor-lime);
        background: rgba(178, 237, 31, 0.09);
    }

/* Responsive */
@media (max-width: 991.98px) {
    .mm-investor-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mm-investor-code-card {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .mm-investor-dashboard {
        padding: 38px 0 60px;
    }

    .mm-investor-dashboard-title {
        font-size: 2rem;
    }

    .mm-investor-portfolio-card {
        padding: 26px 18px;
        border-radius: 20px;
    }

    .mm-investor-summary-card,
    .mm-investor-info-card {
        padding: 21px;
    }

    .mm-investor-empty-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

        .mm-investor-empty-icon i {
            font-size: 1.9rem;
        }
}

/* =========================================================
   INVESTOR DASHBOARD - LAYOUT REFINEMENT
========================================================= */

.mm-investor-dashboard-page {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

/* Header */
.mm-investor-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

    .mm-investor-dashboard-header > div:first-child {
        max-width: 760px;
    }

.mm-investor-code-card {
    min-width: 230px;
    flex-shrink: 0;
}

/* Summary cards */
.mm-investor-summary-card {
    height: 100%;
    min-height: 118px;
}

.mm-investor-summary-content {
    height: 100%;
    align-items: center;
}

/* Active investment outer section */
.mm-investor-portfolio-card {
    margin-top: 28px;
    padding: 32px;
}

    /* Investment cards */
    .mm-investor-portfolio-card .mm-investor-info-card {
        padding: 26px;
        min-height: 285px;
    }

    .mm-investor-portfolio-card .row {
        align-items: stretch;
    }

    /* Keep values aligned */
    .mm-investor-portfolio-card .col-6 {
        min-height: 58px;
    }

/* Bottom cards */
.mm-investor-dashboard-page > .row:last-child {
    margin-top: 4px;
}

    .mm-investor-dashboard-page > .row:last-child
    .mm-investor-info-card {
        height: 100%;
        min-height: 245px;
    }

/* Tablet */
@media (max-width: 991.98px) {

    .mm-investor-dashboard-page {
        width: min(100% - 32px, 1440px);
    }

    .mm-investor-dashboard-header {
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 767.98px) {

    .mm-investor-dashboard-page {
        width: min(100% - 24px, 1440px);
        padding-top: 24px;
    }

    .mm-investor-dashboard-header {
        flex-direction: column;
        gap: 20px;
    }

    .mm-investor-code-card {
        width: 100%;
        min-width: 0;
    }

    .mm-investor-portfolio-card {
        padding: 20px;
    }
}

.mm-investor-portfolio-card .mm-investor-info-card {
    min-height: 0;
    height: auto;
    padding: 24px 26px;
}

    .mm-investor-portfolio-card .mm-investor-info-card .mb-4 {
        margin-bottom: 22px !important;
    }

    .mm-investor-portfolio-card .mm-investor-info-card .row {
        row-gap: 18px !important;
    }

.mm-investor-portfolio-card .col-6 {
    min-height: 0;
}