:root {
    --aep-primary: #1b4332;
    --aep-primary-light: #2d6a4f;
    --aep-primary-dark: #0d2818;
    --aep-accent: #d4a017;
    --aep-accent-light: #f0c14b;
    --aep-bg: #f5f7f2;
    --aep-sidebar-width: 260px;
    --aep-text-light: #f8f9fa;
    --aep-surface: #ffffff;
    --aep-border: #e2e8e4;
    --aep-muted: #738078;
    --aep-shadow-sm: 0 2px 8px rgba(18, 44, 31, .045);
    --aep-shadow-md: 0 14px 35px rgba(18, 44, 31, .08);
}

body {
    background: var(--aep-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.aep-wrapper { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.aep-sidebar {
    width: var(--aep-sidebar-width);
    background: linear-gradient(180deg, var(--aep-primary-dark), var(--aep-primary));
    color: var(--aep-text-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    transition: transform .25s ease;
    z-index: 1030;
}
.aep-sidebar-brand {
    display: flex; align-items: center; gap: .6rem;
    padding: 1.25rem 1.25rem;
    font-weight: 700; font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.aep-sidebar-brand i { color: var(--aep-accent); font-size: 1.4rem; }
.aep-sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem 0; }
.aep-sidebar-nav .nav-link {
    color: rgba(255,255,255,.85);
    padding: .6rem 1.25rem;
    display: flex; align-items: center; gap: .7rem;
    border-radius: 0;
    font-size: .92rem;
}
.aep-sidebar-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.aep-sidebar-nav .nav-link.active { background: var(--aep-accent); color: var(--aep-primary-dark); font-weight: 600; }
.aep-submenu .nav-link { padding-left: 2.6rem; font-size: .87rem; }
.aep-caret { margin-left: auto; transition: transform .2s; font-size: .75rem; }
.aep-submenu-toggle.collapsed .aep-caret { transform: rotate(-90deg); }
.aep-section-title {
    display: block; padding: .8rem 1.25rem .3rem;
    text-transform: uppercase; font-size: .72rem; letter-spacing: .05em;
    color: rgba(255,255,255,.45);
}

/* ---------- Main / topbar ---------- */
.aep-main { margin-left: var(--aep-sidebar-width); flex: 1; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left .25s ease; }
.aep-topbar {
    background: #fff; border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1.5rem; display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 1020;
}
.aep-topbar-title { font-weight: 600; color: var(--aep-primary-dark); flex: 1; }
.aep-burger { border: none; background: none; font-size: 1.4rem; color: var(--aep-primary); }
.aep-topbar-user a { color: var(--aep-primary-dark); font-weight: 500; }
.aep-content { padding: 1.5rem; flex: 1; }

/* ---------- Cards ---------- */
.aep-welcome-card {
    background: #fff; border-left: 4px solid var(--aep-accent);
    border-radius: .5rem; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.aep-menu-card {
    background: #fff; border-radius: .6rem; padding: 1.5rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07); color: var(--aep-primary-dark);
    transition: transform .15s, box-shadow .15s; height: 100%;
}
.aep-menu-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); color: var(--aep-primary); }
.aep-menu-card i { font-size: 2rem; color: var(--aep-accent); }

/* ---------- Power BI embed ---------- */
.aep-powerbi-wrapper { background: #fff; border-radius: .6rem; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.aep-powerbi-header { padding: .9rem 1.25rem; border-bottom: 1px solid #eee; color: var(--aep-primary-dark); }
.aep-powerbi-frame-container { position: relative; width: 100%; padding-top: 56.25%; }
.aep-powerbi-frame-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Buttons ---------- */
.aep-btn-primary { background: var(--aep-primary); border-color: var(--aep-primary); color: #fff; }
.aep-btn-primary:hover { background: var(--aep-primary-light); border-color: var(--aep-primary-light); color: #fff; }

/* ---------- Enterprise application shell ---------- */
.aep-app-body {
    --aep-sidebar-width: 276px;
    color: #1c2c23;
    background:
        radial-gradient(circle at 100% 0, rgba(45, 106, 79, .045), transparent 28rem),
        #f3f6f4;
}

.aep-app-body .aep-sidebar {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 96%, rgba(212, 160, 23, .11), transparent 30%),
        linear-gradient(180deg, #102f22 0%, #0b251a 100%);
    box-shadow: 10px 0 35px rgba(5, 25, 16, .08);
}

.aep-app-body .aep-sidebar::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -180px;
    top: 30%;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, .012);
    pointer-events: none;
}

.aep-app-body .aep-sidebar-brand {
    min-height: 86px;
    padding: 1.15rem 1.25rem;
    gap: .8rem;
    font-size: inherit;
    border-bottom-color: rgba(255, 255, 255, .075);
}

.aep-sidebar-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    color: #edc35a;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.aep-sidebar-brand-mark img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.aep-sidebar-brand-copy {
    min-width: 0;
    display: block;
}

.aep-sidebar-brand-copy strong,
.aep-sidebar-brand-copy small {
    display: block;
    white-space: nowrap;
}

.aep-sidebar-brand-copy strong {
    color: #fff;
    font-size: .98rem;
    line-height: 1.25;
    letter-spacing: .01em;
}

.aep-sidebar-brand-copy small {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .42);
    font-size: .61rem;
    font-weight: 600;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.aep-sidebar-close {
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 0;
    border-radius: 9px;
    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);
}

.aep-app-body .aep-sidebar-nav {
    position: relative;
    padding: .8rem .75rem 1rem;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.13) transparent;
}

.aep-app-body .aep-sidebar-nav .nav-item { width: 100%; }

.aep-app-body .aep-sidebar-nav .nav-link {
    position: relative;
    min-height: 44px;
    margin-bottom: .2rem;
    padding: .57rem .7rem;
    gap: .72rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, .65);
    font-size: .82rem;
    font-weight: 500;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.aep-app-body .aep-sidebar-nav .nav-link:hover {
    border-color: rgba(255, 255, 255, .045);
    color: #fff;
    background: rgba(255, 255, 255, .055);
}

.aep-app-body .aep-sidebar-nav .nav-link.active {
    border-color: rgba(255, 255, 255, .09);
    color: #fff;
    background: linear-gradient(90deg, rgba(54, 124, 89, .5), rgba(43, 100, 72, .28));
    box-shadow: inset 3px 0 0 #e2b94f;
    font-weight: 600;
}

.aep-nav-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, .56);
    background: rgba(255, 255, 255, .045);
    transition: color .18s ease, background-color .18s ease;
}

.aep-app-body .aep-sidebar-nav .nav-link:hover .aep-nav-icon {
    color: #ebc45f;
    background: rgba(255, 255, 255, .07);
}

.aep-app-body .aep-sidebar-nav .nav-link.active .aep-nav-icon {
    color: #f2cc68;
    background: rgba(255, 255, 255, .09);
}

.aep-app-body .aep-submenu {
    position: relative;
    margin: .15rem 0 .35rem 1.35rem;
    padding: 0 0 0 .65rem;
    list-style: none;
}

.aep-app-body .aep-submenu::before {
    content: "";
    position: absolute;
    inset: .2rem auto .35rem 0;
    width: 1px;
    background: rgba(255, 255, 255, .1);
}

.aep-app-body .aep-submenu .nav-link {
    min-height: 39px;
    padding: .4rem .65rem;
    font-size: .77rem;
}

.aep-app-body .aep-submenu .aep-nav-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    background: transparent;
}

.aep-app-body .aep-caret {
    color: rgba(255, 255, 255, .35);
    font-size: .68rem;
}

.aep-app-body .aep-section-title {
    padding: 1.05rem .7rem .48rem;
    color: rgba(255, 255, 255, .28);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.aep-sidebar-footer {
    position: relative;
    padding: .85rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .065);
}

.aep-system-indicator {
    padding: .7rem .75rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.aep-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #5bd38b;
    box-shadow: 0 0 0 4px rgba(91, 211, 139, .1);
}

.aep-system-indicator strong,
.aep-system-indicator small { display: block; }

.aep-system-indicator strong {
    color: rgba(255, 255, 255, .7);
    font-size: .67rem;
    font-weight: 600;
}

.aep-system-indicator small {
    margin-top: .12rem;
    color: rgba(255, 255, 255, .3);
    font-size: .58rem;
}

.aep-sidebar-overlay {
    position: fixed;
    z-index: 1025;
    inset: 0;
    display: none;
    border: 0;
    background: rgba(7, 24, 16, .52);
    backdrop-filter: blur(2px);
}

.aep-app-body .aep-main { min-width: 0; }

.aep-app-body .aep-topbar {
    min-height: 78px;
    padding: .75rem clamp(1.25rem, 3vw, 2.5rem);
    gap: 1rem;
    border-bottom-color: rgba(218, 226, 221, .9);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 3px 12px rgba(18, 44, 31, .025);
    backdrop-filter: blur(16px);
}

.aep-topbar-heading {
    min-width: 0;
    flex: 1;
}

.aep-topbar-heading span,
.aep-topbar-heading strong { display: block; }

.aep-topbar-context {
    margin-bottom: .14rem;
    color: #99a39d;
    font-size: .6rem;
    font-weight: 650;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.aep-topbar-heading strong {
    overflow: hidden;
    color: #183025;
    font-size: 1.03rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aep-app-body .aep-burger {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--aep-border);
    border-radius: 10px;
    color: var(--aep-primary);
    background: #fff;
    font-size: 1.35rem;
}

.aep-sidebar-desktop-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--aep-border);
    border-radius: 10px;
    color: var(--aep-primary);
    background: #fff;
    font-size: 1rem;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.aep-sidebar-desktop-toggle:hover {
    border-color: #cbd8d0;
    color: #fff;
    background: var(--aep-primary);
}

@media (min-width: 992px) {
    .aep-wrapper.aep-sidebar-hidden .aep-sidebar {
        transform: translateX(-100%);
    }

    .aep-wrapper.aep-sidebar-hidden .aep-main {
        margin-left: 0;
    }
}

.aep-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aep-topbar-date {
    align-items: center;
    gap: .5rem;
    color: #7d8a82;
    font-size: .75rem;
    font-weight: 550;
}

.aep-topbar-date i { color: var(--aep-primary-light); }

.aep-topbar-divider {
    width: 1px;
    height: 30px;
    background: #e3e8e4;
}

.aep-user-trigger {
    padding: .25rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 0;
    border-radius: 11px;
    color: #20362a;
    background: transparent;
    text-align: left;
}

.aep-user-trigger:hover { background: #f3f6f4; }

.aep-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dce8df;
    border-radius: 10px;
    color: var(--aep-primary);
    background: linear-gradient(145deg, #edf5ef, #e1ede5);
}

.aep-user-meta { max-width: 180px; }

.aep-user-meta strong,
.aep-user-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aep-user-meta strong {
    font-size: .76rem;
    font-weight: 650;
}

.aep-user-meta small {
    margin-top: .08rem;
    color: #8a958e;
    font-size: .64rem;
}

.aep-user-chevron {
    margin-right: .3rem;
    color: #98a39c;
    font-size: .62rem;
}

.aep-user-menu {
    width: 250px;
    margin-top: .7rem !important;
    padding: .55rem;
    border: 1px solid var(--aep-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(22, 48, 33, .13);
}

.aep-user-menu-header {
    padding: .6rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.aep-user-menu-header strong,
.aep-user-menu-header small { display: block; }

.aep-user-menu-header strong {
    color: #26392f;
    font-size: .76rem;
}

.aep-user-menu-header small {
    margin-top: .15rem;
    color: #8b968f;
    font-size: .65rem;
}

.aep-user-menu .dropdown-divider {
    margin: .35rem 0;
    border-color: #edf0ee;
}

.aep-user-menu .dropdown-item,
.aep-user-menu .dropdown-item-text {
    padding: .62rem .7rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-radius: 8px;
    font-size: .72rem;
}

.aep-role-menu-item { color: #637169; }
.aep-role-menu-item i { color: var(--aep-primary-light); }
.aep-logout-link { color: #a63d3d; }
.aep-logout-link:hover { color: #8f2f2f; background: #fff1f1; }

.aep-app-body .aep-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.aep-app-alert {
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid;
    border-radius: 11px;
    font-size: .8rem;
}

.aep-app-alert-success {
    border-color: #cce5d4;
    color: #176038;
    background: #f0faf3;
}

.aep-app-alert-danger {
    border-color: #f0cccc;
    color: #923333;
    background: #fff3f3;
}

/* ---------- Enterprise dashboard ---------- */
.aep-dashboard-hero {
    position: relative;
    isolation: isolate;
    min-height: 230px;
    overflow: hidden;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 76% 25%, rgba(220, 177, 62, .2), transparent 22%),
        linear-gradient(135deg, #174632 0%, #103423 58%, #0b281b 100%);
    box-shadow: 0 18px 40px rgba(13, 49, 32, .13);
}

.aep-dashboard-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 380px;
    height: 380px;
    right: -130px;
    bottom: -235px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .022),
        0 0 0 110px rgba(255, 255, 255, .014);
}

.aep-hero-pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .1;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.aep-hero-content {
    position: relative;
    max-width: 720px;
}

.aep-hero-eyebrow,
.aep-section-eyebrow {
    display: inline-block;
    color: #e9c45d;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.aep-hero-content h1 {
    margin: .6rem 0 .7rem;
    font-size: clamp(1.7rem, 3.3vw, 2.75rem);
    font-weight: 650;
    letter-spacing: -.035em;
}

.aep-hero-content > p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: .85rem;
    line-height: 1.7;
}

.aep-hero-tags {
    margin-top: 1.35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
}

.aep-hero-tags span {
    padding: .43rem .68rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .055);
    font-size: .67rem;
    font-weight: 550;
}

.aep-hero-tags i { color: #e7bd4f; }

.aep-hero-insight {
    position: relative;
    min-width: 190px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.aep-hero-insight-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #f0c85f;
    background: rgba(255, 255, 255, .09);
}

.aep-hero-insight strong,
.aep-hero-insight small { display: block; }

.aep-hero-insight strong {
    font-size: 1.35rem;
    line-height: 1;
}

.aep-hero-insight small {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .5);
    font-size: .63rem;
}

.aep-overview-grid {
    margin: 1.25rem 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.aep-overview-card {
    min-width: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid var(--aep-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--aep-shadow-sm);
}

.aep-overview-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1rem;
}

.aep-overview-icon-green { color: #256447; background: #e8f3ec; }
.aep-overview-icon-gold { color: #9b7410; background: #faf3dc; }
.aep-overview-icon-blue { color: #326d83; background: #e8f2f5; }

.aep-overview-copy {
    min-width: 0;
    flex: 1;
}

.aep-overview-copy small,
.aep-overview-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aep-overview-copy small {
    margin-bottom: .16rem;
    color: #8a968f;
    font-size: .63rem;
}

.aep-overview-copy strong {
    color: #25392e;
    font-size: .79rem;
    font-weight: 650;
}

.aep-overview-trend,
.aep-live-status {
    display: inline-flex;
    align-items: center;
    gap: .26rem;
    color: #318158;
    font-size: .61rem;
    font-weight: 650;
}

.aep-overview-trend {
    padding: .3rem .45rem;
    border-radius: 7px;
    background: #edf8f1;
}

.aep-overview-chevron {
    color: #b1bbb5;
    font-size: .9rem;
}

.aep-live-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #42b873;
    box-shadow: 0 0 0 3px rgba(66, 184, 115, .1);
}

.aep-reports-section { margin-top: .25rem; }

.aep-section-heading {
    margin-bottom: 1.3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.aep-section-heading .aep-section-eyebrow {
    margin-bottom: .38rem;
    color: #9b7410;
}

.aep-section-heading h2 {
    margin: 0;
    color: #1c3025;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.aep-section-heading p {
    margin: .32rem 0 0;
    color: var(--aep-muted);
    font-size: .75rem;
}

.aep-report-count {
    padding: .42rem .7rem;
    border: 1px solid #dae3dd;
    border-radius: 999px;
    color: #69766e;
    background: #fff;
    font-size: .65rem;
    font-weight: 600;
}

.aep-app-body .aep-menu-card {
    position: relative;
    min-height: 245px;
    height: 100%;
    overflow: hidden;
    padding: 1.25rem;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--aep-border);
    border-radius: 15px;
    color: #20352a;
    background: #fff;
    box-shadow: var(--aep-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aep-app-body .aep-menu-card::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -75px;
    top: -80px;
    border-radius: 50%;
    background: rgba(45, 106, 79, .035);
    transition: transform .25s ease, background-color .25s ease;
}

.aep-app-body .aep-menu-card:hover {
    transform: translateY(-4px);
    border-color: #cbd9cf;
    color: #20352a;
    box-shadow: var(--aep-shadow-md);
}

.aep-app-body .aep-menu-card:hover::before {
    transform: scale(1.3);
    background: rgba(45, 106, 79, .065);
}

.aep-menu-card-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.aep-menu-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #dce9e0;
    border-radius: 13px;
    color: var(--aep-primary-light);
    background: linear-gradient(145deg, #eff7f1, #e7f1ea);
    font-size: 1.25rem;
}

.aep-app-body .aep-menu-card .aep-menu-card-icon i {
    color: inherit;
    font-size: inherit;
}

.aep-menu-card-action {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #e4e9e6;
    border-radius: 9px;
    color: #9ca7a0;
    background: #fafcfb;
    font-size: .8rem;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.aep-app-body .aep-menu-card .aep-menu-card-action i {
    color: inherit;
    font-size: inherit;
}

.aep-app-body .aep-menu-card:hover .aep-menu-card-action {
    transform: translate(2px, -2px);
    color: #fff;
    background: var(--aep-primary);
}

.aep-menu-card-body {
    position: relative;
    padding: 1.15rem 0 1rem;
    flex: 1;
}

.aep-menu-card-category {
    display: block;
    margin-bottom: .42rem;
    color: #a17a18;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.aep-menu-card h3 {
    margin: 0;
    color: #1e3529;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.aep-menu-card-body p {
    margin: .48rem 0 0;
    color: #839087;
    font-size: .7rem;
    line-height: 1.55;
}

.aep-menu-card-footer {
    position: relative;
    padding-top: .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid #eef1ef;
    color: #8b968f;
    font-size: .62rem;
}

.aep-menu-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.aep-menu-card-footer span:last-child {
    color: var(--aep-primary-light);
    font-weight: 650;
}

.aep-app-body .aep-menu-card-footer i {
    color: inherit;
    font-size: inherit;
}

.aep-empty-state {
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
    border: 1px dashed #cfd9d2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .68);
    text-align: center;
}

.aep-empty-state-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #668173;
    background: #eaf1ec;
    font-size: 1.4rem;
}

.aep-empty-state h3 {
    margin: 0 0 .4rem;
    color: #2b3f34;
    font-size: 1rem;
}

.aep-empty-state p {
    max-width: 460px;
    margin: 0 auto;
    color: #7f8c84;
    font-size: .76rem;
    line-height: 1.6;
}

.aep-content-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #dfe5e1;
    color: #96a099;
    font-size: .64rem;
}

.aep-content-footer span:last-child {
    display: flex;
    align-items: center;
    gap: .38rem;
}

.aep-content-footer i { color: #72907f; }

.aep-app-body .aep-powerbi-wrapper {
    border: 1px solid var(--aep-border);
    border-radius: 15px;
    box-shadow: var(--aep-shadow-md);
}

.aep-app-body .aep-powerbi-header {
    padding: 1rem 1.25rem;
    border-bottom-color: #e9eeeb;
}

.aep-app-body .aep-powerbi-header h5 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    font-weight: 700;
}

.aep-app-body .aep-powerbi-header h5 i { color: var(--aep-primary-light); }

.aep-app-body .aep-btn-primary {
    background: linear-gradient(135deg, #225c40, var(--aep-primary));
    box-shadow: 0 5px 12px rgba(27, 67, 50, .13);
}

/* ---------- Login ---------- */
.aep-login-body {
    min-height: 100vh;
    margin: 0;
    background: #eef2ee;
    color: #17231c;
}

.aep-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr);
}

.aep-login-showcase {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4.5rem);
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 77% 16%, rgba(222, 180, 70, .2), transparent 24%),
        linear-gradient(145deg, #173f2d 0%, #0c2d20 52%, #071e15 100%);
}

.aep-login-showcase::before,
.aep-login-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.aep-login-showcase::before {
    width: 620px;
    height: 620px;
    right: -280px;
    bottom: -260px;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, .025),
        0 0 0 140px rgba(255, 255, 255, .018);
}

.aep-login-showcase::after {
    width: 360px;
    height: 360px;
    right: 10%;
    top: 24%;
    border-color: rgba(212, 160, 23, .12);
}

.aep-login-pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .17;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.aep-login-showcase-top,
.aep-login-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.aep-brand-lockup,
.aep-login-mobile-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.aep-brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;
    color: #f4c95d;
    background: rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.aep-brand-mark i { font-size: 1.35rem; }

.aep-brand-lockup strong,
.aep-login-mobile-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: .01em;
}

.aep-brand-lockup small,
.aep-login-mobile-brand small {
    display: block;
    margin-top: .2rem;
    color: rgba(255, 255, 255, .58);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aep-internal-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .055);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.aep-internal-badge i { color: #e6bb4d; }

.aep-login-showcase-content {
    width: min(620px, 90%);
    margin: auto 0;
    padding: 4rem 0;
}

.aep-showcase-eyebrow,
.aep-login-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: #e6bb4d;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.aep-login-showcase-content h1 {
    margin: 0 0 1.35rem;
    font-size: clamp(2.6rem, 5vw, 4.75rem);
    line-height: 1.03;
    font-weight: 650;
    letter-spacing: -.045em;
}

.aep-login-showcase-content > p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    line-height: 1.8;
}

.aep-showcase-features {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-top: 2.75rem;
}

.aep-showcase-feature {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.aep-showcase-feature > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #e6bb4d;
    background: rgba(255, 255, 255, .08);
}

.aep-showcase-feature strong,
.aep-showcase-feature small {
    display: block;
}

.aep-showcase-feature strong {
    margin-bottom: .15rem;
    font-size: .82rem;
    font-weight: 600;
}

.aep-showcase-feature small {
    color: rgba(255, 255, 255, .48);
    font-size: .7rem;
}

.aep-login-showcase-footer {
    color: rgba(255, 255, 255, .42);
    font-size: .7rem;
    letter-spacing: .025em;
}

.aep-login-showcase-footer span:first-child {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .56);
}

.aep-login-panel {
    min-height: 100vh;
    padding: 2rem clamp(2rem, 6vw, 6.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(27, 67, 50, .06), transparent 30%),
        #f8faf8;
}

.aep-login-form-wrap {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.aep-login-mobile-brand {
    display: none;
    margin-bottom: 3rem;
}

.aep-login-mobile-brand .aep-brand-mark {
    border-color: rgba(27, 67, 50, .12);
    color: var(--aep-primary);
    background: #e7efe9;
}

.aep-login-mobile-brand strong { color: var(--aep-primary-dark); }
.aep-login-mobile-brand small { color: #728078; }

.aep-login-heading { margin-bottom: 2rem; }
.aep-login-heading .aep-login-kicker { margin-bottom: .75rem; }

.aep-login-heading h2 {
    margin: 0 0 .65rem;
    color: #12251b;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.aep-login-heading p {
    margin: 0;
    color: #738078;
    font-size: .9rem;
    line-height: 1.6;
}

.aep-login-alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border: 1px solid;
    border-radius: 10px;
    font-size: .83rem;
    line-height: 1.5;
}

.aep-login-alert-danger {
    border-color: #f0c9c9;
    color: #8c2525;
    background: #fff2f2;
}

.aep-login-alert-success {
    border-color: #bfdfca;
    color: #176136;
    background: #eef9f2;
}

.aep-login-alert i { margin-top: .08rem; }
.aep-login-form { display: grid; gap: 1.25rem; }

.aep-form-group label {
    display: block;
    margin-bottom: .5rem;
    color: #24382d;
    font-size: .78rem;
    font-weight: 650;
}

.aep-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.aep-input-group > i {
    position: absolute;
    left: 1rem;
    z-index: 1;
    color: #819087;
    font-size: 1rem;
    pointer-events: none;
}

.aep-input-group input {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 2.85rem;
    border: 1px solid #d7ded9;
    border-radius: 10px;
    outline: none;
    color: #17231c;
    background: #fff;
    font-size: .9rem;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.aep-input-group input::placeholder { color: #a2aca6; }

.aep-input-group input:hover { border-color: #afbbb3; }

.aep-input-group input:focus {
    border-color: var(--aep-primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, .11);
}

.aep-input-group:focus-within > i { color: var(--aep-primary-light); }

.aep-password-toggle {
    position: absolute;
    right: .65rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #7d8982;
    background: transparent;
}

.aep-password-toggle:hover {
    color: var(--aep-primary);
    background: #edf3ef;
}

.aep-password-toggle:focus-visible {
    outline: 2px solid var(--aep-primary-light);
    outline-offset: 1px;
}

.aep-login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: .35rem;
    padding: .8rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    border: 1px solid var(--aep-primary);
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #1c5239, #123b2a);
    box-shadow: 0 8px 18px rgba(18, 59, 42, .17);
    font-size: .88rem;
    font-weight: 650;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.aep-login-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #236346, #164b34);
    box-shadow: 0 11px 23px rgba(18, 59, 42, .23);
}

.aep-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(18, 59, 42, .18);
}

.aep-login-submit i {
    font-size: 1rem;
    transition: transform .18s ease;
}

.aep-login-submit:hover i { transform: translateX(3px); }

.aep-login-help {
    margin-top: 2rem;
    padding-top: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    border-top: 1px solid #e3e8e4;
    color: #77837c;
}

.aep-login-help > i {
    color: var(--aep-primary-light);
    font-size: 1rem;
}

.aep-login-help p {
    margin: 0;
    font-size: .75rem;
    line-height: 1.5;
}

.aep-login-help p span { display: block; }

.aep-login-panel-footer {
    width: 100%;
    max-width: 440px;
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: #98a29c;
    font-size: .66rem;
}

.aep-footer-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b5beb8;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .aep-sidebar { transform: translateX(-100%); }
    .aep-wrapper.aep-sidebar-open .aep-sidebar { transform: translateX(0); }
    .aep-main { margin-left: 0; }
    .aep-wrapper.aep-sidebar-open .aep-sidebar-overlay { display: block; }
    .aep-menu-open { overflow: hidden; }

    .aep-overview-grid { grid-template-columns: 1fr; }
    .aep-dashboard-hero { min-height: 220px; }

    .aep-login-shell { grid-template-columns: minmax(0, 1fr); }
    .aep-login-showcase { display: none; }
    .aep-login-panel { padding: 2.5rem clamp(1.5rem, 8vw, 4rem); }
    .aep-login-mobile-brand { display: flex; }
}

@media (max-width: 575px) {
    .aep-login-panel {
        min-height: 100svh;
        padding: 1.5rem;
        justify-content: flex-start;
    }

    .aep-login-form-wrap { margin-top: auto; margin-bottom: auto; }
    .aep-login-mobile-brand { margin-bottom: 2.5rem; }
    .aep-login-heading { margin-bottom: 1.65rem; }
    .aep-login-heading h2 { font-size: 1.8rem; }
    .aep-login-panel-footer { margin-top: 1.5rem; flex-wrap: wrap; }

    .aep-app-body .aep-topbar {
        min-height: 68px;
        padding: .65rem 1rem;
    }

    .aep-topbar-context { display: none; }
    .aep-topbar-heading strong { font-size: .92rem; }
    .aep-topbar-actions { gap: .35rem; }
    .aep-user-chevron { display: none; }

    .aep-app-body .aep-content { padding: 1rem; }

    .aep-dashboard-hero {
        min-height: auto;
        padding: 1.5rem;
        display: block;
    }

    .aep-hero-insight {
        width: fit-content;
        min-width: 180px;
        margin-top: 1.4rem;
    }

    .aep-overview-grid {
        margin: 1rem 0 2rem;
        gap: .7rem;
    }

    .aep-section-heading { align-items: center; }
    .aep-section-heading p { max-width: 250px; }

    .aep-menu-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .aep-content-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 389px) {
    .aep-report-count { display: none; }
    .aep-user-trigger { gap: 0; }
    .aep-user-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aep-input-group input,
    .aep-login-submit,
    .aep-login-submit i,
    .aep-menu-card,
    .aep-menu-card::before,
    .aep-menu-card-action {
        transition: none;
    }
}
