* {
    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
   Premium Black Glass
========================= */

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 15% 20%, rgba(57,97,180,.16), transparent 26%),
        radial-gradient(circle at 85% 78%, rgba(21,56,120,.14), transparent 24%),
        linear-gradient(135deg, var(--auth-bg-1) 0%, var(--auth-bg-2) 45%, var(--auth-bg-3) 100%);
}

.auth-bg{
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden;
}

.auth-grid{
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size:72px 72px;
    mask-image:linear-gradient(to bottom, rgba(255,255,255,.22), transparent 85%);
    opacity:.22;
}

.auth-orb{
    position:absolute;
    border-radius:999px;
    filter:blur(80px);
    opacity:.28;
}

.auth-orb-1{
    width:340px;
    height:340px;
    left:-60px;
    top:-40px;
    background:rgba(53,102,255,.26);
}

.auth-orb-2{
    width:260px;
    height:260px;
    right:-50px;
    bottom:-30px;
    background:rgba(25,71,180,.18);
}

.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:430px;
    padding:26px 26px 24px;
    border-radius:26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    background-color:var(--auth-card);
    border:1px solid var(--auth-border);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 0 0 1px rgba(255,255,255,.02),
        var(--auth-shadow);
    backdrop-filter:blur(18px) saturate(145%);
    -webkit-backdrop-filter:blur(18px) saturate(145%);
    overflow:hidden;
}

.auth-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    padding:1px;
    background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
    -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-glow{
    position:absolute;
    top:-90px;
    left:50%;
    transform:translateX(-50%);
    width:220px;
    height:220px;
    border-radius:999px;
    background:radial-gradient(circle, rgba(58,104,255,.16) 0%, rgba(58,104,255,0) 70%);
    pointer-events:none;
}

.auth-brand{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:18px;
    margin-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.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:800;
    letter-spacing:.8px;
    font-size:14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 10px 22px rgba(0,0,0,.26);
}

.auth-brand-text{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.auth-brand-text strong{
    font-size:20px;
    line-height:1;
    font-weight:800;
    letter-spacing:.4px;
    color:#ffffff;
}

.auth-brand-text span{
    font-size:11px;
    line-height:1.2;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--auth-muted);
}

.auth-head{
    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:700;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#d8e3ff;
    background:rgba(47,94,255,.12);
    border:1px solid rgba(90,133,255,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.auth-head h1{
    margin:0 0 8px;
    font-size:38px;
    line-height:1.08;
    letter-spacing:-.04em;
    font-weight:800;
    color:#ffffff;
}

.auth-head p{
    margin:0;
    font-size:14px;
    line-height:1.7;
    color:var(--auth-muted);
}

.auth-form{
    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:700;
    color:#e7edf9;
    letter-spacing:.2px;
}

.auth-input-wrap{
    position:relative;
}

.auth-input-icon{
    position:absolute;
    top:50%;
    left:16px;
    width:18px;
    height:18px;
    color:#7f8ca3;
    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 var(--auth-input-border);
    background:var(--auth-input-bg);
    color:#f5f7fc;
    padding:0 16px 0 46px;
    outline:none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        inset 0 -1px 0 rgba(255,255,255,.02);
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        transform .22s ease;
}

.input.auth-input::placeholder{
    color:#6f7b90;
}

.input.auth-input:hover{
    border-color:rgba(255,255,255,.12);
    background:rgba(255,255,255,.045);
}

.input.auth-input:focus{
    border-color:rgba(111,148,255,.42);
    background:rgba(255,255,255,.05);
    box-shadow:
        0 0 0 4px rgba(62,104,255,.12),
        0 10px 26px rgba(10,18,35,.28),
        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:800;
    letter-spacing:.2px;
    background:
        linear-gradient(180deg, var(--auth-blue-2) 0%, var(--auth-blue) 100%);
    box-shadow:
        0 16px 34px rgba(47,94,255,.30),
        inset 0 1px 0 rgba(255,255,255,.20);
    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 38px rgba(47,94,255,.36),
        inset 0 1px 0 rgba(255,255,255,.22);
    filter:brightness(1.03);
}

.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{
    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:#ffd9df;
    background:rgba(255,72,102,.09);
    border-color:rgba(255,72,102,.20);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

/* 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;
}