:root,
[data-bs-theme="dark"] {
    --ghost-bg: #070912;
    --ghost-bg-deep: #05060c;
    --ghost-panel: #0d1322;
    --ghost-panel-2: #121a2d;
    --ghost-panel-3: #18223a;
    --ghost-border: #26324d;
    --ghost-border-soft: rgba(148, 163, 184, 0.16);
    --ghost-text: #f3f5fa;
    --ghost-muted: #97a3ba;
    --ghost-orange: #ff7a00;
    --ghost-orange-2: #ff9a34;
    --ghost-green: #38d39f;
    --bs-primary: #ff7a00;
    --bs-primary-rgb: 255, 122, 0;
    --bs-link-color: #ff9a34;
    --bs-link-hover-color: #ffb56b;
    --bs-body-bg: #070912;
    --bs-body-color: #f3f5fa;
    --bs-secondary-color: #97a3ba;
    --bs-secondary-bg: #121a2d;
    --bs-tertiary-bg: #18223a;
    --bs-border-color: #26324d;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

html {
    color-scheme: dark;
    background: var(--ghost-bg-deep);
}

body.ghostit-client,
body.ghostit-public {
    min-height: 100%;
    color: var(--ghost-text);
    background:
        radial-gradient(circle at 3% 20%, rgba(255, 122, 0, 0.17), transparent 28rem),
        radial-gradient(circle at 97% 12%, rgba(255, 84, 0, 0.13), transparent 30rem),
        linear-gradient(180deg, #080a12 0%, #070912 46%, #080b15 100%);
    background-attachment: fixed;
}

body.ghostit-client::before,
body.ghostit-public::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ghostit-client > .container {
    width: min(100% - 2rem, 1480px);
    max-width: none;
    padding: 0;
}

.ghostit-client header {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding-top: 1rem;
}

.ghostit-client header .navbar {
    min-height: 72px;
    padding: 0.65rem 0.9rem !important;
    background: rgba(9, 11, 19, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.15rem;
    box-shadow: 0 15px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.ghostit-client .navbar-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ghostit-client .navbar-brand img {
    max-height: 46px;
}

.ghostit-product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-left: 0.35rem;
    padding: 0.35rem 0.65rem;
    color: var(--ghost-orange-2);
    background: rgba(255, 122, 0, 0.09);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ghostit-client .navbar-nav {
    gap: 0.4rem;
}

.ghostit-client .navbar .nav-link,
.ghostit-client .client-dropdown .nav-link.dropdown-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    color: #b3bdd0;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: 160ms ease;
}

.ghostit-client .navbar .nav-link:hover,
.ghostit-client .navbar .nav-link.active,
.ghostit-client .client-dropdown .nav-link.dropdown-toggle:hover {
    color: #fff !important;
    background: rgba(255, 122, 0, 0.12);
    border-color: rgba(255, 122, 0, 0.32);
}

.ghostit-client .navbar .btn-outline-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff8a1c, #ed6500);
    border-color: #ff8a1c;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.22);
}

.ghostit-client .navbar-toggler {
    border-color: var(--ghost-border);
    background: var(--ghost-panel-2);
}

.ghostit-client > .container > .container {
    width: 100%;
    max-width: none;
    padding: 1.2rem 0 2rem;
}

.ghostit-client > .container > .container > .row {
    --bs-gutter-x: 1.15rem;
}

.ghostit-sidebar-title {
    padding: 0.35rem 0.8rem 1rem;
}

.ghostit-sidebar-title span,
.ghostit-page-title span {
    display: block;
    color: var(--ghost-orange-2);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ghostit-sidebar-title strong {
    display: block;
    margin-top: 0.22rem;
    color: #fff;
    font-size: 1rem;
}

.ghostit-client #sidebarMenu {
    position: sticky;
    top: 6.6rem;
    overflow: hidden;
    background: rgba(12, 17, 30, 0.88);
    border: 1px solid var(--ghost-border-soft);
    border-radius: 1rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.ghostit-client #sidebarMenu .offcanvas-body {
    padding: 0.9rem;
}

.ghostit-client .offcanvas-item {
    margin-bottom: 0.35rem;
    border: 0;
    border-radius: 0.75rem;
    transition: 160ms ease;
}

.ghostit-client .offcanvas-item:first-child {
    border-top: 0;
}

.ghostit-client .offcanvas-item:hover {
    background: rgba(255, 122, 0, 0.08);
}

.ghostit-client .offcanvas-item .nav-link {
    min-height: 45px;
    padding: 0.7rem 0.75rem;
    color: #aeb8cc;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    font-weight: 700;
}

.ghostit-client .offcanvas-item .nav-link .icon {
    width: 19px;
    height: 19px;
}

.ghostit-client .offcanvas-item.active,
.ghostit-client .offcanvas-item.active:hover {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.22), rgba(255, 122, 0, 0.08));
}

.ghostit-client .offcanvas-item.active .nav-link {
    color: #fff !important;
    border-color: rgba(255, 122, 0, 0.48);
    box-shadow: inset 3px 0 0 var(--ghost-orange);
}

.ghostit-client #wrapper {
    min-height: calc(100vh - 155px);
}

.ghostit-client .content-block {
    min-height: calc(100vh - 185px);
    padding: 1.1rem;
    background: rgba(13, 19, 34, 0.83);
    border: 1px solid rgba(92, 112, 151, 0.3);
    border-radius: 1.15rem;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
}

.ghostit-page-title {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.15rem 1rem;
    border-bottom: 1px solid var(--ghost-border-soft);
}

.ghostit-page-title h1 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.ghostit-page-title p {
    margin: 0;
    color: var(--ghost-muted);
    font-size: 0.86rem;
}

.ghostit-client .breadcrumb {
    margin: 0 0 1rem;
    padding: 0.72rem 0.9rem;
    background: rgba(5, 8, 15, 0.55);
    border: 1px solid var(--ghost-border-soft);
    border-radius: 0.75rem;
}

.ghostit-client .breadcrumb,
.ghostit-client .breadcrumb a {
    color: #8f9bb3;
}

.ghostit-client .card,
.ghostit-public .card {
    overflow: hidden;
    color: var(--ghost-text);
    background: linear-gradient(155deg, rgba(21, 30, 51, 0.97), rgba(11, 16, 29, 0.97));
    border: 1px solid rgba(79, 99, 138, 0.36);
    border-radius: 1rem;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22);
}

.ghostit-client .card-header,
.ghostit-public .card-header {
    min-height: 58px;
    padding: 0.8rem 1rem;
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 122, 0, 0.09), rgba(18, 26, 45, 0.4));
    border-bottom: 1px solid rgba(79, 99, 138, 0.28);
}

.ghostit-client .card-header h1,
.ghostit-client .card-header h2,
.ghostit-client .card-header h3,
.ghostit-client .card-header h4,
.ghostit-client .card-header h5,
.ghostit-client .card-header h6,
.ghostit-public .card h1,
.ghostit-public .card h5 {
    color: #fff;
    font-weight: 800;
}

.ghostit-client .card-body,
.ghostit-public .card-body {
    color: #dbe1ec;
}

.ghostit-client .list-group-item,
.ghostit-public .list-group-item {
    color: #dce2ed;
    background: rgba(8, 12, 22, 0.42);
    border-color: rgba(79, 99, 138, 0.24);
}

.ghostit-client .list-group-item:hover {
    color: #fff;
    background: rgba(255, 122, 0, 0.08);
}

.ghostit-client .table,
.ghostit-public .table {
    --bs-table-color: #dce2ed;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(79, 99, 138, 0.28);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.018);
    --bs-table-hover-bg: rgba(255, 122, 0, 0.065);
}

.ghostit-client table thead th,
.ghostit-public table thead th {
    color: #96a4bd;
    background: rgba(7, 10, 18, 0.42);
    font-size: 0.72rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.ghostit-client .form-control,
.ghostit-client .form-select,
.ghostit-client .ts-control,
.ghostit-public .form-control,
.ghostit-public .form-select,
.ghostit-public .ts-control {
    min-height: 44px;
    color: #f3f5fa;
    background-color: #090e1a !important;
    border-color: #2a3652;
    border-radius: 0.72rem;
}

.ghostit-client .form-control:focus,
.ghostit-client .form-select:focus,
.ghostit-client .ts-control:focus,
.ghostit-public .form-control:focus,
.ghostit-public .form-select:focus,
.ghostit-public .ts-control:focus {
    color: #fff;
    background-color: #0b1120 !important;
    border-color: var(--ghost-orange);
    box-shadow: 0 0 0 0.22rem rgba(255, 122, 0, 0.14);
}

.ghostit-client .form-control::placeholder,
.ghostit-public .form-control::placeholder {
    color: #69758e;
}

.ghostit-client .form-label,
.ghostit-public .form-label {
    color: #b9c3d5;
    font-weight: 700;
}

.ghostit-client .btn,
.ghostit-public .btn {
    min-height: 40px;
    border-radius: 0.7rem;
    font-weight: 800;
}

.ghostit-client .btn-primary,
.ghostit-public .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff8c24, #ed6500);
    border-color: #ff8110;
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.2);
}

.ghostit-client .btn-primary:hover,
.ghostit-public .btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff9b3d, #f57008);
    border-color: #ff9b3d;
    transform: translateY(-1px);
}

.ghostit-client .btn-dark,
.ghostit-public .btn-dark,
.ghostit-client .btn-secondary,
.ghostit-public .btn-secondary,
.ghostit-client .btn-outline-primary,
.ghostit-public .btn-outline-primary {
    color: #e7ebf3;
    background: #151d31;
    border-color: #33415f;
}

.ghostit-client .btn-dark:hover,
.ghostit-public .btn-dark:hover,
.ghostit-client .btn-secondary:hover,
.ghostit-public .btn-secondary:hover,
.ghostit-client .btn-outline-primary:hover,
.ghostit-public .btn-outline-primary:hover {
    color: #fff;
    background: #1b2742;
    border-color: rgba(255, 122, 0, 0.58);
}

.ghostit-client .dropdown-menu,
.ghostit-public .dropdown-menu {
    color: #e9edf5;
    background: #101727;
    border-color: #2b3855;
    border-radius: 0.85rem;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

.ghostit-client .dropdown-item,
.ghostit-public .dropdown-item {
    color: #bdc7d9;
    border-radius: 0.55rem;
}

.ghostit-client .dropdown-item:hover,
.ghostit-client .dropdown-item:focus,
.ghostit-public .dropdown-item:hover,
.ghostit-public .dropdown-item:focus {
    color: #fff;
    background: rgba(255, 122, 0, 0.12);
}

.ghostit-client .alert,
.ghostit-public .alert {
    color: #e9edf5;
    background: rgba(18, 27, 46, 0.9);
    border-color: rgba(79, 99, 138, 0.38);
    border-radius: 0.85rem;
}

.ghostit-client .alert-info,
.ghostit-public .alert-info {
    border-left: 3px solid #4aa3ff;
}

.ghostit-client .alert-success,
.ghostit-public .alert-success {
    border-left: 3px solid var(--ghost-green);
}

.ghostit-client .alert-warning,
.ghostit-public .alert-warning {
    border-left: 3px solid var(--ghost-orange-2);
}

.ghostit-client .alert-danger,
.ghostit-public .alert-danger {
    border-left: 3px solid #ff5c7a;
}

.ghostit-client .badge.bg-primary,
.ghostit-public .badge.bg-primary,
.ghostit-client .badge.text-bg-primary,
.ghostit-public .badge.text-bg-primary {
    background: rgba(255, 122, 0, 0.2) !important;
    color: #ffc185 !important;
    border: 1px solid rgba(255, 122, 0, 0.4);
}

.ghostit-client .pagination .page-link,
.ghostit-public .pagination .page-link {
    color: #aeb9cd;
    background: #11192b;
    border-color: #2b3855;
}

.ghostit-client .pagination .active .page-link,
.ghostit-public .pagination .active .page-link {
    color: #fff;
    background: var(--ghost-orange);
    border-color: var(--ghost-orange);
}

.ghostit-client .accordion-item,
.ghostit-public .accordion-item {
    color: #dce2ed;
    background: #0e1525;
    border-color: #2a3652;
}

.ghostit-client .accordion-button,
.ghostit-public .accordion-button {
    color: #edf1f7;
    background: #131c30;
}

.ghostit-client .accordion-button:not(.collapsed),
.ghostit-public .accordion-button:not(.collapsed) {
    color: #fff;
    background: rgba(255, 122, 0, 0.12);
    box-shadow: inset 0 -1px 0 rgba(255, 122, 0, 0.25);
}

.ghostit-client #footer {
    padding: 1rem;
    color: #75819a !important;
}

.ghostit-client .text-muted,
.ghostit-public .text-muted,
.ghostit-client .text-secondary,
.ghostit-public .text-secondary {
    color: var(--ghost-muted) !important;
}

.ghostit-client .js-theme-toggler,
.ghostit-public .js-theme-toggler {
    display: none !important;
}

body.ghostit-public {
    padding: 1.25rem;
}

body.ghostit-public.page-login,
body.ghostit-public.page-password-reset,
body.ghostit-public.page-signup,
body.ghostit-public.page-set-password {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ghostit-public.page-login > .container,
body.ghostit-public.page-password-reset > .container,
body.ghostit-public.page-signup > .container,
body.ghostit-public.page-set-password > .container {
    width: 100%;
    max-width: 1120px;
}

body.ghostit-public.page-login .row.h-75,
body.ghostit-public.page-password-reset .row.h-75,
body.ghostit-public.page-signup .row.h-75,
body.ghostit-public.page-set-password .row.h-75 {
    min-height: calc(100vh - 2.5rem);
}

body.ghostit-public.page-login .col-md-6.col-lg-4,
body.ghostit-public.page-password-reset .col-md-6.col-lg-4,
body.ghostit-public.page-signup .col-md-6.col-lg-4,
body.ghostit-public.page-set-password .col-md-6.col-lg-4 {
    width: min(100%, 470px);
}

.ghostit-public .card {
    border-color: rgba(255, 122, 0, 0.22);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 122, 0, 0.04);
}

.ghostit-public .card-body {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.ghostit-public .navbar-brand,
.ghostit-public .navbar-brand span {
    color: #fff;
}

@media (max-width: 767.98px) {
    .ghostit-client > .container {
        width: min(100% - 1rem, 1480px);
    }

    .ghostit-client header {
        padding-top: 0.5rem;
    }

    .ghostit-client header .navbar {
        border-radius: 0.9rem;
    }

    .ghostit-client .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--ghost-border-soft);
    }

    .ghostit-client .navbar-nav {
        align-items: stretch;
    }

    .ghostit-client .navbar .nav-link,
    .ghostit-client .client-dropdown .nav-link.dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
    }

    .ghostit-client .content-block {
        min-height: auto;
        padding: 0.8rem;
        border-radius: 0.9rem;
    }

    .ghostit-page-title h1 {
        font-size: 1.55rem;
    }

    .ghostit-product-badge {
        display: none;
    }
}
