* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg: #0f1318;
    --bg-2: #11161c;
    --panel: rgba(20, 26, 34, .72);
    --panel-2: rgba(24, 31, 40, .68);
    --panel-3: rgba(31, 38, 48, .72);
    --panel-4: rgba(17, 23, 31, .78);
    --border: rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.14);
    --text: #f3f5f7;
    --muted: #9ca6b3;
    --accent: #d8dde5;
    --shadow: 0 12px 30px rgba(0,0,0,.28);
    --shadow-soft: 0 20px 40px rgba(0,0,0,.22);
    --glass-blur: blur(14px);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --sidebar-w: 280px;

    --auth-bg-1:#03070d;
    --auth-bg-2:#06101b;
    --auth-bg-3:#02050a;
    --auth-card:rgba(10,16,25,.72);
    --auth-card-2:rgba(255,255,255,.04);
    --auth-border:rgba(255,255,255,.10);
    --auth-border-soft:rgba(255,255,255,.06);
    --auth-text:#f3f7ff;
    --auth-muted:#97a3b6;
    --auth-input-bg:rgba(255,255,255,.035);
    --auth-input-border:rgba(255,255,255,.08);
    --auth-input-focus:rgba(78,124,255,.45);
    --auth-blue:#2f5eff;
    --auth-blue-2:#4b7bff;
    --auth-shadow:0 24px 70px rgba(0,0,0,.55);
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.035), transparent 22%),
        radial-gradient(circle at top right, rgba(255,255,255,.025), transparent 18%),
        linear-gradient(180deg, #0f1318 0%, #0c1117 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

.app-shell {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.025), transparent 24%),
        linear-gradient(180deg, #0e1319 0%, #0a0f15 100%);
}

/* =========================
   SIDEBAR FULL REVISI
========================= */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    height: 100dvh;
    padding: 14px 12px 14px 14px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 10px 8px 10px 10px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 18%),
        linear-gradient(180deg, rgba(18,24,31,.96) 0%, rgba(11,16,22,.985) 100%);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        inset -1px 0 0 rgba(255,255,255,.025),
        18px 0 40px rgba(0,0,0,.20);
    pointer-events: none;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 8px;
    width: 14px;
    height: calc(100% - 40px);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
    opacity: .35;
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.10);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.18);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 18px;
    margin: 0 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.16), rgba(255,255,255,.02)),
        #171e28;
    border: 1px solid rgba(255,255,255,.08);
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    letter-spacing: .5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 10px 24px rgba(0,0,0,.22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-text strong {
    font-size: 16px;
    line-height: 1.05;
    color: #f4f7fb;
    letter-spacing: .2px;
    font-weight: 800;
}

.brand-text span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 1.1;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 0 8px 8px;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 16px;
    color: #dce3ec;
    background: transparent;
    border: 1px solid transparent;
    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease,
        color .22s ease;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: .22s ease;
}

.menu-item:hover {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.06);
    transform: translateX(3px);
}

.menu-item:hover::before {
    background: rgba(120,170,255,.82);
    box-shadow: 0 0 12px rgba(120,170,255,.35);
}

.menu-item.active {
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
        rgba(25, 34, 45, .92);
    border-color: rgba(255,255,255,.08);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 10px 22px rgba(0,0,0,.16);
}

.menu-item.active::before {
    background: #7fb0ff;
    box-shadow: 0 0 12px rgba(127,176,255,.42);
}

.menu-item-logout {
    margin-top: 8px;
    color: #ffbcbc;
}

.menu-item-logout:hover {
    background: rgba(255,255,255,.03);
}

.menu-item-logout:hover::before {
    background: rgba(255,90,90,.85);
    box-shadow: 0 0 12px rgba(255,90,90,.35);
}

.menu-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #141b25;
    border: 1px solid rgba(255,255,255,.06);
    color: #dce6f7;
    font-size: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition:
        background .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .22s ease;
}

.menu-item:hover .menu-icon {
    background: #18212c;
    border-color: rgba(255,255,255,.09);
    color: #ffffff;
    transform: scale(1.03);
}

.menu-item.active .menu-icon {
    background: rgba(127,176,255,.14);
    border-color: rgba(127,176,255,.28);
    color: #eaf2ff;
}

.menu-item-logout .menu-icon {
    color: #ffc6c6;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.menu-item > span:last-child {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MAIN */
.main-content {
    flex: 1;
    min-width: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    gap: 18px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,.02), transparent 20%);
}

.topbar {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
        rgba(18, 24, 31, .72);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 18px 22px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 18px 40px rgba(0,0,0,.20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-left h1 {
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.topbar-left p {
    color: var(--muted);
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px;
    border-radius: 14px;
    color: #e8edf3;
    font-size: 14px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.content-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 18px;
    padding-right: 4px;
    padding-bottom: 28px;
    scrollbar-gutter: stable;
}

.content-area::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.10);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.18);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        rgba(20, 26, 34, .66);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 16px 36px rgba(0,0,0,.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    line-height: 1.65;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-box {
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
        rgba(24, 31, 40, .64);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    padding: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 12px 26px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-box strong {
    font-size: 24px;
    font-weight: 800;
}

.list-box {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.list-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
        rgba(24, 31, 40, .62);
    color: #dfe5ec;
    transition: .2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.list-item:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
        rgba(30, 38, 48, .72);
    border-color: rgba(255,255,255,.10);
}

.placeholder-box {
    min-height: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 18px;
    background: #20262d;
    border: 1px dashed rgba(255,255,255,.12);
    color: var(--muted);
    padding: 20px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #252c34;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

/* TABLE */
.table-wrap {
    overflow: auto;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    scrollbar-gutter: stable both-edges;
}

.table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.10);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.18);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.table-dark {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

.table-dark th,
.table-dark td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

.table-dark thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: #ffffff;
    background: #242b33;
    box-shadow: inset 0 -1px 0 var(--border);
}

.table-dark td {
    color: #cfd6de;
    background: #1b2026;
}

.table-dark tbody tr:hover td {
    background: #20262d;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: #2a3139;
}

/* FORM GLOBAL */
.form-grid {
    display: grid;
    gap: 14px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: #dbe3ec;
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    outline: none;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(20, 26, 34, .88);
    color: #f4f7fb;
    transition: .2s ease;
}

.input:focus {
    border-color: rgba(127,176,255,.5);
    box-shadow: 0 0 0 3px rgba(127,176,255,.10);
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-actions {
    padding-top: 4px;
}

.btn {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #2658f5;
}

.btn-secondary {
    background: #39424d;
}

.btn-danger {
    background: #d53f3f;
}

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,.08);
}

.alert-success {
    background: rgba(34, 197, 94, .12);
    color: #d8ffe6;
    border-color: rgba(34, 197, 94, .26);
}

.alert-danger {
    background: rgba(239, 68, 68, .12);
    color: #ffdede;
    border-color: rgba(239, 68, 68, .26);
}

/* MOBILE */
@media (max-width: 980px) {
    html,
    body {
        height: auto;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 999;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 100dvh;
        transition: .25s ease;
        padding: 12px;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar::before {
        inset: 12px;
        border-radius: 26px;
    }

    .sidebar::after {
        right: 12px;
        top: 22px;
        height: calc(100% - 44px);
    }

    .main-content {
        width: 100%;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding: 16px;
    }

    .content-area {
        overflow: visible;
        min-height: auto;
        padding-right: 0;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 16px;
    }

    .topbar-left h1 {
        font-size: 20px;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .topbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .card {
        padding: 18px;
    }
}

/* =========================
   TOPBAR ADVANCED
========================= */
.topbar-right-advanced{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.topbar-time-pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:0 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background: rgba(24, 31, 40, .72);
    color:#eef3fb;
    font-size:13px;
    font-weight:700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.topbar-time-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:#ffd76b;
    box-shadow:0 0 10px rgba(255,215,107,.45);
    flex:0 0 auto;
}

.topbar-time-sep{
    opacity:.45;
}

.topbar-profile-pill{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:52px;
    padding:7px 14px 7px 8px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    background: rgba(24, 31, 40, .72);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 10px 24px rgba(0,0,0,.14);
}

.topbar-profile-avatar{
    width:36px;
    height:36px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#1c2531;
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-weight:800;
    font-size:13px;
}

.topbar-profile-meta{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.topbar-profile-meta strong{
    font-size:12px;
    line-height:1.1;
    color:#f4f7fb;
    white-space:nowrap;
}

.topbar-profile-meta span{
    font-size:11px;
    line-height:1.1;
    color:#a8b3c2;
    margin-top:3px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

/* =========================
   DASHBOARD V2
========================= */
.dashboard-v2{
    display:grid;
    gap:18px;
}

.dashboard-marquee-shell{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:56px;
    padding:0 18px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)),
        rgba(18, 24, 31, .84);
    overflow:hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 14px 30px rgba(0,0,0,.16);
}

.dashboard-marquee-label{
    flex:0 0 auto;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    padding:0 12px;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
    font-size:12px;
    font-weight:800;
    color:#edf2fa;
    letter-spacing:.5px;
    text-transform:uppercase;
}

.dashboard-marquee-window{
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.dashboard-marquee-runner{
    position: absolute;
    top: 50%;
    left: 100%;
    white-space: nowrap;
    will-change: transform;
    animation-name: dashboardMarqueeEdgeLoop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform: translate(0, -50%);
    pointer-events: none;
}

.dashboard-marquee-runner span{
    display: inline-block;
    padding-right: 80px;
    color: #f5f7fb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

@keyframes dashboardMarqueeEdgeLoop{
    from{
        transform: translate(0, -50%);
    }
    to{
        transform: translate(calc(-100vw - 100%), -50%);
    }
}

.dashboard-hero-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:22px 24px;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)),
        rgba(18, 24, 31, .82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 16px 34px rgba(0,0,0,.16);
}

.dashboard-hero-left{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
}

.dashboard-hero-avatar{
    width:68px;
    height:68px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#1a2330;
    border:1px solid rgba(255,255,255,.08);
    font-size:24px;
    font-weight:800;
    color:#fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.dashboard-hero-copy{
    min-width:0;
}

.dashboard-hero-kicker{
    display:block;
    font-size:13px;
    color:#9eadbf;
    margin-bottom:6px;
    font-weight:700;
}

.dashboard-hero-copy h2{
    margin:0;
    font-size:28px;
    line-height:1.1;
    color:#f6f8fc;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.dashboard-role-chip{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 10px;
    margin-top:10px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.5px;
    color:#edf3ff;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
    text-transform:uppercase;
}

.dashboard-hero-right{
    flex:0 0 auto;
}

.dashboard-mini-box{
    min-width:180px;
    padding:14px 16px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.dashboard-mini-box span{
    display:block;
    font-size:12px;
    color:#9eadbf;
    margin-bottom:8px;
    font-weight:700;
}

.dashboard-mini-box strong{
    font-size:22px;
    color:#fff;
    line-height:1.1;
}

.dashboard-stat-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
}

.dashboard-stat-card{
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)),
        rgba(18, 24, 31, .82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 14px 28px rgba(0,0,0,.14);
}

.dashboard-stat-icon{
    width:54px;
    height:54px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:#1b2430;
    border:1px solid rgba(255,255,255,.06);
    font-size:22px;
}

.dashboard-stat-copy strong{
    display:block;
    font-size:24px;
    line-height:1.1;
    color:#fff;
    margin-bottom:6px;
}

.dashboard-stat-copy span{
    display:block;
    font-size:13px;
    color:#9eadbf;
    font-weight:700;
}

.dashboard-wide-card{
    padding:22px;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)),
        rgba(18, 24, 31, .82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 16px 34px rgba(0,0,0,.16);
}

.dashboard-wide-title h3{
    margin:0 0 8px;
    font-size:24px;
    color:#fff;
}

.dashboard-wide-title p{
    margin:0;
    color:#9eadbf;
    line-height:1.7;
}

.dashboard-shortcut-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    margin-top:20px;
}

.dashboard-shortcut-card{
    display:block;
    padding:18px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.07);
    background:rgba(255,255,255,.025);
    transition:.18s ease;
}

.dashboard-shortcut-card:hover{
    transform:translateY(-2px);
    border-color:rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
}

.dashboard-shortcut-card strong{
    display:block;
    color:#fff;
    font-size:16px;
    margin-bottom:8px;
}

.dashboard-shortcut-card span{
    display:block;
    color:#9eadbf;
    line-height:1.6;
    font-size:13px;
}

/* =========================
   DASHBOARD MARQUEE TOOLBAR
========================= */
.dashboard-marquee-toolbar{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.dashboard-marquee-speed-chip{
    flex: 0 0 auto;
    min-width: 56px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(127,176,255,.10);
    border: 1px solid rgba(127,176,255,.22);
    color: #e7f0ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
}

.dashboard-marquee-editor{
    width: 100%;
}

.dashboard-marquee-summary{
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(52,101,255,.95), rgba(35,84,236,.95));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    user-select: none;
    box-shadow:
        0 12px 26px rgba(37,82,230,.28),
        inset 0 1px 0 rgba(255,255,255,.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.dashboard-marquee-summary::-webkit-details-marker{
    display: none;
}

.dashboard-marquee-summary:hover{
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px rgba(37,82,230,.34),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.dashboard-marquee-summary-icon{
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
}

.dashboard-marquee-editor[open] .dashboard-marquee-summary{
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dashboard-marquee-editor-body{
    margin-top: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)),
        rgba(18, 24, 31, .80);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 16px 34px rgba(0,0,0,.14);
}

.dashboard-marquee-form{
    display:grid;
    gap:14px;
    margin-top:14px;
}

.dashboard-form-grid-2{
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    gap: 16px;
    align-items: start;
}

.dashboard-speed-box{
    min-height: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.dashboard-speed-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-speed-top label{
    margin: 0;
    font-size: 13px;
    color: #dbe4f3;
    font-weight: 700;
}

.dashboard-speed-value{
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(127,176,255,.10);
    border: 1px solid rgba(127,176,255,.22);
    color: #eef4ff;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-speed-range{
    width: 100%;
    accent-color: #3465ff;
    cursor: pointer;
}

.dashboard-speed-note{
    margin-top: 10px;
    color: #9eadbf;
    font-size: 12px;
    line-height: 1.6;
}

.dashboard-speed-number{
    min-height: 52px;
}

.dashboard-textarea{
    min-height: 110px;
    padding: 14px;
    resize: vertical;
    font-family: inherit;
}

/* =========================
   AUTH / LOGIN PAGE
   Dark Animated Background
========================= */

body.auth-body{
    margin:0;
    min-height:100dvh;
    overflow:auto;
    position:relative;
    font-family:Inter, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--auth-text);
    background:
        radial-gradient(circle at 22% 18%, rgba(42, 72, 128, .16), transparent 32%),
        radial-gradient(circle at 78% 82%, rgba(52, 48, 105, .12), transparent 30%),
        linear-gradient(135deg, #05070b 0%, #080d14 45%, #030509 100%);
}

body.auth-body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 30%, rgba(72, 108, 180, .12), transparent 24%),
        radial-gradient(circle at 75% 65%, rgba(96, 76, 180, .10), transparent 26%);
    animation:authBackgroundPulse 9s ease-in-out infinite alternate;
}

.auth-bg{
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden;
    z-index:1;
}

.auth-bg::before{
    content:"";
    position:absolute;
    inset:-80px;
    opacity:.22;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.4px),
        radial-gradient(circle, rgba(115,150,255,.16) 1px, transparent 1.6px);
    background-size:42px 42px, 86px 86px;
    background-position:0 0, 20px 30px;
    animation:authParticles 22s linear infinite;
}

.auth-bg::after{
    content:"";
    position:absolute;
    width:60vw;
    height:60vw;
    min-width:520px;
    min-height:520px;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%) rotate(0deg);
    opacity:.18;
    background:
        conic-gradient(from 90deg,
            transparent 0deg,
            rgba(72, 108, 180, .28) 72deg,
            transparent 135deg,
            rgba(88, 70, 160, .22) 210deg,
            transparent 300deg,
            transparent 360deg);
    filter:blur(46px);
    animation:authSweep 18s linear infinite;
}

.auth-grid{
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
    background-size:68px 68px;
    mask-image:radial-gradient(circle at center, rgba(0,0,0,.95), transparent 78%);
    -webkit-mask-image:radial-gradient(circle at center, rgba(0,0,0,.95), transparent 78%);
    opacity:.28;
    animation:authGridMove 20s linear infinite;
}

.auth-orb{
    position:absolute;
    border-radius:999px;
    filter:blur(72px);
    opacity:.22;
    animation:authOrbFloat 10s ease-in-out infinite alternate;
}

.auth-orb-1{
    width:360px;
    height:360px;
    left:-110px;
    top:-90px;
    background:rgba(45, 87, 180, .32);
}

.auth-orb-2{
    width:310px;
    height:310px;
    right:-95px;
    bottom:-80px;
    background:rgba(75, 55, 145, .28);
    animation-delay:-3s;
}

@keyframes authBackgroundPulse{
    from{
        opacity:.72;
        transform:scale(1);
    }
    to{
        opacity:1;
        transform:scale(1.04);
    }
}

@keyframes authParticles{
    from{
        transform:translate3d(0,0,0);
    }
    to{
        transform:translate3d(-86px, -86px, 0);
    }
}

@keyframes authSweep{
    from{
        transform:translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50%{
        transform:translate(-50%, -50%) rotate(180deg) scale(1.08);
    }
    to{
        transform:translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

@keyframes authGridMove{
    from{
        background-position:0 0, 0 0;
    }
    to{
        background-position:68px 68px, 68px 68px;
    }
}

@keyframes authOrbFloat{
    from{
        transform:translate3d(0,0,0) scale(1);
    }
    to{
        transform:translate3d(34px, -26px, 0) scale(1.08);
    }
}

.auth-shell{
    position:relative;
    z-index:2;
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
}

.auth-card{
    position:relative;
    width:100%;
    max-width:432px;
    padding:28px 28px 24px;
    border-radius:28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        rgba(7, 11, 18, .82);
    border:1px solid rgba(255,255,255,.095);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 28px 90px rgba(0,0,0,.58),
        0 0 0 1px rgba(255,255,255,.018);
    backdrop-filter:blur(20px) saturate(145%);
    -webkit-backdrop-filter:blur(20px) saturate(145%);
    overflow:hidden;
}

.auth-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    padding:1px;
    background:linear-gradient(145deg, rgba(118,150,255,.36), rgba(255,255,255,.055), rgba(108,83,190,.20));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    pointer-events:none;
}

.auth-card::after{
    content:"";
    position:absolute;
    left:-35%;
    top:-55%;
    width:170%;
    height:90%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
    transform:rotate(12deg) translateX(-35%);
    animation:authCardShine 7s ease-in-out infinite;
    pointer-events:none;
}

.auth-card-glow{
    position:absolute;
    top:-115px;
    left:50%;
    transform:translateX(-50%);
    width:270px;
    height:270px;
    border-radius:999px;
    background:radial-gradient(circle, rgba(68,105,210,.18) 0%, rgba(68,105,210,0) 72%);
    pointer-events:none;
}

@keyframes authCardShine{
    0%, 42%{
        transform:rotate(12deg) translateX(-48%);
        opacity:0;
    }
    55%{
        opacity:.55;
    }
    78%, 100%{
        transform:rotate(12deg) translateX(48%);
        opacity:0;
    }
}

.auth-brand{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:18px;
    margin-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.075);
}

.auth-brand-logo{
    width:48px;
    height:48px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 48px;
    color:#ffffff;
    font-weight:900;
    letter-spacing:.8px;
    font-size:14px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), transparent 42%),
        linear-gradient(145deg, rgba(55, 86, 160, .92), rgba(27, 35, 58, .95));
    border:1px solid rgba(255,255,255,.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 14px 28px rgba(0,0,0,.35),
        0 0 28px rgba(65,100,200,.14);
}

.auth-brand-text{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}

.auth-brand-text strong{
    font-size:20px;
    line-height:1;
    font-weight:900;
    letter-spacing:.5px;
    color:#ffffff;
}

.auth-brand-text span{
    font-size:11px;
    line-height:1.2;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:#7f8ba0;
}

.auth-head{
    position:relative;
    z-index:1;
    margin-bottom:20px;
}

.auth-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    margin-bottom:14px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.9px;
    text-transform:uppercase;
    color:#c8d5f5;
    background:rgba(80, 112, 190, .105);
    border:1px solid rgba(120, 150, 230, .20);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-badge::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:999px;
    background:#6d8dff;
    box-shadow:0 0 14px rgba(109,141,255,.72);
}

.auth-head h1{
    margin:0 0 8px;
    font-size:36px;
    line-height:1.08;
    letter-spacing:-.04em;
    font-weight:900;
    color:#f8fbff;
}

.auth-head p{
    margin:0;
    font-size:14px;
    line-height:1.7;
    color:#8e9aac;
}

.auth-form{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.auth-body .form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.auth-body .form-group label{
    font-size:13px;
    font-weight:800;
    color:#dce5f4;
    letter-spacing:.2px;
}

.auth-input-wrap{
    position:relative;
}

.auth-input-icon{
    position:absolute;
    top:50%;
    left:16px;
    width:18px;
    height:18px;
    color:#78859a;
    transform:translateY(-50%);
    pointer-events:none;
    z-index:2;
}

.auth-input-icon svg{
    width:18px;
    height:18px;
    display:block;
}

.input.auth-input{
    width:100%;
    min-height:54px;
    height:54px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.082);
    background:rgba(255,255,255,.035);
    color:#f5f8ff;
    padding:0 16px 0 46px;
    outline:none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        inset 0 -1px 0 rgba(255,255,255,.015);
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        transform .22s ease;
}

.input.auth-input::placeholder{
    color:#687386;
}

.input.auth-input:hover{
    border-color:rgba(255,255,255,.13);
    background:rgba(255,255,255,.045);
}

.input.auth-input:focus{
    border-color:rgba(104,136,230,.50);
    background:rgba(255,255,255,.052);
    box-shadow:
        0 0 0 4px rgba(74,104,195,.13),
        0 12px 28px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.btn.auth-submit,
.auth-submit{
    width:100%;
    min-height:56px;
    height:56px;
    margin-top:4px;
    border:none;
    border-radius:16px;
    cursor:pointer;
    color:#ffffff;
    font-size:15px;
    font-weight:900;
    letter-spacing:.2px;
    background:
        linear-gradient(180deg, #3e61c7 0%, #29469b 100%);
    box-shadow:
        0 16px 34px rgba(24,42,100,.42),
        inset 0 1px 0 rgba(255,255,255,.18);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.btn.auth-submit:hover,
.auth-submit:hover{
    transform:translateY(-1px);
    box-shadow:
        0 18px 40px rgba(31,54,130,.48),
        inset 0 1px 0 rgba(255,255,255,.20);
    filter:brightness(1.05);
}

.btn.auth-submit:active,
.auth-submit:active{
    transform:translateY(0);
}

.auth-body .btn-block{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.auth-body .alert{
    position:relative;
    z-index:1;
    border-radius:16px;
    padding:14px 16px;
    margin-bottom:16px;
    font-size:13px;
    line-height:1.6;
    border:1px solid transparent;
}

.auth-body .alert-danger{
    color:#ffdce2;
    background:rgba(210, 55, 78, .105);
    border-color:rgba(255, 87, 111, .22);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

/* Support untuk layout login revisi yang memakai class login-* */
.login-page{
    position:relative;
    min-height:100dvh;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
    background:
        radial-gradient(circle at 22% 18%, rgba(42, 72, 128, .16), transparent 32%),
        radial-gradient(circle at 78% 82%, rgba(52, 48, 105, .12), transparent 30%),
        linear-gradient(135deg, #05070b 0%, #080d14 45%, #030509 100%);
}

.login-bg{
    position:absolute;
    inset:0;
    pointer-events:none;
    overflow:hidden;
}

.login-bg::before{
    content:"";
    position:absolute;
    inset:-80px;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.4px),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size:42px 42px, 68px 68px, 68px 68px;
    opacity:.22;
    animation:authParticles 22s linear infinite;
}

.login-bg::after{
    content:"";
    position:absolute;
    width:60vw;
    height:60vw;
    min-width:520px;
    min-height:520px;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    opacity:.16;
    background:conic-gradient(from 90deg, transparent, rgba(72,108,180,.28), transparent, rgba(88,70,160,.20), transparent);
    filter:blur(46px);
    animation:authSweep 18s linear infinite;
}

.login-orb{
    position:absolute;
    border-radius:999px;
    filter:blur(72px);
    opacity:.22;
    animation:authOrbFloat 10s ease-in-out infinite alternate;
}

.orb-one{
    width:360px;
    height:360px;
    left:-110px;
    top:-90px;
    background:rgba(45, 87, 180, .32);
}

.orb-two{
    width:310px;
    height:310px;
    right:-95px;
    bottom:-80px;
    background:rgba(75, 55, 145, .28);
    animation-delay:-3s;
}

.orb-three{
    width:180px;
    height:180px;
    right:22%;
    top:14%;
    background:rgba(50, 95, 160, .16);
    animation-delay:-5s;
}

.login-wrapper{
    position:relative;
    z-index:1;
    width:min(1040px, 100%);
    display:grid;
    grid-template-columns:1fr 430px;
    gap:34px;
    align-items:center;
}

.login-left{
    padding:24px;
}

.brand-pill,
.mobile-brand{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-weight:900;
    letter-spacing:.08em;
}

.brand-pill{
    padding:10px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.045);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.login-page .brand-logo,
.login-card .brand-logo{
    width:42px;
    height:42px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(145deg, #3756a0, #1b233a);
    color:white;
    font-size:14px;
    font-weight:900;
    box-shadow:0 14px 32px rgba(0,0,0,.34);
}

.login-left h1{
    max-width:620px;
    margin:32px 0 18px;
    font-size:clamp(38px, 5.5vw, 64px);
    line-height:.98;
    letter-spacing:-.06em;
    color:#f7faff;
}

.login-left p{
    max-width:520px;
    margin:0;
    color:#8f9aab;
    font-size:16px;
    line-height:1.75;
}

.login-stats{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:14px;
    max-width:560px;
    margin-top:34px;
}

.login-stats div{
    padding:18px;
    border-radius:22px;
    background:rgba(255,255,255,.042);
    border:1px solid rgba(255,255,255,.075);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.login-stats strong{
    display:block;
    margin-bottom:5px;
    font-size:15px;
    color:#f7faff;
}

.login-stats span{
    display:block;
    color:#7f8ba0;
    font-size:13px;
}

.login-card{
    position:relative;
    padding:30px;
    border-radius:30px;
    color:#f7faff;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        rgba(7, 11, 18, .82);
    border:1px solid rgba(255,255,255,.095);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 28px 90px rgba(0,0,0,.58),
        0 0 0 1px rgba(255,255,255,.018);
    backdrop-filter:blur(20px) saturate(145%);
    -webkit-backdrop-filter:blur(20px) saturate(145%);
    overflow:hidden;
}

.login-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    padding:1px;
    background:linear-gradient(145deg, rgba(118,150,255,.36), rgba(255,255,255,.055), rgba(108,83,190,.20));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    pointer-events:none;
}

.login-card-header,
.modern-login-form,
.login-footer,
.login-alert{
    position:relative;
    z-index:1;
}

.mobile-brand{
    display:none;
    margin-bottom:18px;
}

.secure-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    color:#c8d5f5;
    background:rgba(80, 112, 190, .105);
    border:1px solid rgba(120, 150, 230, .20);
    font-size:12px;
    font-weight:800;
}

.secure-badge span{
    width:7px;
    height:7px;
    border-radius:999px;
    background:#6d8dff;
    box-shadow:0 0 14px rgba(109,141,255,.72);
}

.login-card h2{
    margin:22px 0 8px;
    font-size:34px;
    letter-spacing:-.04em;
    color:#f8fbff;
}

.login-card-header p{
    margin:0;
    color:#8e9aac;
    line-height:1.6;
}

.login-alert{
    margin-bottom:20px;
    padding:14px 16px;
    border-radius:16px;
    color:#ffdce2;
    background:rgba(210,55,78,.105);
    border:1px solid rgba(255,87,111,.22);
    font-size:14px;
    font-weight:700;
}

.modern-login-form{
    display:grid;
    gap:18px;
}

.login-field label{
    display:block;
    margin-bottom:8px;
    color:#dce5f4;
    font-size:13px;
    font-weight:800;
}

.login-input-box{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:56px;
    padding:0 14px;
    border-radius:18px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.082);
    transition:.2s ease;
}

.login-input-box:focus-within{
    background:rgba(255,255,255,.052);
    border-color:rgba(104,136,230,.50);
    box-shadow:0 0 0 4px rgba(74,104,195,.13);
}

.input-icon{
    width:22px;
    height:22px;
    color:#78859a;
    flex:0 0 auto;
}

.input-icon svg{
    width:100%;
    height:100%;
}

.login-input-box input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#f5f8ff;
    font-size:15px;
}

.login-input-box input::placeholder{
    color:#687386;
}

.password-toggle{
    border:0;
    background:transparent;
    color:#9eb4ff;
    font-size:13px;
    font-weight:900;
    cursor:pointer;
    padding:8px;
}

.login-button{
    margin-top:8px;
    width:100%;
    min-height:58px;
    border:0;
    border-radius:18px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:linear-gradient(180deg, #3e61c7 0%, #29469b 100%);
    color:white;
    font-size:15px;
    font-weight:900;
    box-shadow:0 16px 34px rgba(24,42,100,.42), inset 0 1px 0 rgba(255,255,255,.18);
    transition:.2s ease;
}

.login-button svg{
    width:20px;
    height:20px;
    transition:.2s ease;
}

.login-button:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 42px rgba(31,54,130,.50), inset 0 1px 0 rgba(255,255,255,.2);
}

.login-button:hover svg{
    transform:translateX(3px);
}

.login-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.075);
    color:#7f8ba0;
    font-size:13px;
}

@media (max-width:900px){
    .login-page{
        padding:22px;
    }

    .login-wrapper{
        grid-template-columns:1fr;
    }

    .login-left{
        display:none;
    }

    .mobile-brand{
        display:inline-flex;
    }

    .login-card{
        padding:26px;
        border-radius:28px;
    }
}

@media (max-width:640px){
    .auth-shell{
        padding:20px;
    }

    .auth-card{
        max-width:100%;
        border-radius:22px;
        padding:22px 18px 18px;
    }

    .auth-brand{
        gap:12px;
        padding-bottom:16px;
        margin-bottom:16px;
    }

    .auth-brand-logo{
        width:44px;
        height:44px;
        border-radius:14px;
        flex-basis:44px;
    }

    .auth-brand-text strong{
        font-size:17px;
    }

    .auth-head h1{
        font-size:28px;
    }

    .input.auth-input{
        min-height:52px;
        height:52px;
    }

    .btn.auth-submit,
    .auth-submit{
        min-height:54px;
        height:54px;
    }

    .login-page{
        padding:14px;
    }

    .login-card{
        padding:22px;
        border-radius:24px;
    }

    .login-card h2{
        font-size:28px;
    }

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

@media (prefers-reduced-motion: reduce){
    body.auth-body::before,
    .auth-bg::before,
    .auth-bg::after,
    .auth-grid,
    .auth-orb,
    .auth-card::after,
    .login-bg::before,
    .login-bg::after,
    .login-orb{
        animation:none !important;
    }
}


/* RESPONSIVE DASHBOARD */
@media (max-width: 1200px){
    .dashboard-stat-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .dashboard-shortcut-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px){
    .topbar-right-advanced{
        width:100%;
        justify-content:flex-start;
    }

    .dashboard-hero-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .dashboard-mini-box{
        min-width:0;
        width:100%;
    }

    .auth-shell {
        padding: 18px;
    }

    .auth-card {
        padding: 22px;
    }
}

@media (max-width: 900px){
    .dashboard-form-grid-2{
        grid-template-columns: 1fr;
    }

    .dashboard-marquee-shell{
        gap: 10px;
    }

    .dashboard-marquee-speed-chip{
        min-width: 52px;
    }
}

@media (max-width: 700px){
    .dashboard-marquee-shell{
        padding:12px;
        min-height:auto;
        align-items:flex-start;
        flex-direction:column;
    }

    .dashboard-marquee-window{
        width:100%;
    }

    .dashboard-stat-grid,
    .dashboard-shortcut-grid{
        grid-template-columns:1fr;
    }

    .dashboard-hero-copy h2{
        white-space:normal;
    }

    .topbar-time-pill,
    .topbar-profile-pill{
        width:100%;
        justify-content:center;
    }

    .dashboard-marquee-summary{
        width: 100%;
        justify-content: center;
    }

    .dashboard-speed-top{
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px){
    .auth-shell{
        padding:20px;
    }

    .auth-card{
        max-width:100%;
        border-radius:22px;
        padding:22px 18px 18px;
    }

    .auth-brand{
        gap:12px;
        padding-bottom:16px;
        margin-bottom:16px;
    }

    .auth-brand-logo{
        width:44px;
        height:44px;
        border-radius:14px;
        flex-basis:44px;
    }

    .auth-brand-text strong{
        font-size:17px;
    }

    .auth-head h1{
        font-size:28px;
    }

    .input.auth-input{
        min-height:52px;
        height:52px;
    }

    .btn.auth-submit,
    .auth-submit{
        min-height:54px;
        height:54px;
    }
}

/* =========================
   DASHBOARD HEADER + SLIM MARQUEE
========================= */

.dashboard-page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:-4px;
}

.dashboard-page-head-left{
    min-width:0;
}

.dashboard-page-kicker{
    display:block;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.8px;
    color:#92a0b3;
    margin-bottom:6px;
}

.dashboard-page-title{
    margin:0;
    font-size:18px;
    color:#f5f8fd;
    line-height:1.1;
}

.dashboard-page-tools{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    flex:0 0 auto;
}

.dashboard-marquee-editor-top{
    width:auto;
}

.dashboard-marquee-shell-slim{
    min-height:68px;
    padding:0 14px;
    border-radius:18px;
    gap:12px;
}

.dashboard-marquee-shell-slim .dashboard-marquee-label{
    min-height:30px;
    padding:0 12px;
    font-size:11px;
    white-space:nowrap;
}

.dashboard-marquee-shell-slim .dashboard-marquee-window{
    height:22px;
}

.dashboard-marquee-shell-slim .dashboard-marquee-runner span{
    font-size:var(--marquee-font-size, 14px);
    line-height:22px;
    padding-right:72px;
    letter-spacing:.2px;
    font-weight:800;
}

.dashboard-marquee-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
}

.dashboard-marquee-meta .dashboard-marquee-speed-chip{
    min-width:auto;
    height:32px;
    min-height:32px;
    padding:0 10px;
    font-size:11px;
}

@media (max-width: 980px){
    .dashboard-page-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .dashboard-page-tools{
        width:100%;
        justify-content:flex-start;
    }
}

@media (max-width: 700px){
    .dashboard-marquee-shell-slim{
        flex-direction:column;
        align-items:flex-start;
        min-height:auto;
        padding:12px;
    }

    .dashboard-marquee-shell-slim .dashboard-marquee-window{
        width:100%;
    }

    .dashboard-marquee-meta{
        width:100%;
        flex-wrap:wrap;
    }
}


.dashboard-v2.is-user{
    display:grid;
    gap:14px;
    align-content:start;
    margin-top:0 !important;
    padding-top:8px;
}

.dashboard-v2.is-user .dashboard-page-head{
    display:none !important;
}

.dashboard-v2.is-user .dashboard-marquee-toolbar{
    display:none !important;
}

.dashboard-v2.is-user .dashboard-marquee-shell,
.dashboard-v2.is-user .dashboard-marquee-shell-slim{
    margin-top:0 !important;
}

.dashboard-v2.is-user .dashboard-marquee-shell-slim{
    min-height:118px !important;
    padding:0 20px !important;
    border-radius:22px !important;
    gap:16px !important;
}

.dashboard-v2.is-user .dashboard-marquee-shell-slim .dashboard-marquee-label{
    min-height:36px !important;
    padding:0 13px !important;
    font-size:11px !important;
}

.dashboard-v2.is-user .dashboard-marquee-shell-slim .dashboard-marquee-window{
    height:34px !important;
}

.dashboard-v2.is-user .dashboard-marquee-shell-slim .dashboard-marquee-runner span{
    line-height:34px !important;
}

.dashboard-v2.is-user .dashboard-marquee-meta{
    gap:10px !important;
}

.dashboard-v2.is-user .dashboard-marquee-meta .dashboard-marquee-speed-chip{
    min-height:36px !important;
    height:36px !important;
    padding:0 12px !important;
    font-size:11px !important;
}

.dashboard-v2.is-user .dashboard-hero-card{
    margin-top:0 !important;
}
.menu-group {
    width: 100%;
}

.menu-group .menu-item {
    width: 100%;
    font-family: inherit;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 8px 48px;
}

.has-submenu.open .submenu {
    display: flex;
}

.submenu a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: #c8d3e6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
}

.submenu a:hover,
.submenu a.active {
    color: #ffffff;
    background: rgba(99, 142, 255, 0.16);
    border-color: rgba(120, 160, 255, 0.35);
}

/* =====================================================
   LOGIN DARK ANIMATED BACKGROUND - OVERRIDE FINAL
===================================================== */

body.auth-body {
    min-height: 100dvh;
    overflow: hidden;
    background: #05080f !important;
    color: #f8fafc;
}

/* Background utama */
.auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.13), transparent 28%),
        linear-gradient(135deg, #05080f 0%, #070b14 45%, #03050a 100%);
}

/* Grid bergerak */
.auth-grid {
    position: absolute;
    inset: -80px;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
    animation: loginGridMove 18s linear infinite;
}

/* Partikel kecil bergerak */
.auth-bg::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(147, 197, 253, 0.75);
    box-shadow:
        90px 80px rgba(147, 197, 253, 0.45),
        180px 180px rgba(147, 197, 253, 0.35),
        300px 120px rgba(147, 197, 253, 0.55),
        430px 260px rgba(147, 197, 253, 0.35),
        580px 110px rgba(147, 197, 253, 0.5),
        730px 330px rgba(147, 197, 253, 0.3),
        880px 190px rgba(147, 197, 253, 0.5),
        1040px 390px rgba(147, 197, 253, 0.4),
        1180px 130px rgba(147, 197, 253, 0.45),
        1320px 300px rgba(147, 197, 253, 0.35),
        1480px 170px rgba(147, 197, 253, 0.5),
        1600px 420px rgba(147, 197, 253, 0.4);
    animation: loginParticles 12s linear infinite;
}

/* Cahaya bergerak halus */
.auth-bg::after {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 32%);
    filter: blur(60px);
    opacity: 0.75;
    animation: loginGlowMove 10s ease-in-out infinite alternate;
}

/* Orb dibuat lebih terlihat */
.auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.5;
    animation: loginOrbFloat 8s ease-in-out infinite alternate;
}

.auth-orb-1 {
    width: 360px;
    height: 360px;
    left: -90px;
    top: -80px;
    background: rgba(37, 99, 235, 0.24);
}

.auth-orb-2 {
    width: 330px;
    height: 330px;
    right: -90px;
    bottom: -90px;
    background: rgba(79, 70, 229, 0.22);
    animation-delay: 1.5s;
}

/* Card login tetap gelap */
.auth-card {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(8, 13, 23, 0.94)) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* Animasi */
@keyframes loginGridMove {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(48px, 48px, 0);
    }
}

@keyframes loginParticles {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 0.35;
    }
    50% {
        opacity: 0.85;
    }
    to {
        transform: translate3d(-180px, 260px, 0);
        opacity: 0.35;
    }
}

@keyframes loginGlowMove {
    0% {
        transform: translate3d(-8%, -4%, 0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate3d(8%, 6%, 0) rotate(12deg) scale(1.12);
    }
}

@keyframes loginOrbFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(35px, -28px, 0) scale(1.12);
    }
}

/* =====================================================
   FORCE MOBILE TETAP SEPERTI DESKTOP / WEB
   Letakkan PALING BAWAH style.css
===================================================== */

@media (max-width: 980px) {
    html,
    body {
        width: 100%;
        height: auto !important;
        min-height: 100%;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 1280px !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    .app-shell {
        width: 1280px !important;
        min-width: 1280px !important;
        height: auto !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: row !important;
        overflow: visible !important;
    }

    .sidebar {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        z-index: 10 !important;
        width: var(--sidebar-w) !important;
        min-width: var(--sidebar-w) !important;
        max-width: var(--sidebar-w) !important;
        height: 100dvh !important;
        padding: 14px 12px 14px 14px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: none !important;
    }

    .sidebar.open {
        left: auto !important;
    }

    .sidebar::before {
        inset: 10px 8px 10px 10px !important;
        border-radius: 30px !important;
    }

    .sidebar::after {
        top: 20px !important;
        right: 8px !important;
        height: calc(100% - 40px) !important;
    }

    .main-content {
        flex: 1 0 1000px !important;
        width: 1000px !important;
        min-width: 1000px !important;
        height: auto !important;
        min-height: 100dvh !important;
        overflow: visible !important;
        padding: 20px !important;
    }

    .content-area {
        overflow: visible !important;
        min-height: auto !important;
        padding-right: 0 !important;
    }

    .menu-toggle {
        display: none !important;
    }

    .topbar {
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 18px 22px !important;
    }

    .topbar-right,
    .topbar-right-advanced {
        width: auto !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
    }

    .dashboard-page-head {
        flex-direction: row !important;
        align-items: center !important;
    }

    .dashboard-page-tools {
        width: auto !important;
        justify-content: flex-end !important;
    }

    .dashboard-hero-card {
        flex-direction: row !important;
        align-items: center !important;
    }

    .dashboard-mini-box {
        width: auto !important;
        min-width: 110px !important;
    }

    .dashboard-marquee-shell,
    .dashboard-marquee-shell-slim {
        flex-direction: row !important;
        align-items: center !important;
        min-height: 68px !important;
        padding: 0 14px !important;
    }

    .dashboard-marquee-window {
        width: auto !important;
    }

    .dashboard-marquee-meta {
        width: auto !important;
        flex-wrap: nowrap !important;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .dashboard-shortcut-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .users-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .card {
        padding: 22px !important;
    }
}

.dashboard-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-shortcut-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 72px;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.dashboard-shortcut-card strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-shortcut-card span {
    color: #b9c7d8;
    font-size: 13px;
    line-height: 1.4;
}

.dashboard-shortcut-card:hover {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

/* =====================================================
   SIDEBAR MODERN WITH ICON
===================================================== */

.sidebar {
    width: var(--sidebar-w, 260px);
    min-width: var(--sidebar-w, 260px);
    height: 100dvh;
    padding: 12px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 34%),
        linear-gradient(180deg, #111821 0%, #070b11 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.38);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.28), rgba(255, 255, 255, 0.08)),
        #17202c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.brand-text span {
    color: #93c5fd;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.menu::-webkit-scrollbar {
    width: 4px;
}

.menu::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}

.menu-item {
    position: relative;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dbeafe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: inherit;
    text-align: left;
}

.menu-item::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 4px;
    height: 0;
    border-radius: 999px;
    background: #60a5fa;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.menu-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.menu-item.active,
.menu-group.active > .submenu-toggle {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(255, 255, 255, 0.045));
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

.menu-item.active::before,
.menu-group.active > .submenu-toggle::before {
    height: 26px;
}

.menu-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(148, 163, 184, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.menu-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon,
.menu-group.active > .submenu-toggle .menu-icon {
    background: rgba(59, 130, 246, 0.23);
    border-color: rgba(96, 165, 250, 0.38);
    color: #ffffff;
}

.menu-item span:nth-child(2) {
    flex: 1;
    white-space: nowrap;
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.submenu-toggle {
    justify-content: flex-start;
}

.submenu-arrow {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: grid;
    place-items: center;
    margin-left: auto;
    transition: 0.25s ease;
    opacity: 0.8;
}

.submenu-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.menu-group.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-left: 44px;
    padding-left: 12px;
    border-left: 1px solid rgba(96, 165, 250, 0.18);
}

.menu-group.open .submenu {
    display: flex;
}

.submenu a {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    color: #b9c7d8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.22s ease;
}

.submenu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.submenu a.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.25);
}

.menu-item-logout {
    margin-top: auto;
    color: #fecaca;
}

.menu-item-logout:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.25);
}

.menu-item-logout .menu-icon {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
}

/* =========================
   CHAT WIDGET
========================= */
.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.chat-toggle {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0056d6);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.45);
}

.chat-box {
    position: absolute;
    right: 0;
    bottom: 75px;
    width: 320px;
    height: 430px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.chat-box.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #0d6efd, #0056d6);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header strong {
    display: block;
    font-size: 15px;
}

.chat-header small {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.admin {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.admin .bubble {
    background: #e9eefc;
    color: #1f2937;
    border-bottom-left-radius: 5px;
}

.message.user .bubble {
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    padding: 0 4px;
}

.message.user .time {
    text-align: right;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.chat-input-area button {
    border: none;
    background: #0d6efd;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.chat-input-area button:hover {
    background: #0b5ed7;
}

/* Responsive */
@media (max-width: 480px) {
    .chat-box {
        width: 92vw;
        right: 0;
        bottom: 75px;
    }

    .chat-widget {
        right: 12px;
        bottom: 12px;
    }
}

/* ===============================
   SIDEBAR BOTTOM MENU
   Set Akses + Users di atas Logout
================================ */

.sidebar-inner{
    height:100%;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.menu{
    flex:1;
    display:flex;
    flex-direction:column;
}

.menu-bottom{
    margin-top:auto;
    padding-top:14px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.menu-bottom .menu-item{
    margin-top:0 !important;
}

.menu-bottom .menu-item-logout{
    margin-top:10px !important;
}