/* ===== Member Panel Layout ===== */
.mlm-member-app {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(16,185,129,0.08), transparent 40%),
        radial-gradient(circle at 95% 5%, rgba(59,130,246,0.08), transparent 35%),
        #f5f7fb;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Sidebar */
.mlm-sidebar {
    width: 280px;
    padding: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
}

.mlm-sidebar__panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.98)),
        linear-gradient(135deg, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

.mlm-sidebar__brand {
    padding: 8px 8px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    margin-bottom: 14px;
}

.mlm-sidebar__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #93c5fd;
    margin-bottom: 6px;
    font-weight: 700;
}

.mlm-sidebar__brand h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.mlm-sidebar__brand p {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

.mlm-sidebar__nav {
    overflow: auto;
}

.mlm-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mlm-nav li {
    margin-bottom: 6px;
}

.mlm-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.mlm-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(2px);
}

.mlm-nav a.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.28), rgba(16,185,129,0.18));
    color: #fff;
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* Content */
.mlm-content {
    flex: 1;
    padding: 28px 28px 34px;
    min-width: 0;
}

.mlm-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Cards Grid */
.mlm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mlm-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.mlm-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.mlm-metric {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
}

.mlm-muted {
    color: #64748b;
    font-size: 13px;
}

/* Progress */
.mlm-progress {
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    margin-top: 8px;
}

.mlm-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #22c55e);
    width: 0%;
}

/* Responsive */
@media (max-width: 900px) {
    .mlm-member-app {
        flex-direction: column;
    }
    .mlm-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 12px 12px 0;
    }
    .mlm-sidebar__panel {
        height: auto;
        padding: 12px;
        border-radius: 16px;
    }
    .mlm-sidebar__brand {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .mlm-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .mlm-nav li {
        margin: 0;
    }
    .mlm-nav a {
        padding: 10px;
        text-align: center;
    }
}
.member-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.member-widgets-grid .widget {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    position: relative;
}

.member-widgets-grid .widget h4 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.member-widgets-grid .widget .big {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.member-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
}

.member-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #0f172a;
}

.member-card ul {
    padding-left: 18px;
}

.member-card ul li {
    margin-bottom: 8px;
    color: #334155;
}
.progress-bar {
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    height: 14px;
    margin: 10px 0;
}
.progress-fill {
    background: linear-gradient(90deg, #6366f1, #22c55e);
    height: 100%;
    transition: width 0.5s ease;
}

.widget.highlight {
    background: linear-gradient(135deg, #6366f1, #22c55e);
    color: #fff;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
}
.member-table th, .member-table td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.widget.green { background:#ecfdf5; border-left:5px solid #10b981; }
.widget.yellow { background:#fffbeb; border-left:5px solid #f59e0b; }
.widget.gray { background:#f8fafc; border-left:5px solid #64748b; }

.member-table { width:100%; border-collapse:collapse; }
.member-table th, .member-table td { padding:10px; border-bottom:1px solid #e5e7eb; }

.badge.success {
    background:#dcfce7;
    color:#166534;
    padding:4px 8px;
    border-radius:6px;
    font-size:12px;
}
