/**
 * Member Central — panel-specific layout (all site *_member_central.php entries).
 * Mobile layout/stacking is handled by aeris_panel_chrome.css; this file adds member UI only.
 */

body.panel-chrome.member-shell-theme {
    background-color: #050505 !important;
    color: #fff !important;
}

.member-shell.ac-panel-page {
    padding-bottom: 0 !important;
    padding-top: 10px !important;
}

.member-shell .card-inner {
    background: rgba(12, 19, 40, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.member-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.member-stat {
    text-align: center;
    padding: 24px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.member-stat:hover {
    transform: translateY(-5px);
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
}

.member-stat .stat-icon {
    font-size: 2.2rem;
    color: #22d3ee;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.4));
}

.member-stat .stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.member-shell .ac-sidebar-card {
    background: rgba(12, 19, 40, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 16px;
    box-sizing: border-box;
    width: 100%;
}

.member-shell .ac-sidebar-card h3 {
    margin: 0 0 12px;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.member-shell .panel-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 4px;
    transition: 0.2s;
}

.member-shell .panel-nav:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.member-shell .member-hub-sidebar {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.member-shell .member-nav-group-title {
    margin: 18px 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22d3ee;
}

.member-shell .member-nav-group-title:first-child {
    margin-top: 0;
}

/* Desktop layout width cap — mobile overridden by aeris_panel_chrome.css */
@media (min-width: 993px) {
    .member-shell .ac-layout-shell {
        display: grid;
        grid-template-columns: var(--aeris-sidebar-w) 1fr;
        gap: var(--aeris-rail-gap);
        width: 100%;
        margin: 0 auto;
        max-width: 1600px;
        padding: 0 10px;
    }

    .member-shell #apf-panel-footer-strip.apf-shell {
        display: grid !important;
        grid-template-columns: var(--aeris-sidebar-w) 1fr var(--aeris-sidebar-w) !important;
        column-gap: var(--aeris-rail-gap) !important;
        padding: 20px var(--aeris-shell-pad-inline) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(10, 10, 15, 0.98) !important;
        border: 1px solid var(--aeris-chrome-border) !important;
        margin-top: 30px !important;
        margin-bottom: 5px !important;
    }

    .member-shell #apf-panel-footer-strip .apf-footer-col {
        grid-column: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* Member Central — mobile density */
@media (max-width: 768px) {
    .member-shell .member-hero-mini {
        margin-bottom: 8px;
    }

    .member-shell .member-hero-mini h2 {
        font-size: var(--aeris-m-fs-heading, 1rem);
        margin-bottom: 4px;
    }

    .member-shell .member-hero-mini p {
        font-size: var(--aeris-m-fs-small, 0.6875rem);
        margin-bottom: 8px !important;
    }

    .member-shell .member-vault-heading {
        border-left-width: 3px !important;
        padding-left: 10px !important;
        margin-bottom: 8px !important;
    }

    .member-shell .member-vault-heading h3 {
        font-size: var(--aeris-m-fs-body, 0.8125rem);
        margin-bottom: 2px;
    }

    .member-shell .member-vault-heading p {
        font-size: var(--aeris-m-fs-small, 0.6875rem);
    }

    .member-shell .card-inner h5 {
        font-size: var(--aeris-m-fs-body, 0.8125rem) !important;
    }

    .member-shell .member-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
    }

    .member-shell .member-table-wrap .table {
        font-size: var(--aeris-m-fs-small, 0.6875rem);
        margin-bottom: 0;
        min-width: 480px;
    }

    .member-shell .member-table-wrap .table th,
    .member-shell .member-table-wrap .table td {
        padding: 0.35rem 0.5rem;
        white-space: nowrap;
    }

    .member-shell .member-table-wrap .py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .member-shell .member-table-wrap .py-5 i {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .member-shell .member-hero-mini p {
        display: none;
    }

    .member-shell .member-table-wrap .table {
        min-width: 420px;
    }
}
