body.nexus-elitepanel {
    --elite-radius: 8px;
    --elite-sidebar-width: 304px;
    --elite-bg: #eef3f8;
    --elite-ink: #162033;
    --elite-muted: #66758a;
    --elite-line: #d8e2ec;
    --elite-panel: rgba(255, 255, 255, 0.94);
    --elite-panel-strong: #ffffff;
    --elite-nav: #111827;
    --elite-nav-panel: #182132;
    --elite-blue: var(--primary-color);
    --elite-teal: var(--success-color);
    --elite-amber: #d97706;
    --elite-danger: var(--danger-color);
    --elite-focus: color-mix(in srgb, var(--elite-blue) 18%, transparent);
    --elite-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --elite-shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--elite-blue) 11%, transparent), transparent 32rem),
        linear-gradient(225deg, color-mix(in srgb, var(--elite-teal) 8%, transparent), transparent 30rem),
        var(--elite-bg);
}

body.nexus-elitepanel::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent 78%);
}

body.nexus-elitepanel a {
    text-decoration: none;
}

body.nexus-elitepanel main.container-fluid {
    width: min(1480px, 100%);
    padding-inline: clamp(14px, 2vw, 28px);
}

body.nexus-authenticated {
    --nav-bg: var(--elite-nav);
}

body.nexus-authenticated .navbar {
    position: fixed;
    inset: 16px auto 16px 16px;
    z-index: 1030;
    width: var(--elite-sidebar-width);
    overflow: visible;
    border: 1px solid rgba(226, 232, 240, .16);
    border-radius: 12px;
    background: linear-gradient(180deg, #1a2435, #101827 68%, #0d131f) !important;
    box-shadow: var(--elite-shadow);
}

body.nexus-authenticated .navbar .container-fluid {
    height: 100%;
    max-width: none;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}

body.nexus-authenticated .navbar-brand {
    min-height: 112px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0;
    color: #f8fbff;
    font-size: 1rem;
    letter-spacing: 0;
}

body.nexus-authenticated .brand-logo {
    width: 112px;
    height: 112px;
    padding: 0;
    border-radius: var(--elite-radius);
    background: #050706;
    box-shadow: 0 16px 36px color-mix(in srgb, var(--elite-teal) 28%, transparent);
}

body.nexus-authenticated .navbar-collapse {
    display: block !important;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.1rem;
    scrollbar-width: none;
}

body.nexus-authenticated .navbar-collapse::-webkit-scrollbar {
    display: none;
}

body.nexus-authenticated .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

body.nexus-authenticated .navbar-dark .navbar-nav .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid transparent;
    border-radius: var(--elite-radius);
    color: rgba(236, 244, 255, .78);
    font-weight: 780;
}

body.nexus-authenticated .navbar-dark .navbar-nav .nav-link:hover,
body.nexus-authenticated .navbar-dark .navbar-nav .nav-link:focus,
body.nexus-authenticated .navbar-dark .navbar-nav .show > .nav-link {
    border-color: color-mix(in srgb, var(--elite-blue) 34%, transparent);
    background: color-mix(in srgb, var(--elite-blue) 16%, transparent);
    color: #fff;
}

body.nexus-authenticated .navbar .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

body.nexus-authenticated .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin: 0.2rem 0 0.45rem;
    padding: 0.4rem;
    border: 1px solid rgba(226, 232, 240, .12);
    border-radius: var(--elite-radius);
    background: rgba(9, 14, 24, .68);
    box-shadow: none;
}

body.nexus-authenticated .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 36px;
    margin: 2px 0;
    border-radius: 7px;
    color: rgba(236, 244, 255, .8);
}

body.nexus-authenticated .dropdown-item:hover,
body.nexus-authenticated .dropdown-item:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

body.nexus-authenticated .dropdown-divider {
    border-color: rgba(255, 255, 255, .12);
}

body.nexus-authenticated main.container-fluid {
    width: calc(100% - var(--elite-sidebar-width) - 48px);
    max-width: none;
    margin-left: calc(var(--elite-sidebar-width) + 24px);
    padding: clamp(18px, 3vw, 34px);
}

body.nexus-authenticated .app-footer {
    width: calc(100% - var(--elite-sidebar-width) - 48px);
    margin-left: calc(var(--elite-sidebar-width) + 32px);
    border-top: 1px solid var(--elite-line);
    background: transparent !important;
    color: var(--elite-muted) !important;
}

body.nexus-public main.container-fluid {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 34px);
}

body.nexus-public .navbar {
    border-bottom: 1px solid rgba(226, 232, 240, .16);
    background: linear-gradient(90deg, #111827, #172033) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
}

body.nexus-public main.container-fluid > .row.justify-content-center {
    width: min(1180px, 100%);
    min-height: calc(100vh - 160px) !important;
    align-items: center !important;
}

body.nexus-public main.container-fluid > .row.justify-content-center > [class*="col-"] {
    width: min(100%, 470px);
}

body.nexus-public .card {
    overflow: hidden;
}

body.nexus-public .card::after {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--elite-blue), var(--elite-teal), var(--elite-amber));
}

body.nexus-public .login-brand {
    gap: 0.8rem;
}

body.nexus-public .login-brand h5 {
    font-weight: 900;
}

body.nexus-public .brand-logo {
    width: 96px;
    height: 96px;
    padding: 0;
    background: #050706;
}

body.nexus-elitepanel .workspace-header {
    align-items: flex-end;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--elite-line);
    border-radius: 12px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--elite-blue) 12%, transparent), transparent 46%),
        var(--elite-panel);
    box-shadow: var(--elite-shadow-soft);
}

body.nexus-elitepanel .workspace-header h1,
body.nexus-elitepanel .workspace-header h2,
body.nexus-elitepanel .workspace-header h3 {
    font-weight: 900;
}

body.nexus-elitepanel .eyebrow {
    color: var(--elite-teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.nexus-elitepanel .card,
body.nexus-elitepanel .panel-card,
body.nexus-elitepanel .property-card,
body.nexus-elitepanel .agent-card,
body.nexus-elitepanel .brand-preview,
body.nexus-elitepanel .kanban-column,
body.nexus-elitepanel .pipeline-card,
body.nexus-elitepanel .media-page-card,
body.nexus-elitepanel .modal-content {
    border: 1px solid var(--elite-line) !important;
    border-radius: 12px;
    background: var(--elite-panel);
    box-shadow: var(--elite-shadow-soft) !important;
}

body.nexus-elitepanel .card {
    overflow: clip;
}

body.nexus-elitepanel .modal-dialog-scrollable form.modal-content {
    max-height: 100%;
    overflow: hidden;
}

body.nexus-elitepanel .modal-dialog-scrollable form.modal-content .modal-body {
    overflow-y: auto;
}

body.nexus-elitepanel .bg-gradient-primary,
body.nexus-elitepanel .bg-gradient-success,
body.nexus-elitepanel .bg-gradient-info,
body.nexus-elitepanel .bg-gradient-warning {
    position: relative;
    overflow: hidden;
    background: var(--elite-panel-strong) !important;
    border-left: 0;
}

body.nexus-elitepanel .bg-gradient-primary::before,
body.nexus-elitepanel .bg-gradient-success::before,
body.nexus-elitepanel .bg-gradient-info::before,
body.nexus-elitepanel .bg-gradient-warning::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--elite-blue), var(--elite-teal));
}

body.nexus-elitepanel .bg-gradient-warning::before {
    background: linear-gradient(90deg, var(--elite-amber), var(--elite-blue));
}

body.nexus-elitepanel .card-header,
body.nexus-elitepanel .modal-header {
    background: color-mix(in srgb, var(--elite-bg) 78%, var(--elite-panel-strong)) !important;
    border-bottom: 1px solid var(--elite-line);
}

body.nexus-elitepanel .card:hover,
body.nexus-elitepanel .list-group-item:hover,
body.nexus-elitepanel .property-card:hover,
body.nexus-elitepanel .agent-card:hover {
    transform: translateY(-1px);
}

body.nexus-elitepanel .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--elite-radius);
    font-weight: 760;
    box-shadow: none;
}

body.nexus-elitepanel .btn-primary,
body.nexus-elitepanel .btn-success,
body.nexus-elitepanel .btn-info {
    border-color: transparent;
    background: linear-gradient(135deg, var(--elite-blue), var(--elite-teal));
    box-shadow: 0 16px 34px color-mix(in srgb, var(--elite-blue) 18%, transparent);
}

body.nexus-elitepanel .btn-primary:hover,
body.nexus-elitepanel .btn-success:hover,
body.nexus-elitepanel .btn-info:hover {
    filter: brightness(.97);
    transform: translateY(-1px);
}

body.nexus-elitepanel .btn-outline-secondary,
body.nexus-elitepanel .btn-outline-primary,
body.nexus-elitepanel .btn-outline-danger,
body.nexus-elitepanel .btn-light {
    border: 1px solid var(--elite-line);
}

body.nexus-elitepanel .form-control,
body.nexus-elitepanel .form-select {
    min-height: 44px;
    border-color: var(--elite-line);
    border-radius: var(--elite-radius);
    background-color: var(--elite-panel-strong);
}

body.nexus-elitepanel textarea.form-control {
    min-height: 116px;
}

body.nexus-elitepanel .form-control:focus,
body.nexus-elitepanel .form-select:focus {
    border-color: var(--elite-blue);
    outline: 3px solid var(--elite-focus);
    box-shadow: none;
}

body.nexus-elitepanel .table {
    border-collapse: separate;
    border-spacing: 0;
}

body.nexus-elitepanel .table-responsive,
body.nexus-elitepanel .table-wrap {
    border: 1px solid var(--elite-line);
    border-radius: 10px;
    background: var(--elite-panel-strong);
}

body.nexus-elitepanel .table thead th {
    background: color-mix(in srgb, var(--elite-bg) 76%, #fff);
    color: var(--elite-muted);
    border-bottom: 1px solid var(--elite-line);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
}

body.nexus-elitepanel .table tbody tr {
    background: transparent;
}

body.nexus-elitepanel .table tbody tr:hover td {
    background: color-mix(in srgb, var(--elite-blue) 6%, #fff);
}

body.nexus-elitepanel .table tbody td {
    border-color: var(--elite-line);
}

body.nexus-elitepanel .badge {
    border-radius: 999px;
    letter-spacing: 0;
}

body.nexus-elitepanel .alert {
    border-radius: var(--elite-radius);
    border-width: 1px;
}

body.nexus-elitepanel .alert.rounded-0 {
    border-radius: 0 !important;
}

body.nexus-elitepanel .task-alert-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

body.nexus-elitepanel .task-alert {
    border: 1px solid var(--elite-line);
    border-radius: 10px;
    background: var(--elite-panel);
    box-shadow: var(--elite-shadow-soft);
}

body.nexus-elitepanel .property-grid,
body.nexus-elitepanel .agent-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body.nexus-elitepanel .kanban-board {
    scrollbar-color: var(--elite-blue) var(--elite-bg);
}

body.nexus-elitepanel .kanban-column {
    min-height: 460px;
}

body.nexus-elitepanel .empty-stage {
    border-color: var(--elite-line);
    background: color-mix(in srgb, var(--elite-bg) 78%, #fff);
}

body.nexus-elitepanel .notification-badge {
    box-shadow: 0 0 0 2px var(--elite-nav);
}

body.nexus-elitepanel .footer-links a {
    color: var(--elite-blue);
}

@media (max-width: 991.98px) {
    body.nexus-authenticated .navbar {
        position: sticky;
        inset: 0 auto auto 0;
        width: 100%;
        border-radius: 0;
    }

    body.nexus-authenticated .navbar .container-fluid {
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    body.nexus-authenticated .navbar-brand {
        display: inline-flex;
        min-height: 64px;
    }

    body.nexus-authenticated .brand-logo {
        width: 64px;
        height: 64px;
    }

    body.nexus-authenticated .navbar-toggler {
        display: block;
    }

    body.nexus-authenticated .navbar-collapse {
        flex-basis: 100%;
        padding-top: 0.75rem;
    }

    body.nexus-authenticated .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    body.nexus-authenticated .navbar-nav {
        gap: 0.2rem;
    }

    body.nexus-authenticated .navbar-dark .navbar-nav .nav-link {
        width: 100%;
    }

    body.nexus-authenticated main.container-fluid,
    body.nexus-authenticated .app-footer {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    body.nexus-elitepanel .workspace-header,
    body.nexus-elitepanel .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.nexus-elitepanel main.container-fluid {
        padding-inline: 12px;
    }

    body.nexus-public main.container-fluid {
        padding: 12px;
    }
}

/* NexusRE product skin, NYXBRKR identity 2026 */
@font-face {
    font-family: 'Nyxbrkr UI';
    src: url('../fonts/Rajdhani-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Nyxbrkr UI';
    src: url('../fonts/Rajdhani-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Nyxbrkr UI';
    src: url('../fonts/Rajdhani-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Nyxbrkr Display';
    src: url('../fonts/Michroma-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

body.nexus-elitepanel {
    --elite-radius: 2px;
    --elite-bg: #020202;
    --elite-ink: #f0f4ff;
    --elite-muted: #9fb4c7;
    --elite-line: rgba(32, 168, 255, .26);
    --elite-panel: rgba(2, 25, 39, .96);
    --elite-panel-strong: #052235;
    --elite-nav: #020202;
    --elite-nav-panel: #021927;
    --elite-blue: #20a8ff;
    --elite-teal: #32ff45;
    --elite-amber: #f7ff18;
    --elite-danger: #ff22c8;
    --primary-color: #20a8ff;
    --success-color: #32ff45;
    --elite-focus: rgba(247, 255, 24, .28);
    --elite-shadow: 0 0 0 1px rgba(255, 34, 200, .12), 0 0 34px rgba(32, 168, 255, .1);
    --elite-shadow-soft: 0 0 18px rgba(32, 168, 255, .08);
    color: var(--elite-ink);
    background:
        linear-gradient(rgba(32, 168, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 255, 69, .038) 1px, transparent 1px),
        radial-gradient(circle at 80% 12%, rgba(247, 255, 24, .08), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(255, 34, 200, .1), transparent 30%),
        #020202;
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
    font-family: 'Nyxbrkr UI', 'Rajdhani', system-ui, sans-serif;
}

body.nexus-elitepanel::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
    opacity: .14;
}

body.nexus-authenticated .navbar,
body.nexus-elitepanel .card,
body.nexus-elitepanel .modal-content,
body.nexus-elitepanel .table-responsive,
body.nexus-elitepanel .table-wrap,
body.nexus-elitepanel .kanban-column,
body.nexus-elitepanel .task-alert,
body.nexus-elitepanel .empty-stage,
body.nexus-public .card {
    border-radius: 2px !important;
    background: rgba(2, 25, 39, .96) !important;
    border-color: rgba(32, 168, 255, .26) !important;
    box-shadow: var(--elite-shadow) !important;
}

body.nexus-authenticated .brand-logo,
body.nexus-public .brand-logo {
    object-fit: contain;
    border-radius: 2px;
    background: #020202;
    border: 1px solid rgba(255, 34, 200, .48);
}

body.nexus-elitepanel .navbar-dark .navbar-nav .nav-link {
    font-family: 'Nyxbrkr Display', 'Michroma', 'Arial Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.nexus-elitepanel .fas::before,
body.nexus-elitepanel .fa::before,
body.nexus-elitepanel .far::before,
body.nexus-elitepanel .fab::before {
    content: "";
    display: inline-block;
    width: .82em;
    height: .82em;
    margin-right: .12em;
    border: 2px solid currentColor;
    clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
    box-shadow: inset 0 0 0 2px rgba(255, 34, 200, .18);
}

body.nexus-elitepanel button,
body.nexus-elitepanel .btn,
body.nexus-elitepanel input,
body.nexus-elitepanel select,
body.nexus-elitepanel textarea,
body.nexus-elitepanel .badge {
    border-radius: 2px !important;
    font-family: 'Nyxbrkr UI', 'Rajdhani', system-ui, sans-serif;
}

body.nexus-elitepanel h1,
body.nexus-elitepanel h2,
body.nexus-elitepanel h3,
body.nexus-elitepanel h4,
body.nexus-elitepanel h5,
body.nexus-elitepanel h6,
body.nexus-elitepanel .btn,
body.nexus-elitepanel .badge,
body.nexus-elitepanel th,
body.nexus-elitepanel .eyebrow {
    font-family: 'Nyxbrkr Display', 'Michroma', 'Arial Narrow', sans-serif;
}

/* NexusRE product identity hardening */
body.nexus-authenticated .navbar-brand {
    min-width: 78px;
}

body.nexus-authenticated .navbar-brand .brand-logo {
    width: 78px;
    height: 54px;
    padding: 4px;
}

body.nexus-public .login-brand {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}

body.nexus-public .login-brand .brand-logo {
    width: min(260px, 72vw);
    height: auto;
    max-height: 196px;
    padding: 8px;
}

body.nexus-public .card-header {
    background:
        linear-gradient(90deg, rgba(255, 34, 200, .16), transparent 34%),
        linear-gradient(270deg, rgba(32, 168, 255, .14), transparent 36%),
        #020202 !important;
    border-bottom-color: rgba(32, 168, 255, .26) !important;
}

body.nexus-public .navbar {
    min-height: 76px;
    background:
        linear-gradient(90deg, rgba(255, 34, 200, .1), transparent 24%),
        linear-gradient(270deg, rgba(32, 168, 255, .12), transparent 28%),
        #020202 !important;
    border-bottom: 1px solid rgba(255, 34, 200, .34);
    box-shadow: 0 0 24px rgba(32, 168, 255, .1);
}

body.nexus-public .navbar .brand-logo {
    width: 68px;
    height: 52px;
    padding: 3px;
}

body.nexus-public .login-brand h5 {
    color: #f0f4ff;
    text-transform: uppercase;
    letter-spacing: .08em;
}

body.nexus-public .alert-info {
    color: #f0f4ff;
    background: rgba(2, 25, 39, .98);
    border-color: #20a8ff;
    border-left: 3px solid #f7ff18;
}

body.nexus-public .alert-info strong {
    color: #f7ff18;
    letter-spacing: .04em;
}

body.nexus-elitepanel .btn-primary,
body.nexus-elitepanel .bg-primary {
    color: #020202 !important;
    background: linear-gradient(90deg, #20a8ff, #f7ff18) !important;
    border-color: rgba(247, 255, 24, .72) !important;
    box-shadow: 0 0 18px rgba(32, 168, 255, .18);
}

body.nexus-elitepanel .dropdown-menu,
body.nexus-elitepanel .list-group-item {
    color: var(--elite-ink);
    background: rgba(2, 25, 39, .98);
    border-color: rgba(32, 168, 255, .26);
}

body.nexus-elitepanel .dropdown-item,
body.nexus-elitepanel .nav-link,
body.nexus-elitepanel a {
    color: var(--elite-ink);
}

body.nexus-elitepanel .dropdown-item:hover,
body.nexus-elitepanel .nav-link:hover {
    color: #f7ff18;
    background: rgba(247, 255, 24, .08);
}

body.nexus-elitepanel .form-control,
body.nexus-elitepanel .form-select,
body.nexus-elitepanel input,
body.nexus-elitepanel select,
body.nexus-elitepanel textarea {
    color: var(--elite-ink);
    background: rgba(2, 2, 2, .92);
    border-color: rgba(32, 168, 255, .26);
}

body.nexus-elitepanel .form-control:focus,
body.nexus-elitepanel .form-select:focus,
body.nexus-elitepanel input:focus,
body.nexus-elitepanel select:focus,
body.nexus-elitepanel textarea:focus {
    border-color: #f7ff18;
    box-shadow: 0 0 0 .2rem rgba(247, 255, 24, .18);
}
