* {
    box-sizing: border-box
}

:root {
    --bg: #0b0d14;
    --panel: #121621;
    --panel2: #171d2a;
    --line: #252c3b;
    --muted: #8791a5;
    --text: #edf0f7;
    --purple: #8b78ff;
    --font: 'DM Sans', sans-serif
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text)
}

a {
    color: inherit;
    text-decoration: none
}

.dashboard-shell {
    min-height: 100vh
}

.sidebar {
    width: 258px;
    background: #0e121c;
    border-right: 1px solid #202635;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    padding: 27px 17px 18px;
    display: flex;
    flex-direction: column
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 800 19px Manrope, sans-serif;
    letter-spacing: .5px;
    padding: 0 9px 38px
}

.brand-symbol {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #927eff, #6450d7);
    box-shadow: 0 8px 25px #7964ff40;
    color: white;
    font-size: 20px
}

.brand-dot {
    color: #9d8cff
}

.dash-brand small {
    display: block;
    font: 600 8px var(--font);
    letter-spacing: 2px;
    color: #778197;
    margin-top: 3px
}

.sidebar-label,
.section-kicker,
.top-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    color: #737e94
}

.sidebar-label {
    padding: 0 12px 12px
}

.side-nav {
    display: grid;
    gap: 7px
}

.side-link {
    height: 46px;
    border-radius: 10px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #98a2b5;
    font-size: 13px;
    font-weight: 600;
    transition: .2s
}

.side-link:hover {
    background: #1a2030;
    color: #fff
}

.side-link.active {
    background: linear-gradient(100deg, #725de5, #5e4cc6);
    color: #fff;
    box-shadow: 0 8px 22px #6d5ce52b
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 20px;
    line-height: 1
}

.nav-tag {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 1px;
    color: #b8adff;
    background: #ffffff16;
    padding: 4px 6px;
    border-radius: 5px
}

.sidebar-bottom {
    margin-top: auto
}

.sidebar-help {
    background: linear-gradient(145deg, #191e30, #151a27);
    border: 1px solid #2a3042;
    border-radius: 13px;
    padding: 15px;
    margin: 0 2px 15px
}

.help-icon {
    color: #a99aff;
    font-size: 20px;
    margin-bottom: 8px
}

.sidebar-help strong {
    font-size: 12px
}

.sidebar-help p {
    font-size: 11px;
    color: #8490a5;
    line-height: 1.6;
    margin: 5px 0 0
}

.logout-link {
    border-top: 1px solid #202635;
    border-radius: 0;
    margin-top: 8px;
    padding-top: 13px
}

.sidebar-copy {
    font-size: 10px;
    color: #626d81;
    padding: 15px 12px 0
}

.main-area {
    margin-left: 258px;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.topbar {
    height: 88px;
    border-bottom: 1px solid #202635;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    background: #0d111a
}

.top-eyebrow {
    font-size: 9px;
    margin-bottom: 5px
}

.topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(100deg, #725de5, #5e4cc6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s
}

.topbar-action:hover {
    filter: brightness(1.12)
}

.topbar h1 {
    font: 700 19px Manrope, sans-serif;
    margin: 0
}

.topbar-right,
.top-user,
.topbar-left {
    display: flex;
    align-items: center
}

.topbar-right {
    gap: 11px
}

.online-indicator,
.source-dot,
.welcome-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #39c98a;
    box-shadow: 0 0 10px #39c98a88
}

.online-text {
    font-size: 11px;
    color: #9aa5b8
}

.top-divider {
    height: 30px;
    width: 1px;
    background: #293043;
    margin: 0 9px
}

.avatar,
.profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8774f5, #5141ad);
    font-weight: 800;
    color: white
}

.avatar {
    width: 36px;
    height: 36px;
    font-size: 13px
}

.top-user {
    gap: 9px
}

.top-user-info strong,
.top-user-info small {
    display: block
}

.top-user-info strong {
    font-size: 11px
}

.top-user-info small {
    font-size: 10px;
    color: #8994a8;
    margin-top: 3px
}

.page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 32px;
    flex: 1
}

.page-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #202635;
    padding: 17px 32px;
    color: #68748a;
    font-size: 10px
}

.welcome-row,
.map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px
}

.welcome-row h2,
.map-heading h2 {
    font: 700 24px Manrope, sans-serif;
    margin: 8px 0 6px;
    letter-spacing: -.6px
}

.welcome-row p,
.map-heading p {
    font-size: 12px;
    color: #8d98ab;
    margin: 0
}

.welcome-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #12251f;
    border: 1px solid #1c493a;
    color: #70d7a9;
    border-radius: 30px;
    padding: 9px 13px;
    font-size: 10px;
    font-weight: 700
}

.account-grid {
    display: grid;
    grid-template-columns: .88fr 1.4fr;
    gap: 17px
}

.account-card {
    background: linear-gradient(145deg, #151b28, #111621);
    border: 1px solid #252d3d;
    border-radius: 16px;
    padding: 22px;
    min-width: 0
}

.card-top {
    display: flex;
    align-items: center;
    gap: 10px
}

.card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 17px
}

.card-icon.purple {
    background: #292342;
    color: #b5a8ff
}

.card-icon.blue {
    background: #1c3042;
    color: #83caff
}

.card-overline {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: #8893a8
}

.card-status {
    margin-left: auto;
    color: #68d7a5;
    background: #143025;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px
}

.profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 24px;
    margin: 28px auto 13px
}

.account-card-main {
    text-align: center
}

.account-card-main h3 {
    font: 700 17px Manrope;
    margin: 0
}

.profile-handle {
    font-size: 11px;
    color: #8792a7;
    margin: 5px 0 20px
}

.profile-rule {
    height: 1px;
    background: #283041;
    margin: 0 0 14px
}

.profile-meta,
.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.profile-meta {
    padding: 9px 0;
    font-size: 11px;
    color: #8994a8
}

.profile-meta strong {
    color: #e5e9f2;
    font-size: 11px
}

.text-green {
    color: #5dd39c !important
}

.details-card h3 {
    font: 700 17px Manrope;
    margin: 20px 0 5px
}

.card-description {
    font-size: 11px;
    color: #8490a5;
    margin: 0 0 16px
}

.detail-list {
    border-top: 1px solid #283041
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #252d3b;
    font-size: 11px
}

.detail-row span {
    color: #8490a5
}

.detail-row strong {
    font-weight: 600;
    color: #e4e8f0;
    text-align: right;
    overflow-wrap: anywhere
}

.note-panel {
    margin-top: 17px;
    border: 1px solid #2b3042;
    background: #151a28;
    border-radius: 13px;
    padding: 16px;
    display: flex;
    gap: 13px;
    align-items: flex-start
}

.note-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #292342;
    color: #b6a9ff;
    display: grid;
    place-items: center
}

.note-panel strong {
    font-size: 11px
}

.note-panel p {
    font-size: 11px;
    color: #8792a7;
    margin: 5px 0 0;
    line-height: 1.6
}

.map-heading {
    margin-bottom: 19px
}

.map-source {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2a3343;
    background: #151b27;
    border-radius: 8px;
    padding: 9px 12px;
    color: #aab4c6;
    font-size: 10px
}

.map-panel {
    overflow: hidden;
    border: 1px solid #2a3140;
    border-radius: 15px;
    background: #121722
}

.map-toolbar {
    height: 57px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #293142
}

.map-toolbar strong,
.map-toolbar span {
    display: block
}

.map-toolbar strong {
    font-size: 11px
}

.map-toolbar span {
    font-size: 9px;
    color: #7f8ba0;
    margin-top: 3px
}

.map-coordinates {
    font-size: 10px;
    color: #a9b2c4;
    font-variant-numeric: tabular-nums
}

.map-canvas {
    height: calc(100vh - 300px);
    min-height: 430px;
    background: #202b35
}

.map-foot {
    height: 38px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    color: #78859a
}

.map-foot span:first-child {
    display: flex;
    align-items: center;
    gap: 7px
}

.legend-satellite {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #78a88d
}

.mobile-menu {
    display: none;
    background: #1b2231;
    border: 1px solid #30394b;
    color: white;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 16px
}

[hidden] {
    display: none !important
}

.top-user {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 10px;
    transition: .2s
}

.top-user:hover {
    background: #1a2030
}

.avatar {
    overflow: hidden
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.profile-dropdown {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 240px;
    background: #141a26;
    border: 1px solid #2a3141;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px #0009;
    z-index: 40
}

.pd-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #252c3b;
    margin-bottom: 6px
}

.pd-head strong,
.pd-head small {
    display: block;
    overflow-wrap: anywhere
}

.pd-head strong {
    font-size: 13px
}

.pd-head small {
    font-size: 11px;
    color: #8994a8;
    margin-top: 3px
}

.pd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c3cad8;
    font: 600 12px var(--font);
    text-align: left;
    cursor: pointer
}

.pd-item:hover {
    background: #1d2433;
    color: #fff
}

.pd-logout {
    margin-top: 6px;
    border-top: 1px solid #252c3b;
    border-radius: 0 0 8px 8px;
    color: #fda4af
}

.pm-backdrop {
    position: fixed;
    inset: 0;
    background: #000a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 60
}

.pm-box {
    width: min(420px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #141a26;
    border: 1px solid #2a3141;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 80px #0008
}

.pm-box h3 {
    font: 700 18px Manrope, sans-serif;
    margin: 0 0 16px
}

.pm-box label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #b8c0cf;
    margin: 14px 0 7px
}

.pm-input {
    width: 100%;
    height: 42px;
    background: #0e131d;
    border: 1px solid #30394b;
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    outline: none
}

.pm-input[type=file] {
    padding: 9px 12px;
    height: auto
}

.pm-input:focus {
    border-color: #8b78ff
}

.pm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px
}

.pm-btn {
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(100deg, #7966ed, #5e4bc6);
    color: #fff;
    font: 700 12px var(--font);
    cursor: pointer
}

.pm-btn.ghost {
    background: #1b2231;
    border-color: #30394b;
    color: #c3cad8
}

.pm-btn.danger {
    background: #3a1d27;
    border-color: #713b4a;
    color: #fda4af;
    width: 100%
}

.pm-remove {
    margin-top: 12px
}

.pm-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 6px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8774f5, #5141ad);
    font: 800 34px var(--font);
    color: #fff
}

.pm-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.flash-msg {
    padding: 13px 16px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 13px
}

.flash-msg.ok {
    background: #142a24;
    border: 1px solid #24644c;
    color: #86efac
}

.flash-msg.err {
    background: #351d25;
    border: 1px solid #713b4a;
    color: #fda4af
}

@media(max-width:850px) {
    .profile-dropdown {
        top: 72px;
        right: 12px
    }
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(ellipse at 50% 0%, #252044 0, transparent 48%), #0b0d14
}

.login-card {
    width: min(430px, 100%);
    background: #141a26;
    border: 1px solid #2a3141;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 25px 80px #0006
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 19px Manrope;
    margin-bottom: 34px
}

.login-card h1 {
    font: 700 25px Manrope;
    margin: 10px 0 7px
}

.login-subtitle {
    font-size: 12px;
    color: #8b96aa;
    margin: 0 0 25px
}

.login-card label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #b8c0cf;
    margin: 15px 0 7px
}

.login-card input {
    width: 100%;
    height: 44px;
    background: #0e131d;
    border: 1px solid #30394b;
    border-radius: 8px;
    padding: 0 12px;
    color: white;
    outline: none
}

.login-card input:focus {
    border-color: #8b78ff
}

.login-card button {
    width: 100%;
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, #7966ed, #5e4bc6);
    color: white;
    font-weight: 700;
    margin-top: 23px;
    cursor: pointer
}

.login-card button span {
    float: right
}

.login-bottom {
    text-align: center;
    color: #758197;
    font-size: 10px;
    margin-top: 20px
}

.login-error {
    background: #3a2029;
    border: 1px solid #683341;
    color: #ffabb7;
    padding: 10px;
    border-radius: 7px;
    font-size: 11px
}

@media(max-width:850px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s;
        box-shadow: 20px 0 50px #0008
    }

    .sidebar.sidebar-open {
        transform: translateX(0)
    }

    .main-area {
        margin-left: 0
    }

    .mobile-menu {
        display: block;
        margin-right: 12px
    }

    .topbar {
        padding: 0 20px;
        height: 76px
    }

    .page-content {
        padding: 27px 20px
    }

    .page-footer {
        padding: 15px 20px
    }

    .top-user-info {
        display: none
    }
}

@media(max-width:600px) {
    .account-grid {
        grid-template-columns: 1fr
    }

    .welcome-row,
    .map-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .welcome-row h2,
    .map-heading h2 {
        font-size: 21px
    }

    .topbar-right {
        gap: 6px
    }

    .online-text,
    .top-divider {
        display: none
    }

    .map-canvas {
        height: 65vh;
        min-height: 380px
    }

    .map-toolbar {
        padding: 0 11px
    }

    .map-coordinates {
        font-size: 8px
    }

    .map-foot {
        font-size: 8px;
        padding: 0 9px
    }

    .page-footer {
        font-size: 9px
    }

    .login-card {
        padding: 25px
    }
}