:root {
    --app-bg: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #183247;
    --muted: #6c7f92;
    --line: rgba(24, 50, 71, 0.10);
    --line-strong: rgba(24, 50, 71, 0.18);
    --primary: #175ea8;
    --primary-deep: #103d6d;
    --accent: #1f8f5f;
    --accent-soft: rgba(31, 143, 95, 0.14);
    --warning-soft: rgba(217, 139, 0, 0.16);
    --danger-soft: rgba(192, 57, 43, 0.12);
    --shadow-sm: 0 10px 24px rgba(20, 45, 79, 0.08);
    --shadow-md: 0 18px 44px rgba(20, 45, 79, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --dark-bg: #0f1722;
    --dark-bg-2: #162233;
    --dark-surface: #192638;
    --dark-surface-2: #223247;
    --dark-ink: #e7effa;
    --dark-muted: #9db0c3;
    --dark-line: rgba(173, 194, 218, 0.14);
    --dark-line-strong: rgba(173, 194, 218, 0.22);
}

html,
body {
    background:
        radial-gradient(circle at top right, rgba(23, 94, 168, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 100%);
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

#page-wrapper,
.gray-bg {
    background: transparent !important;
}

.wrapper-content {
    padding: 28px 24px 32px;
}

.app-top-navbar,
.page-heading,
.ibox-content,
.panel,
.modal-content,
fieldset.border,
.file-manager,
.contact-box,
.social-feed-box,
.forum-item,
.widget-head-color-box,
.widget-text-box,
.faq-item,
.invoice {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.app-top-navbar {
    margin: 14px 18px 0;
    border-radius: 18px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1100;
}

.app-top-navbar .navbar {
    background: transparent;
    min-height: 68px;
    padding: 0 14px;
    overflow: visible;
    position: relative;
    z-index: 1101;
}

.app-top-navbar .navbar-top-links {
    overflow: visible;
    position: relative;
    z-index: 1102;
}

.app-top-navbar .navbar-top-links > li {
    overflow: visible;
}

.app-top-navbar .navbar-minimalize {
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    box-shadow: 0 10px 20px rgba(16, 61, 109, 0.24);
}

.app-top-navbar .navbar-top-links > li > a,
.app-top-navbar .welcome-message,
.topbar-link {
    color: var(--ink) !important;
}

.topbar-link {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.notification-dropdown {
    margin-right: 8px;
    position: relative;
    z-index: 1300;
}

.notification-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    padding: 0 14px !important;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d35400;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(211, 84, 0, 0.28);
}

.notification-badge-info {
    background: #175ea8;
    box-shadow: 0 6px 14px rgba(23, 94, 168, 0.28);
}

.notification-menu {
    width: 420px;
    max-width: calc(100vw - 32px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 5000 !important;
}

.notification-menu-header,
.notification-overflow,
.notification-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.notification-menu-header {
    background: linear-gradient(135deg, rgba(23, 94, 168, 0.10), rgba(16, 61, 109, 0.04));
    font-weight: 700;
    color: var(--primary-deep);
}

.notification-menu-count {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(23, 94, 168, 0.12);
    text-align: center;
}

.notification-item {
    border-top: 1px solid var(--line);
}

.notification-item > a {
    display: flex !important;
    gap: 12px;
    padding: 14px 18px !important;
    color: inherit !important;
    white-space: normal !important;
}

.notification-item > a:hover {
    background: rgba(23, 94, 168, 0.05);
}

.notification-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 40px;
    font-size: 18px;
}

.notification-item-icon-primary {
    background: rgba(23, 94, 168, 0.10);
    color: var(--primary-deep);
}

.notification-item-icon-warning {
    background: rgba(217, 139, 0, 0.12);
    color: #b06d00;
}

.notification-item-icon-danger {
    background: rgba(192, 57, 43, 0.12);
    color: #b03a2e;
}

.notification-item-icon-info {
    background: rgba(23, 94, 168, 0.10);
    color: #175ea8;
}

.notification-item-body {
    min-width: 0;
}

.notification-item-title {
    font-weight: 700;
    color: var(--ink);
}

.notification-item-description {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.notification-item-date,
.notification-overflow,
.notification-empty {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.app-page-heading {
    margin: 18px 18px 0;
    padding: 20px 26px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.92));
    position: relative;
    z-index: 1;
}

.app-page-heading h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--primary-deep);
}

.app-page-heading hr {
    margin-top: 14px;
    border-top: 1px solid rgba(23, 94, 168, 0.14);
}

.ibox {
    border: 0;
    background: transparent;
}

.ibox-title {
    border: 0;
    padding: 0 0 12px;
    background: transparent;
}

.ibox-content,
.panel {
    background: rgba(255, 255, 255, 0.94);
}

.panel-heading,
legend.w-auto,
.legend.w-auto {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary-deep);
}

fieldset.border {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    border-bottom: 1px solid rgba(23, 94, 168, 0.16);
    background: #eef5fc;
    color: var(--primary-deep);
    font-weight: 700;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
    border-top: 1px solid rgba(24, 50, 71, 0.08);
    vertical-align: middle;
}

.table-hover > tbody > tr:hover {
    background: rgba(23, 94, 168, 0.05);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
textarea,
select {
    min-height: 42px;
    border-radius: 12px !important;
    border: 1px solid rgba(24, 50, 71, 0.14) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(23, 94, 168, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(23, 94, 168, 0.10) !important;
}

.checkbox {
    margin: 0 0 12px;
}

.fs-base {
    font-size: 1rem;
}

.fs-lg {
    font-size: 1.1rem;
}

.fs-xxl {
    font-size: 1.3rem;
}

.form-check.app-check {
    display: flex;
    align-items: center;
    min-height: 0;
    margin: 0 0 12px;
    padding: 10px 14px 10px 44px;
    border-radius: 14px;
    border: 1px solid rgba(24, 50, 71, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-check.app-check:hover {
    border-color: rgba(23, 94, 168, 0.24);
    box-shadow: 0 10px 22px rgba(20, 45, 79, 0.08);
    transform: translateY(-1px);
}

.form-check.app-check .form-check-input {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin-top: 0.15rem !important;
    margin-left: -36px !important;
    border: 1.5px solid rgba(24, 50, 71, 0.22);
    border-radius: 7px;
    background-color: #fff;
    background-image: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), 0 3px 8px rgba(20, 45, 79, 0.10);
}

.form-check.app-check .form-check-input:focus {
    border-color: rgba(23, 94, 168, 0.48);
    box-shadow: 0 0 0 4px rgba(23, 94, 168, 0.12), 0 8px 18px rgba(20, 45, 79, 0.12);
}

.form-check.app-check .form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 8px 18px rgba(16, 61, 109, 0.24);
}

.form-check.app-check .form-check-input:checked[type="checkbox"] {
    background-size: 16px 16px;
}

input[type="checkbox"]:not(.base-currency-toggle):not(.onoffswitch-checkbox) {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    transform: scale(1.2) !important;
    transform-origin: center !important;
}

.form-check-input[type="checkbox"] {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

.form-check.app-check .form-check-label {
    margin-bottom: 0;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.form-check.app-check .form-check-input:checked + .form-check-label {
    color: var(--primary-deep);
}

.i-checks input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.btn {
    border-radius: 12px;
    border: 0;
    padding: 9px 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(20, 45, 79, 0.10);
}

.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    color: #fff;
}

.btn-primary,
.label-primary,
.badge-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.btn-success {
    background: linear-gradient(135deg, #1f8f5f 0%, #127149 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #d98b00 0%, #aa6800 100%);
}

.sidebar-brand-shell {
    position: relative;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(23, 94, 168, 0.16), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.sidebar-brand-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 94, 168, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sidebar-brand-logo {
    display: block;
    width: 100%;
    max-width: 210px;
    height: 82px;
    object-fit: contain;
    object-position: center;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

html.theme-light body .sidebar-brand-shell,
body.light-skin .sidebar-brand-shell {
    background:
        radial-gradient(circle at top right, rgba(23, 94, 168, 0.10), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.88));
    border-color: rgba(23, 94, 168, 0.10);
    box-shadow: 0 14px 28px rgba(36, 59, 78, 0.10);
}

html.theme-light body .sidebar-brand-frame,
body.light-skin .sidebar-brand-frame {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-color: rgba(23, 94, 168, 0.12);
}

html.theme-dark body .sidebar-brand-shell {
    background:
        radial-gradient(circle at top right, rgba(77, 147, 224, 0.20), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(173, 194, 218, 0.14);
}

html.theme-dark body .sidebar-brand-frame {
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(230, 238, 246, 0.92));
}

body.mini-navbar .sidebar-brand-shell {
    padding: 8px;
    border-radius: 18px;
}

body.mini-navbar .sidebar-brand-frame {
    min-height: 88px;
    padding: 10px 8px;
}

body.mini-navbar .sidebar-brand-logo {
    max-width: 150px;
    height: 62px;
}

.btn-danger {
    background: linear-gradient(135deg, #cf4f3b 0%, #a63525 100%);
}

.btn-default,
.btn-white {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.label,
.badge {
    border-radius: 999px;
    padding: 6px 10px;
}

.alert {
    border: 0;
    border-left: 4px solid transparent;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    border-left-color: var(--primary);
}

.alert-success {
    border-left-color: var(--accent);
}

.alert-warning {
    border-left-color: #d98b00;
}

.alert-danger {
    border-left-color: #c0392b;
}

.footer {
    margin: 20px 18px 18px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.text-muted,
small.text-muted,
p.text-muted,
span.text-muted {
    color: var(--muted) !important;
}

.sidebar-divider {
    padding: 0;
    margin: 8px 0;
    list-style: none;
    pointer-events: none;
}

.sidebar-divider hr {
    margin: 0 16px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

html.theme-light body .sidebar-divider hr,
body.light-skin .sidebar-divider hr {
    border-top-color: rgba(24, 50, 71, 0.14);
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(23, 94, 168, 0.10);
    box-shadow: none;
}

.progress-bar {
    border-radius: 999px;
}

.invoice-ribbon {
    width: 190px;
    height: 190px;
    overflow: hidden;
    position: absolute;
    top: -12px;
    right: -2px;
    pointer-events: none;
    z-index: 3;
}

.stage-ribbon {
    position: relative;
    top: 34px;
    right: -28px;
    width: 250px;
    padding: 12px 20px 14px;
    transform: rotate(45deg);
    text-align: center;
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stage-ribbon-active {
    background: linear-gradient(135deg, #0f4c81 0%, #1f8f5f 100%);
}

.stage-ribbon-closed {
    background: linear-gradient(135deg, #9c6b00 0%, #d98b00 100%);
}

.stage-ribbon:before,
.stage-ribbon:after {
    content: "";
    position: absolute;
    bottom: -10px;
    border-top: 10px solid rgba(0, 0, 0, 0.18);
}

.stage-ribbon:before {
    left: 0;
    border-left: 10px solid transparent;
}

.stage-ribbon:after {
    right: 0;
    border-right: 10px solid transparent;
}

.stage-ribbon-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.88;
}

.stage-ribbon-name {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .wrapper-content {
        padding: 18px 10px 24px;
    }

    .app-top-navbar,
    .app-page-heading,
    .footer {
        margin-left: 10px;
        margin-right: 10px;
    }

    .invoice-ribbon {
        width: 150px;
        height: 150px;
        top: -8px;
        right: -8px;
    }

    .stage-ribbon {
        top: 30px;
        right: -36px;
        width: 210px;
        padding: 10px 16px 12px;
    }

    .stage-ribbon-title {
        font-size: 10px;
    }

    .stage-ribbon-name {
        font-size: 13px;
    }
}

html.theme-dark body {
    background:
        radial-gradient(circle at top right, rgba(52, 120, 198, 0.12), transparent 26%),
        linear-gradient(180deg, #0f1722 0%, #121c29 100%);
    color: var(--dark-ink);
}

html.theme-dark body,
html.theme-dark body p,
html.theme-dark body span,
html.theme-dark body label,
html.theme-dark body small,
html.theme-dark body .font-bold,
html.theme-dark body .welcome-message,
html.theme-dark body .panel-title,
html.theme-dark body .breadcrumb,
html.theme-dark body .breadcrumb a,
html.theme-dark body .breadcrumb > .active,
html.theme-dark body .text-muted {
    color: var(--dark-ink) !important;
}

html.theme-dark body .text-muted,
html.theme-dark body small.text-muted,
html.theme-dark body p.text-muted,
html.theme-dark body span.text-muted,
html.theme-dark body .block.text-xs,
html.theme-dark body .help-block {
    color: var(--dark-muted) !important;
}

html.theme-dark body #page-wrapper,
html.theme-dark body #page-wrapper.gray-bg,
html.theme-dark body .gray-bg {
    background: transparent !important;
}

html.theme-dark body .app-top-navbar,
html.theme-dark body .app-page-heading,
html.theme-dark body .ibox-content,
html.theme-dark body .panel,
html.theme-dark body .modal-content,
html.theme-dark body fieldset.border,
html.theme-dark body .file-manager,
html.theme-dark body .contact-box,
html.theme-dark body .social-feed-box,
html.theme-dark body .forum-item,
html.theme-dark body .widget-head-color-box,
html.theme-dark body .widget-text-box,
html.theme-dark body .faq-item,
html.theme-dark body .invoice,
html.theme-dark body .footer {
    background: linear-gradient(180deg, rgba(26, 38, 56, 0.96), rgba(20, 31, 46, 0.96));
    border-color: var(--dark-line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

html.theme-dark body .app-top-navbar {
    background: rgba(18, 28, 41, 0.9);
}

html.theme-dark body .app-page-heading {
    background: linear-gradient(135deg, rgba(29, 43, 62, 0.96), rgba(22, 34, 51, 0.96));
}

html.theme-dark body .app-page-heading h2,
html.theme-dark body .panel-heading,
html.theme-dark body legend.w-auto,
html.theme-dark body .legend.w-auto,
html.theme-dark body .ibox-title h5,
html.theme-dark body h1,
html.theme-dark body h2,
html.theme-dark body h3,
html.theme-dark body h4,
html.theme-dark body h5,
html.theme-dark body h6 {
    color: #f2f7ff !important;
}

html.theme-dark body .app-page-heading hr,
html.theme-dark body hr,
html.theme-dark body .border-bottom {
    border-top-color: var(--dark-line) !important;
    border-color: var(--dark-line) !important;
}

html.theme-dark body .table > thead > tr > th {
    background: #243549;
    color: #f2f7ff;
    border-bottom-color: var(--dark-line-strong);
}

html.theme-dark body .table > tbody > tr > td,
html.theme-dark body .table > tbody > tr > th,
html.theme-dark body .table > tfoot > tr > td,
html.theme-dark body .table > tfoot > tr > th {
    border-top-color: var(--dark-line);
    color: var(--dark-ink);
}

html.theme-dark body .table-hover > tbody > tr:hover,
html.theme-dark body .table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.04);
}

html.theme-dark body .form-control,
html.theme-dark body .select2-container--default .select2-selection--single,
html.theme-dark body .select2-container--default .select2-selection--multiple,
html.theme-dark body textarea,
html.theme-dark body select,
html.theme-dark body .select2-dropdown,
html.theme-dark body .dropdown-menu {
    background: var(--dark-surface-2) !important;
    color: var(--dark-ink) !important;
    border-color: var(--dark-line-strong) !important;
}

html.theme-dark body .form-control::placeholder,
html.theme-dark body textarea::placeholder,
html.theme-dark body .select2-selection__placeholder {
    color: var(--dark-muted) !important;
}

html.theme-dark body .select2-container--default .select2-selection--single .select2-selection__rendered,
html.theme-dark body .select2-container--default .select2-selection--multiple .select2-selection__rendered,
html.theme-dark body .select2-container--default .select2-selection--single .select2-selection__arrow,
html.theme-dark body .dropdown-menu > li > a,
html.theme-dark body .select2-results__option {
    color: var(--dark-ink) !important;
}

html.theme-dark body .dropdown-menu > li > a:hover,
html.theme-dark body .dropdown-menu > li > a:focus,
html.theme-dark body .select2-results__option[aria-selected=true],
html.theme-dark body .select2-container--bootstrap4 .select2-results__option--highlighted,
html.theme-dark body .select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected=true] {
    background: rgba(23, 94, 168, 0.24) !important;
    color: #fff !important;
}

html.theme-dark body .topbar-link,
html.theme-dark body .btn-default,
html.theme-dark body .btn-white {
    background: var(--dark-surface-2);
    color: var(--dark-ink);
    border: 1px solid var(--dark-line);
}

html.theme-dark body .alert {
    background: rgba(25, 38, 56, 0.96);
    color: var(--dark-ink);
}

html.theme-dark body .sidebar-divider hr {
    border-top-color: rgba(173, 194, 218, 0.18);
}

html.theme-dark body a,
html.theme-dark body .custom-link,
html.theme-dark body .ibox-tools a {
    color: #7fb7ff;
}

html.theme-dark body a:hover,
html.theme-dark body .custom-link:hover,
html.theme-dark body .ibox-tools a:hover {
    color: #a8d1ff;
}

.product-profile-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 22px;
    color: #ffffff;
    background:
            radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
            linear-gradient(135deg, #123c4f 0%, #1f6f63 52%, #c0882d 100%);
    box-shadow: 0 18px 38px rgba(18, 60, 79, 0.22);
}

.product-profile-hero h1 {
    margin: 6px 0 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff !important;
}

.product-profile-hero p {
    max-width: 760px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.product-profile-kicker {
    display: inline-block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-profile-badges .label {
    display: inline-block;
    margin-right: 6px;
    padding: 6px 10px;
    border-radius: 999px;
}

.product-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 260px;
}

.product-metric-card {
    min-height: 132px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(18, 60, 79, 0.08);
    box-shadow: 0 14px 30px rgba(18, 60, 79, 0.08);
}

.product-metric-card span {
    display: block;
    margin-bottom: 10px;
    color: #66788a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-metric-card strong {
    display: block;
    margin-bottom: 8px;
    color: #183446;
    font-size: 25px;
    line-height: 1.15;
}

.product-metric-card small {
    color: #7a8b9b;
}

.product-metric-card.budget {
    background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.product-metric-card.stock {
    background: linear-gradient(180deg, #f2fbf7, #ffffff);
}

.product-metric-card.reorder {
    background: linear-gradient(180deg, #f4f8ff, #ffffff);
}

.product-side-panel .ibox-content {
    padding: 0;
}

.product-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid #edf1f5;
}

.product-detail-row:last-child {
    border-bottom: 0;
}

.product-detail-row span {
    color: #768899;
}

.product-detail-row strong {
    color: #20384a;
    text-align: right;
}

.empty-model-state {
    padding: 46px 24px;
    text-align: center;
    border: 1px dashed #cbd6df;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbfd, #ffffff);
}

.empty-model-state i {
    color: #1f6f63;
    font-size: 42px;
    margin-bottom: 12px;
}

.empty-model-state h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .product-profile-hero {
        display: block;
        padding: 22px;
    }

    .product-profile-actions {
        justify-content: flex-start;
        margin-top: 18px;
        min-width: 0;
    }
}

.product-command-page {
    --product-ink: #162333;
    --product-muted: #6f7d8d;
    --product-line: rgba(22, 35, 51, 0.1);
    --product-green: #1d766f;
    --product-gold: #c98720;
    --product-blue: #265f93;
    --product-red: #b84632;
}

.product-showcase {
    position: relative;
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background:
            radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.26), transparent 22%),
            radial-gradient(circle at 86% 18%, rgba(201, 135, 32, 0.4), transparent 24%),
            linear-gradient(135deg, #0f2638 0%, #154d55 45%, #1d766f 100%);
    box-shadow: 0 24px 54px rgba(15, 38, 56, 0.24);
}

.product-showcase:after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: inset 0 0 0 44px rgba(255, 255, 255, 0.04);
}

.product-showcase-mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 98px;
    height: 98px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 38px rgba(0, 0, 0, 0.18);
}

.product-showcase-mark i {
    color: #fff;
    font-size: 42px;
}

.product-showcase-copy,
.product-showcase-actions {
    position: relative;
    z-index: 1;
}

.product-showcase-kicker,
.product-board-header span,
.product-command-card-header span,
.product-insight-card span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.product-showcase-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.product-showcase h1 {
    max-width: 850px;
    margin: 6px 0 9px;
    color: #fff !important;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.product-showcase p {
    max-width: 820px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.7;
}

.product-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-showcase-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.product-showcase-tags .product-tag-warning {
    background: rgba(201, 135, 32, 0.3);
}

.product-showcase-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

.product-showcase-actions .btn {
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

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

.product-insight-card {
    position: relative;
    min-height: 176px;
    padding: 22px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--product-line);
    box-shadow: 0 16px 34px rgba(22, 35, 51, 0.08);
}

.product-insight-card:after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(29, 118, 111, 0.08);
}

.product-insight-card span {
    color: var(--product-muted);
}

.product-insight-card strong {
    display: block;
    margin: 14px 0 8px;
    color: var(--product-ink);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.product-insight-card small {
    position: relative;
    z-index: 1;
    color: var(--product-muted);
    line-height: 1.55;
}

.product-insight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 15px;
    color: #fff;
    background: var(--product-green);
}

.product-insight-budget {
    background: linear-gradient(180deg, #fff9ed, #fff);
}

.product-insight-budget .product-insight-icon {
    background: var(--product-gold);
}

.product-insight-stock {
    background: linear-gradient(180deg, #effaf7, #fff);
}

.product-insight-reorder {
    background: linear-gradient(180deg, #f2f7ff, #fff);
}

.product-insight-reorder .product-insight-icon {
    background: var(--product-blue);
}

.product-insight-reorder.is-critical {
    border-color: rgba(184, 70, 50, 0.35);
    background: linear-gradient(180deg, #fff1ee, #fff);
}

.product-insight-reorder.is-critical .product-insight-icon {
    background: var(--product-red);
}

.product-insight-models .product-insight-icon {
    background: #31445a;
}

.product-command-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.product-command-sidebar {
    display: grid;
    gap: 18px;
}

.product-command-card,
.product-models-board {
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--product-line);
    box-shadow: 0 18px 38px rgba(22, 35, 51, 0.08);
}

.product-command-card {
    overflow: hidden;
}

.product-command-card-header,
.product-board-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(22, 35, 51, 0.08);
}

.product-command-card-header span,
.product-board-header span {
    color: var(--product-green);
}

.product-command-card-header h3,
.product-board-header h2 {
    margin: 5px 0 0;
    color: var(--product-ink);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.product-control-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(22, 35, 51, 0.07);
}

.product-control-list > div:last-child {
    border-bottom: 0;
}

.product-control-list span {
    color: var(--product-muted);
}

.product-control-list strong {
    color: var(--product-ink);
    text-align: right;
}

.product-signal-card {
    background:
            linear-gradient(180deg, rgba(29, 118, 111, 0.06), rgba(255, 255, 255, 0)),
            #fff;
}

.product-signal-list {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.product-signal-list > div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 16px;
    color: #465568;
    background: rgba(22, 35, 51, 0.04);
}

.product-signal-list i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: #7c8998;
}

.product-signal-list .is-good i {
    background: var(--product-green);
}

.product-signal-list .is-warning i {
    background: var(--product-gold);
}

.product-models-board {
    padding: 0;
    overflow: hidden;
}

.product-board-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background:
            radial-gradient(circle at 100% 0%, rgba(29, 118, 111, 0.11), transparent 30%),
            #fff;
}

.product-board-header p {
    margin: 6px 0 0;
    color: var(--product-muted);
}

.product-board-header .btn {
    border-radius: 999px;
    font-weight: 800;
}

.product-model-card-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.product-model-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfcfd, #fff);
    border: 1px solid rgba(22, 35, 51, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-model-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 118, 111, 0.22);
    box-shadow: 0 16px 28px rgba(22, 35, 51, 0.08);
}

.product-model-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--product-green), #123c4f);
}

.product-model-copy strong {
    display: block;
    color: var(--product-ink);
    font-size: 16px;
}

.product-model-copy span {
    display: block;
    margin-top: 4px;
    color: var(--product-muted);
}

.product-model-card .btn {
    border-radius: 999px;
}

.product-empty-board {
    margin: 18px;
    padding: 52px 28px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(29, 118, 111, 0.32);
    background:
            radial-gradient(circle at 50% 0%, rgba(29, 118, 111, 0.12), transparent 28%),
            linear-gradient(180deg, #f8fcfb, #fff);
}

.product-empty-board > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--product-green), #123c4f);
    box-shadow: 0 16px 28px rgba(29, 118, 111, 0.22);
}

.product-empty-board i {
    font-size: 30px;
}

.product-empty-board h3 {
    margin-top: 0;
    color: var(--product-ink);
    font-weight: 900;
}

.product-empty-board p {
    max-width: 430px;
    margin: 0 auto 18px;
    color: var(--product-muted);
}

@media (max-width: 1200px) {
    .product-intelligence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .product-showcase h1 {
        font-size: 32px;
    }

    .product-showcase-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .product-intelligence-grid {
        grid-template-columns: 1fr;
    }

    .product-board-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-model-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .product-model-card .btn {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

/* Futuristic glass and neural ambience theme */
:root {
    --ai-bg-0: #070b1f;
    --ai-bg-1: #111743;
    --ai-purple: #8b5cf6;
    --ai-blue: #2563eb;
    --ai-cyan: #22d3ee;
    --ai-panel: rgba(255, 255, 255, 0.92);
    --ai-panel-strong: rgba(255, 255, 255, 0.96);
    --ai-border: rgba(125, 211, 252, 0.32);
    --ai-shadow: 0 18px 42px rgba(6, 12, 34, 0.22), 0 0 28px rgba(34, 211, 238, 0.12);
}

#wrapper {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background:
            radial-gradient(circle at 14% 12%, rgba(139, 92, 246, 0.32), transparent 28%),
            radial-gradient(circle at 86% 18%, rgba(34, 211, 238, 0.24), transparent 30%),
            radial-gradient(circle at 62% 84%, rgba(37, 99, 235, 0.22), transparent 32%),
            linear-gradient(135deg, var(--ai-bg-0), var(--ai-bg-1) 48%, #081022);
}

#wrapper:before,
#wrapper:after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#wrapper:before {
    opacity: 0.42;
    background-image:
            radial-gradient(circle, rgba(34, 211, 238, 0.75) 0 1px, transparent 1.6px),
            linear-gradient(110deg, transparent 0 23%, rgba(34, 211, 238, 0.16) 23.2%, transparent 23.6% 54%, rgba(139, 92, 246, 0.16) 54.2%, transparent 54.6%),
            linear-gradient(28deg, transparent 0 31%, rgba(37, 99, 235, 0.12) 31.2%, transparent 31.7% 67%, rgba(34, 211, 238, 0.11) 67.2%, transparent 67.6%);
    background-size: 88px 88px, 620px 380px, 720px 420px;
    animation: neuralDrift 32s linear infinite;
}

#wrapper:after {
    opacity: 0.34;
    background:
            repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.09) 0 1px, transparent 1px 82px),
            repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.08) 0 1px, transparent 1px 82px);
    mask-image: radial-gradient(circle at 50% 38%, #000, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000, transparent 76%);
    animation: dataFlow 24s ease-in-out infinite alternate;
}

@keyframes neuralDrift {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 176px 88px, 620px 380px, -720px 420px; }
}

@keyframes dataFlow {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(22px, -18px, 0) scale(1.03); }
}

#page-wrapper,
.gray-bg,
.bg-muted {
    background: transparent !important;
}

#page-wrapper,
.wrapper-content {
    position: relative;
    z-index: 1;
}

.footer {
    z-index: 1;
}

.navbar-default,
.navbar-static-side {
    background: rgba(255, 255, 255, 0.88);
    border-right: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 16px 0 42px rgba(20, 45, 79, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-header {
    background:
            linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12)),
            rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.2);
}

.navbar-default .nav > li > a,
.navbar-default .nav-second-level li a,
.navbar-default .nav-third-level li a {
    color: #183247 !important;
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus,
.navbar-default .nav > li.active > a,
.navbar-default .nav-second-level li a:hover,
.navbar-default .nav-second-level li a:focus,
.navbar-default .nav-third-level li a:hover,
.navbar-default .nav-third-level li a:focus,
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12)) !important;
    box-shadow: inset 3px 0 0 var(--ai-cyan), 0 0 18px rgba(34, 211, 238, 0.12);
}

.navbar-default .nav-second-level,
.navbar-default .nav-third-level,
.md-skin .navbar-default ul.nav-second-level,
.md-skin.mini-navbar .navbar-default .nav-second-level,
.md-skin.canvas-menu.mini-navbar .navbar-default .nav-second-level {
    background: rgba(255, 255, 255, 0.92) !important;
    border-left: 1px solid rgba(125, 211, 252, 0.24);
}

.sidebar-divider hr {
    border-top-color: rgba(125, 211, 252, 0.18);
}

.app-top-navbar,
.navbar-static-top,
.page-heading,
.app-page-heading,
.footer {
    background: rgba(255, 255, 255, 0.74) !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
    box-shadow: var(--ai-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-page-heading,
.page-heading {
    border-radius: 8px;
}

.ibox,
.panel,
.modal-content,
.dropdown-menu,
.tabs-container .panel-body,
.well,
.jumbotron,
fieldset.border,
.file-manager,
.contact-box,
.social-feed-box,
.forum-item,
.widget-head-color-box,
.widget-text-box,
.faq-item,
.invoice,
.product-board,
.product-model-card,
.product-empty-board {
    border-radius: 8px !important;
    background: var(--ai-panel);
    border: 1px solid var(--ai-border);
    box-shadow: var(--ai-shadow);
    color: #243044;
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.ibox {
    overflow: hidden;
}

.ibox-title,
.ibox-content,
.ibox-footer,
.panel-heading,
.panel-body,
.panel-footer {
    background: transparent !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
    color: #243044;
}

.ibox-content,
.panel-body,
.modal-body,
.dropdown-menu {
    background: rgba(255, 255, 255, 0.66) !important;
}

.ibox-title,
.panel-heading {
    position: relative;
    color: #12203f;
    background:
            linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.12)),
            rgba(255, 255, 255, 0.38) !important;
}

.ibox-title:before,
.panel-heading:before {
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--ai-purple), var(--ai-blue), var(--ai-cyan));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.62);
}

.blue-bg,
.navy-bg,
.bg-primary,
.bg-success,
.app-top-navbar .navbar-minimalize {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(37, 99, 235, 0.92), rgba(34, 211, 238, 0.9)) !important;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.24);
}

.table {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.table > thead > tr > th {
    color: #101936;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.12));
    border-bottom-color: rgba(34, 211, 238, 0.28);
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
    border-top-color: rgba(125, 211, 252, 0.16);
}

.form-control,
.single-line,
.select2-container--bootstrap4 .select2-selection {
    background: rgba(255, 255, 255, 0.74) !important;
    border-color: rgba(125, 211, 252, 0.36) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-control:focus,
.single-line:focus,
.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: var(--ai-cyan) !important;
    box-shadow: 0 0 0 0.15rem rgba(34, 211, 238, 0.22), 0 0 18px rgba(139, 92, 246, 0.14) !important;
}

.btn-primary,
.btn-success,
.btn-info {
    border: 0;
    background: linear-gradient(135deg, var(--ai-purple), var(--ai-blue), var(--ai-cyan)) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24), 0 0 18px rgba(34, 211, 238, 0.24);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-info:hover,
.btn-info:focus {
    filter: brightness(1.07);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3), 0 0 26px rgba(34, 211, 238, 0.32);
}

.label-primary,
.badge-primary,
.notification-badge-info {
    background: linear-gradient(135deg, var(--ai-purple), var(--ai-cyan));
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.34);
}

.alert {
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background:
            radial-gradient(circle at 14% 16%, rgba(139, 92, 246, 0.34), transparent 28%),
            radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.26), transparent 30%),
            radial-gradient(circle at 58% 86%, rgba(37, 99, 235, 0.24), transparent 32%),
            linear-gradient(135deg, #070b1f, #111743 48%, #081022) !important;
    color: #1f2937;
    overflow: hidden;
}

body.login-page:before,
body.login-page:after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.login-page:before {
    opacity: 0.42;
    background-image:
            radial-gradient(circle, rgba(34, 211, 238, 0.75) 0 1px, transparent 1.6px),
            linear-gradient(110deg, transparent 0 23%, rgba(34, 211, 238, 0.16) 23.2%, transparent 23.6% 54%, rgba(139, 92, 246, 0.16) 54.2%, transparent 54.6%),
            linear-gradient(28deg, transparent 0 31%, rgba(37, 99, 235, 0.12) 31.2%, transparent 31.7% 67%, rgba(34, 211, 238, 0.11) 67.2%, transparent 67.6%);
    background-size: 88px 88px, 620px 380px, 720px 420px;
    animation: neuralDrift 32s linear infinite;
}

body.login-page:after {
    opacity: 0.34;
    background:
            repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.09) 0 1px, transparent 1px 82px),
            repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.08) 0 1px, transparent 1px 82px);
    mask-image: radial-gradient(circle at 50% 38%, #000, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000, transparent 76%);
    animation: dataFlow 24s ease-in-out infinite alternate;
}

.login-shell {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 160px 16px 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.login-panel {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(6, 12, 34, 0.24), 0 0 28px rgba(34, 211, 238, 0.16);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    overflow: hidden;
}

.brand-pane {
    height: 100%;
    padding: 12px 40px 30px;
    background:
            linear-gradient(145deg, rgba(139, 92, 246, 0.9), rgba(37, 99, 235, 0.88), rgba(34, 211, 238, 0.82)),
            rgba(7, 11, 31, 0.86);
    color: #ffffff;
    box-shadow: inset 0 0 42px rgba(34, 211, 238, 0.18);
}

.brand-logo {
    width: 176px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.24);
}

.brand-pane h1 {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 14px;
    font-weight: 700;
}

.brand-pane p {
    color: #c9d8e6;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.brand-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.brand-list li {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    color: #e7eef6;
    font-size: 14px;
}

.brand-list i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #c8f7ff;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.26);
}

.form-pane {
    padding: 12px 44px 30px;
    background: rgba(255, 255, 255, 0.72);
}

.form-pane h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #172b4d;
}

.form-pane .subtext {
    color: #667085;
    margin-bottom: 20px;
}

.login-label {
    font-weight: 700;
    color: #344054;
    margin-bottom: 8px;
}

.login-input {
    height: 46px;
    border-color: rgba(125, 211, 252, 0.36);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.74);
}

.login-input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 0.15rem rgba(34, 211, 238, 0.22), 0 0 18px rgba(139, 92, 246, 0.14);
}

.password-toggle {
    display: flex;
    align-items: center;
    color: #475467;
    font-size: 14px;
    margin: 2px 0 20px;
}

.password-toggle input {
    margin-right: 8px;
}

.login-button {
    height: 46px;
    border-radius: 6px;
    background: linear-gradient(135deg, #8b5cf6, #2563eb, #22d3ee) !important;
    border: 0;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24), 0 0 18px rgba(34, 211, 238, 0.24);
}

.login-button:hover,
.login-button:focus {
    filter: brightness(1.07);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3), 0 0 26px rgba(34, 211, 238, 0.32);
}

.quick-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.quick-links a {
    color: #2563eb;
    font-weight: 700;
}

.login-footer {
    margin-top: 30px;
    color: #667085;
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    #wrapper:before,
    #wrapper:after,
    body.login-page:before,
    body.login-page:after {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    body.login-page {
        overflow: auto;
    }

    .login-shell {
        min-height: 100vh;
        padding: 0;
        align-items: stretch;
    }

    .login-panel {
        border-radius: 0;
    }

    .brand-pane,
    .form-pane {
        padding: 12px 24px 24px;
    }

    .brand-pane h1 {
        font-size: 24px;
    }

    .quick-links {
        display: block;
    }

    .quick-links a {
        display: block;
        margin-bottom: 10px;
    }
}

@media print {
    #wrapper,
    #page-wrapper,
    .gray-bg,
    .bg-muted {
        background: #ffffff !important;
    }

    #wrapper:before,
    #wrapper:after {
        display: none !important;
    }

    .ibox,
    .panel,
    .modal-content,
    .table {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

html.theme-dark body .navbar-default,
html.theme-dark body .navbar-static-side {
    background: rgba(19, 32, 83, 0.92) !important;
    border-right-color: rgba(34, 211, 238, 0.18) !important;
    box-shadow: 16px 0 42px rgba(6, 12, 34, 0.26);
}

html.theme-dark body .nav-header {
    background:
            linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12)),
            rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: rgba(125, 211, 252, 0.2);
}

html.theme-dark body .navbar-default .nav > li > a,
html.theme-dark body .navbar-default .nav-second-level li a,
html.theme-dark body .navbar-default .nav-third-level li a {
    color: rgba(238, 244, 255, 0.92) !important;
}

html.theme-dark body .navbar-default .nav-second-level,
html.theme-dark body .navbar-default .nav-third-level,
html.theme-dark body.md-skin .navbar-default ul.nav-second-level,
html.theme-dark body.md-skin.mini-navbar .navbar-default .nav-second-level,
html.theme-dark body.md-skin.canvas-menu.mini-navbar .navbar-default .nav-second-level {
    background: rgba(19, 32, 83, 0.96) !important;
    border-left-color: rgba(34, 211, 238, 0.18);
}

html.theme-light body .navbar-default,
html.theme-light body .navbar-static-side,
body.light-skin .navbar-default,
body.light-skin .navbar-static-side {
    background: rgba(255, 255, 255, 0.9) !important;
    border-right-color: rgba(125, 211, 252, 0.28) !important;
}

html.theme-light body .nav-header,
body.light-skin .nav-header {
    background:
            linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.08)),
            rgba(255, 255, 255, 0.72) !important;
    border-bottom-color: rgba(125, 211, 252, 0.24);
}

html.theme-light body .navbar-default .nav > li > a,
html.theme-light body .navbar-default .nav-second-level li a,
html.theme-light body .navbar-default .nav-third-level li a,
body.light-skin .navbar-default .nav > li > a,
body.light-skin .navbar-default .nav-second-level li a,
body.light-skin .navbar-default .nav-third-level li a {
    color: #183247 !important;
}

html.theme-light body .navbar-default .nav-second-level,
html.theme-light body .navbar-default .nav-third-level,
body.light-skin .navbar-default .nav-second-level,
body.light-skin .navbar-default .nav-third-level {
    background: rgba(255, 255, 255, 0.94) !important;
    border-left-color: rgba(125, 211, 252, 0.24);
}

.navbar-static-side {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    width: 70px;
    z-index: 1000;
}

#page-wrapper {
    margin-left: 70px;
}

body:not(.mini-navbar) .navbar-static-side {
    width: 220px;
}

body:not(.mini-navbar) #page-wrapper {
    margin-left: 220px;
}
