/* Backend UI scale; standalone frontend preview documents keep their own scale. */
html.backend-ui-scaled {
    --backend-ui-scale: 0.8;
    zoom: var(--backend-ui-scale);
}

html.backend-ui-scaled .app-container,
html.backend-ui-scaled body.login-body {
    min-height: calc(100vh / var(--backend-ui-scale));
}

html.backend-ui-scaled .fixed-sidebar .app-sidebar {
    height: 100%;
}

html.backend-ui-scaled .scrollbar-sidebar,
html.backend-ui-scaled .backend-page-shell {
    min-height: calc(100vh / var(--backend-ui-scale) - 70px);
}

html.backend-ui-scaled .scrollbar-sidebar {
    height: calc(100vh / var(--backend-ui-scale) - 70px);
}

html.backend-ui-scaled .modal-backdrop,
html.backend-ui-scaled .modal-fullscreen {
    width: 100%;
    height: 100%;
}

html.backend-ui-scaled .modal.show:has(> .backend-content-preview-dialog) {
    display: flex !important;
    align-items: center;
}

html.backend-ui-scaled .backend-content-preview-dialog {
    min-height: 0;
}

html.backend-ui-scaled .tox-tinymce.tox-fullscreen {
    width: 100% !important;
    height: 100% !important;
}

/* TinyMCE positions floating controls in viewport coordinates. */
html.backend-ui-scaled .tox-tinymce-aux {
    position: fixed !important;
    inset: 0;
    zoom: calc(1 / var(--backend-ui-scale));
    pointer-events: none;
}

html.backend-ui-scaled .tox-tinymce-aux > * {
    pointer-events: auto;
}

html.backend-ui-scaled .tox-tinymce-aux .tox-menu,
html.backend-ui-scaled .tox-tinymce-aux .tox-tooltip,
html.backend-ui-scaled .tox-tinymce-aux .tox-pop {
    transform: scale(var(--backend-ui-scale));
    transform-origin: top left;
}

html.backend-ui-scaled .tox-tinymce-aux .tox-dialog-wrap {
    zoom: var(--backend-ui-scale);
}

/* Backend shared layout */
.app-sidebar {
    background: #fff;
    border-right: 1px solid #e5e7eb;
}

.app-sidebar.sidebar-shadow {
    box-shadow: 0.25rem 0 1.25rem rgba(15, 23, 42, 0.06);
}

.app-sidebar .app-header__logo {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 1rem;
}

.backend-sidebar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.backend-sidebar-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--backend-theme) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--backend-theme) 24%, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--backend-theme);
    flex: 0 0 auto;
}

.backend-sidebar-brand-text {
    min-width: 0;
    line-height: 1.15;
}

.backend-sidebar-brand-title {
    display: block;
    color: #111827;
    font-size: 0.96rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.backend-sidebar-brand-subtitle {
    display: block;
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.74rem;
    letter-spacing: 0;
}

.scrollbar-sidebar {
    height: calc(100vh - 70px);
    overflow: auto;
    padding: 0.75rem 0.85rem 1rem;
}

.scrollbar-sidebar::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.app-sidebar__inner {
    padding: 0;
}

.vertical-nav-menu {
    padding-bottom: 0.75rem;
}

.vertical-nav-menu::before,
.vertical-nav-menu::after {
    display: none;
}

.vertical-nav-menu li {
    margin-bottom: 1.4rem;
}

.vertical-nav-menu li a {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 42px;
    line-height: 1.25;
    border-radius: 9px;
    color: #344054;
    font-weight: 600;
    padding: 0.62rem 0.85rem;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.vertical-nav-menu > li > a {
    position: relative;
}

.vertical-nav-menu > li.mm-active > a,
.vertical-nav-menu li a.mm-active {
    background: color-mix(in srgb, var(--backend-theme) 12%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    box-shadow: none !important;
}

.vertical-nav-menu li a:hover {
    background: color-mix(in srgb, var(--backend-theme) 9%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
}

.vertical-nav-menu i.metismenu-state-icon,
.vertical-nav-menu i.metismenu-icon {
    color: var(--backend-theme) !important;
    opacity: 0.95;
}

.vertical-nav-menu i.metismenu-icon {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 22px;
    height: 22px;
    margin-right: 0.85rem;
    text-align: center;
    line-height: 35px;
    flex: 0 0 22px;
}

.vertical-nav-menu i.metismenu-state-icon {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 1.5rem;
    font-weight: 900;
    transform: translateY(8px);
    transform-origin: center;
    flex: 0 0 18px;
}

.vertical-nav-menu i.metismenu-state-icon::before {
    display: block;
    line-height: 1;
    font-weight: 900;
    -webkit-text-stroke: 0.45px currentColor;
    text-shadow: 0 0 0 currentColor;
}

.vertical-nav-menu li.mm-active > a i.metismenu-state-icon {
    transform: translateY(2px) rotate(-180deg);
}

.vertical-nav-menu ul {
    margin: 0.3rem 0 0.7rem 0.85rem;
    padding: 0.35rem 0 0.25rem 0.75rem;
    border-left: 1px solid #dce3ea;
}

.vertical-nav-menu ul::before {
    display: none;
}

.vertical-nav-menu ul > li > a {
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    color: #475467;
    font-size: 0.92rem;
    font-weight: 600;
}

.vertical-nav-menu ul > li {
    margin-bottom: 0.28rem;
}

.vertical-nav-menu ul > li > a:hover,
.vertical-nav-menu ul > li > a.mm-active {
    background: color-mix(in srgb, var(--backend-theme) 11%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
}

.vertical-nav-menu .submenu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a3adba;
    display: inline-block;
    margin-right: 0.65rem;
    vertical-align: middle;
    flex: 0 0 6px;
}

.vertical-nav-menu .submenu-title {
    min-width: 0;
    font-weight: 900;
}

.vertical-nav-menu a:hover .submenu-dot,
.vertical-nav-menu a.mm-active .submenu-dot {
    background: var(--backend-theme);
}

.sidebar-tools {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.7rem;
    padding-top: 0.75rem;
}

.sidebar-tools-title {
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    padding: 0 0.85rem 0.4rem;
}

.closed-sidebar:not(.closed-sidebar-mobile) .backend-sidebar-brand-text,
.closed-sidebar:not(.closed-sidebar-mobile) .sidebar-tools-title {
    display: none;
}

.closed-sidebar:not(.closed-sidebar-mobile) .sidebar-tools {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-header .app-header__logo .logo-src2 {
    display: none;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .app-header__logo .logo-src2 {
    display: block;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .backend-sidebar-brand-text,
.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .sidebar-tools-title {
    display: block;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .sidebar-tools {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.7rem;
    padding-top: 0.75rem;
}

.closed-sidebar:not(.sidebar-mobile-open) .app-sidebar:hover .scrollbar-sidebar {
    overflow: auto !important;
    padding: 0.75rem 0.85rem 1rem;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu li {
    margin-bottom: 1.4rem;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu li a {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: auto !important;
    min-height: 42px;
    line-height: 1.25;
    border-radius: 9px;
    color: #344054;
    font-weight: 600;
    padding: 0.62rem 0.85rem !important;
    text-indent: 0 !important;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu i.metismenu-icon {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 22px;
    height: 22px;
    margin-left: 0 !important;
    margin-right: 0.85rem !important;
    text-align: center;
    line-height: 35px;
    transform: none !important;
    text-indent: 0 !important;
    flex: 0 0 22px;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu i.metismenu-state-icon {
    visibility: visible !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 18px;
    height: 18px;
    margin-left: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 1.5rem;
    font-weight: 900;
    transform: translateY(8px);
    transform-origin: center;
    flex: 0 0 18px;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu li.mm-active > a i.metismenu-state-icon {
    transform: translateY(2px) rotate(-180deg);
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu ul {
    margin: 0.3rem 0 0.7rem 0.85rem;
    padding: 0.35rem 0 0.25rem 0.75rem !important;
    border-left: 1px solid #dce3ea;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu ul::before {
    display: none !important;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu ul.mm-show {
    padding: 0.35rem 0 0.25rem 0.75rem !important;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu ul > li {
    margin-bottom: 0.28rem;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu ul > li > a {
    height: auto !important;
    min-height: 36px;
    padding: 0.45rem 0.75rem !important;
    color: #475467;
    font-size: 0.92rem;
    font-weight: 600;
}

.closed-sidebar:not(.closed-sidebar-mobile) .app-sidebar:hover .vertical-nav-menu ul ul li a {
    padding-left: 0.75rem !important;
}

.app-header.header-shadow {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 0.35rem 1.25rem rgba(15, 23, 42, 0.06);
}

.app-header__content {
    padding-left: 0.75rem;
    padding-right: 1.25rem;
    justify-content: space-between;
    min-width: 0;
}

.app-header-left {
    flex: 1 1 auto;
    min-width: 0;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.backend-user-dropdown {
    position: relative;
}

.backend-user-trigger {
    min-height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.05rem 0.45rem 0.95rem;
    cursor: pointer;
    box-shadow: 0 0.16rem 0.55rem rgba(15, 23, 42, 0.12);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.backend-user-trigger:hover,
.backend-user-trigger[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--backend-theme) 24%, #d0d5dd);
    box-shadow: 0 0.32rem 0.9rem rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
}

.backend-user-trigger:focus,
.backend-user-trigger:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--backend-theme) 48%, #e5e7eb);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--backend-theme) 16%, transparent);
}

.backend-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--backend-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    flex: 0 0 auto;
}

.backend-user-greeting {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1;
    white-space: nowrap;
}

.backend-user-greeting-prefix {
    color: #212529;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0;
}

.backend-user-name {
    color: var(--backend-theme);
    font-weight: 800;
    font-size: 1.05rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.backend-user-arrow {
    width: 18px;
    height: 18px;
    color: var(--backend-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
    flex: 0 0 auto;
    transform: translateY(1px);
    transition: transform 0.18s ease, color 0.18s ease;
}

.backend-user-trigger[aria-expanded="true"] .backend-user-arrow {
    transform: translateY(1px) rotate(180deg);
}

/* Shared dropdown positioning and viewport overflow */
.dropdown.global-dropdown-open,
.dropup.global-dropdown-open,
.dropend.global-dropdown-open,
.dropstart.global-dropdown-open {
    z-index: 2147482000 !important;
}

.dropdown > .dropdown-menu,
.dropup > .dropdown-menu,
.dropend > .dropdown-menu,
.dropstart > .dropdown-menu {
    max-height: min(62vh, 21rem, var(--global-dropdown-available-height, 62vh));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    z-index: 2147482000 !important;
}

.dropdown > .dropdown-menu.show,
.dropdown.open > .dropdown-menu,
.dropup > .dropdown-menu.show,
.dropup.open > .dropdown-menu,
.dropend > .dropdown-menu.show,
.dropend.open > .dropdown-menu,
.dropstart > .dropdown-menu.show,
.dropstart.open > .dropdown-menu {
    bottom: auto !important;
    display: block;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    top: calc(100% + 0.35rem) !important;
    transform: none !important;
}

.backend-user-menu {
    min-width: 304px;
    margin-top: 0.5rem !important;
    padding: 0.58rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1.1rem 2.4rem rgba(15, 23, 42, 0.13);
}

.backend-user-menu-summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 52px;
    padding: 0.58rem 0.62rem;
    /*border: 1px solid #eef2f7;*/
    border-radius: 10px;
    /*background: linear-gradient(90deg, color-mix(in srgb, var(--backend-theme) 8%, #fff), #fff);*/
    overflow: hidden;
}

/*.backend-user-menu-summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78rem;
    bottom: 0.78rem;
    width: 3px;
    border-radius: 999px;
    background: var(--backend-theme);
}*/

.backend-user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    color: var(--backend-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.backend-user-menu-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.backend-user-menu-name {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.backend-user-menu-role {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-top: 0.18rem;
}

.backend-user-action {
    min-height: 52px;
    border-radius: 9px;
    display: flex !important;
    align-items: center;
    gap: 0.72rem;
    color: #344054 !important;
    font-weight: 600;
    padding: 0.58rem 0.62rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.backend-user-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    color: var(--backend-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.backend-user-action-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.backend-user-action-title {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 800;
}

.backend-user-action-desc {
    margin-top: 0.14rem;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: normal;
}

.backend-user-action:hover,
.backend-user-action:focus {
    background: color-mix(in srgb, var(--backend-theme) 9%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
}

.backend-user-action-danger,
.backend-user-action-danger .backend-user-action-title,
.backend-user-action-danger .backend-user-action-icon {
    color: #b42318 !important;
}

.backend-user-action-danger .backend-user-action-icon {
    background: #fff5f5;
}

.backend-user-action-danger:hover,
.backend-user-action-danger:focus {
    background: #fff5f5 !important;
    color: #b42318 !important;
}

/* Backend content pages */
.backend-page-shell {
    min-height: calc(100vh - 70px);
    background: #fff;
    padding: 1.3rem 1.45rem 2rem;
}

.backend-page-header {
    min-height: 76px;
    margin-bottom: 1.1rem;
    padding: 1.05rem 1.25rem;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0.5rem 1.1rem rgba(15, 23, 42, 0.06);
}

.backend-page-header-with-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.backend-page-title-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    min-height: 44px;
}

.backend-page-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--backend-theme) 9%, #fff);
    border: 0;
    color: var(--backend-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 auto;
    box-shadow: none;
}

.backend-page-header-with-actions .backend-page-title-block {
    flex: 1 1 260px;
}

.backend-page-action-group {
    flex: 0 1 auto;
    max-width: 100%;
}

.backend-page-title-copy {
    min-width: 0;
}

.backend-page-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.backend-page-body {
    width: 100%;
}

.backend-data-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 0.45rem 1.15rem rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.backend-fill-screen-card,
.backend-fill-screen-body {
    min-height: calc(97vh - 170px);
}

.backend-fill-screen-body {
    align-items: center;
    align-content: center;
    justify-content: center;
}

.backend-home-card {
    height: 100%;
}

.backend-home-menu-card {
    height: auto;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 22%, #d7dde7) !important;
    background: #fff;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--backend-theme) 7%, #fff),
        0 0.35rem 0.95rem rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.backend-home-menu-card:hover,
.backend-home-menu-card:focus-within {
    border-color: color-mix(in srgb, var(--backend-theme) 36%, #d9e2ec);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--backend-theme) 10%, #fff),
        0 0.9rem 1.7rem color-mix(in srgb, var(--backend-theme) 12%, transparent);
    transform: translateY(-2px);
}

.backend-home-menu-toggle {
    width: 100%;
    min-height: 112px;
    padding: 1rem 3.35rem 1rem 1rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 16%, #edf1f5);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #1f2937;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, color-mix(in srgb, var(--backend-theme) 4%, #fff) 100%);
    text-align: left;
    text-decoration: none !important;
    font-weight: 850;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.backend-home-menu-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18px 18px, color-mix(in srgb, var(--backend-theme) 82%, #172033) 0 4px, transparent 4.8px),
        radial-gradient(circle at 64px 26px, color-mix(in srgb, var(--backend-theme) 62%, #fff) 0 3px, transparent 3.7px),
        radial-gradient(circle at 112px 16px, color-mix(in srgb, var(--backend-theme) 38%, #fff) 0 2px, transparent 2.7px),
        radial-gradient(circle at 154px 38px, color-mix(in srgb, var(--backend-theme) 76%, #64748b) 0 5px, transparent 5.8px),
        radial-gradient(circle at 42px 74px, color-mix(in srgb, var(--backend-theme) 46%, #e5e7eb) 0 3.5px, transparent 4.2px),
        radial-gradient(circle at 92px 68px, color-mix(in srgb, var(--backend-theme) 72%, #fff) 0 2.5px, transparent 3.2px),
        radial-gradient(circle at 138px 88px, color-mix(in srgb, var(--backend-theme) 86%, #111827) 0 4px, transparent 4.8px),
        radial-gradient(circle at 178px 78px, color-mix(in srgb, var(--backend-theme) 28%, #d1d5db) 0 3.5px, transparent 4.2px),
        radial-gradient(circle at 24px 118px, color-mix(in srgb, var(--backend-theme) 56%, #fff) 0 2px, transparent 2.7px),
        radial-gradient(circle at 76px 112px, color-mix(in srgb, var(--backend-theme) 74%, #64748b) 0 3px, transparent 3.7px),
        radial-gradient(circle at 126px 126px, color-mix(in srgb, var(--backend-theme) 44%, #fff) 0 2px, transparent 2.7px),
        radial-gradient(circle at 192px 124px, color-mix(in srgb, var(--backend-theme) 66%, #fff) 0 4px, transparent 4.8px);
    background-size: 210px 145px;
    opacity: 0.34;
    pointer-events: none;
}

.backend-home-menu-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.94) 0 24%, rgba(255, 255, 255, 0.68) 48%, transparent 74%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.52));
    opacity: 0.9;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.backend-home-menu-toggle:hover,
.backend-home-menu-toggle:focus {
    color: color-mix(in srgb, var(--backend-theme) 86%, #111827);
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--backend-theme) 8%, #fff) 100%);
    text-decoration: none !important;
}

.backend-home-menu-toggle:hover::after,
.backend-home-menu-toggle:focus::after {
    opacity: 0.78;
}

.backend-home-menu-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--backend-theme) 24%, transparent);
    outline-offset: -3px;
}

.backend-home-menu-title {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.backend-home-menu-title .metismenu-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--backend-theme);
    background: #fff;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--backend-theme) 13%, #e5e7eb),
        0 0.65rem 1.1rem color-mix(in srgb, var(--backend-theme) 10%, transparent);
    font-size: 2.15rem;
    flex: 0 0 auto;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.backend-home-menu-toggle:hover .backend-home-menu-title .metismenu-icon,
.backend-home-menu-toggle:focus .backend-home-menu-title .metismenu-icon {
    color: #fff;
    background: var(--backend-theme);
    box-shadow: 0 0.85rem 1.45rem color-mix(in srgb, var(--backend-theme) 22%, transparent);
    transform: translateX(2px);
}

.backend-home-menu-title span {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.34rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: left;
    color: #172033;
    font-weight: 900;
}

.backend-home-menu-title > span::after {
    content: "";
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--backend-theme) 46%, #d7dde7);
    opacity: 0.75;
    transition: width 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.backend-home-menu-toggle:hover .backend-home-menu-title > span::after,
.backend-home-menu-toggle:focus .backend-home-menu-title > span::after {
    width: 54px;
    opacity: 1;
    background: var(--backend-theme);
}

.backend-home-menu-caret {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.62rem;
    right: 0.62rem;
    color: #fff;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--backend-theme) 78%, #fff) 0%,
            var(--backend-theme) 52%,
            color-mix(in srgb, var(--backend-theme) 82%, #111827) 100%);
    border: 1px solid color-mix(in srgb, var(--backend-theme) 18%, #fff);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 0.5rem 1.05rem color-mix(in srgb, var(--backend-theme) 24%, transparent);
    flex: 0 0 auto;
    font-size: 1.1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    z-index: 1;
}

.backend-home-menu-caret::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.backend-home-menu-caret::before,
.backend-home-modal-link-arrow::before {
    width: 1em;
    height: 1em;
    display: inline-flex;
   /* align-items: center;
    justify-content: center;*/
    line-height: 2;
}

.backend-home-menu-toggle:hover .backend-home-menu-caret,
.backend-home-menu-toggle:focus .backend-home-menu-caret {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 0.72rem 1.3rem color-mix(in srgb, var(--backend-theme) 34%, transparent);
    filter: saturate(1.08);
    transform: translate(2px, -2px) scale(1.04);
}

.backend-home-menu-modal .modal-dialog {
    max-width: min(560px, calc(100vw - 1.5rem));
    margin: min(14vh, 6rem) auto 1.5rem;
}

.backend-home-menu-modal .backend-modal-content {
    width: 100%;
    height: auto;
    max-height: min(82vh, 720px);
    background: #fff;
}

.backend-home-menu-modal .backend-modal-body {
    max-height: calc(min(82vh, 720px) - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.backend-home-modal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.backend-home-modal-menu li {
    margin: 0;
}

.backend-home-modal-link {
    min-height: 76px;
    padding: 0.88rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 14%, #e5e7eb);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 0.82rem;
    color: #1f2937;
    text-decoration: none !important;
    background: #fff;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.backend-home-modal-link:hover,
.backend-home-modal-link:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 46%, #d9e2ec);
    color: color-mix(in srgb, var(--backend-theme) 86%, #111827);
    background: color-mix(in srgb, var(--backend-theme) 5%, #fff);
    box-shadow: 0 0.72rem 1.4rem color-mix(in srgb, var(--backend-theme) 13%, transparent);
    transform: translateY(-1px);
}

.backend-home-modal-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    font-size: 1.08rem;
}

.backend-home-modal-link-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.backend-home-modal-link-title {
    color: #111827;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.25;
}

.backend-home-modal-link-desc {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.backend-home-modal-link-arrow {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: color-mix(in srgb, var(--backend-theme) 62%, #94a3b8);
    background: color-mix(in srgb, var(--backend-theme) 7%, #fff);
    font-size: 0.72rem;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .backend-home-menu-toggle {
        min-height: 104px;
        padding: 0.9rem 2.85rem 0.9rem 0.8rem;
        gap: 0.75rem;
    }

    .backend-home-menu-title {
        gap: 0.7rem;
        font-size: 0.92rem;
    }

    .backend-home-menu-title > span::after {
        width: 34px;
    }

    .backend-home-menu-title .metismenu-icon {
        width: 48px;
        height: 48px;
        font-size: 1.72rem;
    }

    .backend-home-menu-caret {
        width: 32px;
        height: 32px;
        top: 0.56rem;
        right: 0.56rem;
        font-size: 1rem;
    }

    .backend-home-menu-modal .modal-dialog {
        margin: 1rem auto;
    }
}

.analytics-number {
    font-size: 32px;
    font-weight: 700;
}

.analytics-label {
    color: #6c757d;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ga-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ga-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e9ecef;
    border-top: 5px solid #4e73df;
    border-radius: 50%;
    animation: ga-spin 0.8s linear infinite;
}

@keyframes ga-spin {
    to {
        transform: rotate(360deg);
    }
}

.ga-loading-text {
    margin-top: 14px;
    color: #495057;
    font-size: 15px;
    letter-spacing: 0.05em;
}

.growth-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.growth-up {
    color: #0f5132;
    background: #d1e7dd;
}

.growth-down {
    color: #842029;
    background: #f8d7da;
}

.growth-flat {
    color: #495057;
    background: #e9ecef;
}

.growth-note {
    display: block;
    margin-top: 2px;
    color: #adb5bd;
    font-size: 11px;
    font-weight: 400;
}

.info-tip {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #6c757d;
    background: #e9ecef;
    font-size: 11px;
    cursor: help;
    vertical-align: middle;
}

.info-tip:hover {
    color: #fff;
    background: #4e73df;
}

.info-tip .info-tip-text {
    visibility: hidden;
    opacity: 0;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);
    color: #fff;
    background: #343a40;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s;
}

.info-tip .info-tip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #343a40;
}

.info-tip:hover .info-tip-text {
    visibility: visible;
    opacity: 1;
}

.select-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>") no-repeat right 8px center;
    background-size: 12px;
}

.wizard-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.wizard-modal {
    width: 95%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
}

.wizard-modal:not(.backend-modal-content) {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.wizard-header:not(.backend-modal-header) {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-header:not(.backend-modal-header) h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.wizard-body:not(.backend-modal-body) {
    padding: 20px 24px;
}

.wizard-footer:not(.backend-modal-footer) {
    padding: 12px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-steps {
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
}

.wizard-step-dot {
    width: 32px;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    transition: background 0.3s;
}

.wizard-step-dot.active {
    background: #4e73df;
}

.wizard-step-dot.done {
    background: #1cc88a;
}

.wizard-code {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: relative;
    overflow-x: auto;
    background: #f8f9fa;
    font-family: Consolas, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
}

.wizard-code .copy-btn {
    padding: 3px 10px;
    border: none;
    border-radius: 4px;
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    background: #4e73df;
    font-size: 11px;
    cursor: pointer;
}

.wizard-code .copy-btn:hover {
    background: #2e59d9;
}

.wizard-step-title {
    margin-bottom: 12px;
    color: #344767;
    font-size: 16px;
    font-weight: 700;
}

.wizard-step-title i {
    margin-right: 6px;
    color: #4e73df;
}

.wizard-ol {
    padding-left: 20px;
    font-size: 14px;
    line-height: 2;
}

.wizard-note {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 4px solid #f6c23e;
    border-radius: 4px;
    background: #fff3cd;
    font-size: 13px;
}

.wizard-success {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 4px solid #1cc88a;
    border-radius: 4px;
    background: #d1e7dd;
    font-size: 13px;
}

.action-panel {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--backend-theme) 3%, #fff) 58%, color-mix(in srgb, var(--backend-theme) 6%, #fff) 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10), 0 8px 22px color-mix(in srgb, var(--backend-theme) 7%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

.action-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), 0 12px 30px color-mix(in srgb, var(--backend-theme) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.action-panel-topbar {
    height: 96px;
    overflow: hidden;
    position: relative;
    background: var(--backend-theme);
}

.action-panel-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
}

.topbar-wave {
    border-radius: 50%;
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
}

.topbar-wave-1 {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -30px;
}

.topbar-wave-2 {
    width: 120px;
    height: 120px;
    top: -20px;
    right: 70px;
    background: rgba(255, 255, 255, 0.05);
}

.action-panel-deco {
    border-radius: 50%;
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.action-panel-deco-1 {
    width: 220px;
    height: 220px;
    top: 78px;
    right: -90px;
    background: radial-gradient(circle, color-mix(in srgb, var(--backend-theme) 16%, transparent) 0%, transparent 72%);
}

.action-panel-deco-2 {
    width: 170px;
    height: 170px;
    bottom: 50px;
    left: -80px;
    background: radial-gradient(circle, color-mix(in srgb, var(--backend-theme) 12%, transparent) 0%, transparent 72%);
}

.action-panel-deco-3 {
    width: 10px;
    height: 10px;
    top: 194px;
    left: 64px;
    opacity: 0.9;
    background: color-mix(in srgb, var(--backend-theme) 48%, #fff);
    box-shadow: 92px 30px 0 -1px color-mix(in srgb, var(--backend-theme) 58%, transparent), 248px 8px 0 0 color-mix(in srgb, var(--backend-theme) 46%, transparent), 305px 88px 0 -1px color-mix(in srgb, var(--backend-theme) 42%, transparent), 40px 120px 0 -2px color-mix(in srgb, var(--backend-theme) 38%, #fff);
}

.action-panel-header,
.action-panel-body {
    padding-left: 32px;
    padding-right: 32px;
    position: relative;
    z-index: 2;
}

.action-panel-header {
    margin-top: -42px;
    padding-bottom: 22px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.action-panel-badge {
    margin-bottom: 18px;
    padding: 8px 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--backend-theme);
    background: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--backend-theme) 12%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.action-panel-icon-wrap {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, color-mix(in srgb, var(--backend-theme) 6%, #fff) 0%, color-mix(in srgb, var(--backend-theme) 14%, #fff) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 30px color-mix(in srgb, var(--backend-theme) 15%, transparent);
}

.action-panel-icon-wrap i {
    position: relative;
    z-index: 3;
    color: var(--backend-theme);
    font-size: 32px;
}

.icon-ring {
    position: absolute;
    inset: -10px;
    z-index: 1;
    border: 1px dashed color-mix(in srgb, var(--backend-theme) 35%, transparent);
    border-radius: 34px;
}

.icon-ring-2 {
    inset: -22px;
    border-color: color-mix(in srgb, var(--backend-theme) 25%, transparent);
    border-style: solid;
}

.action-panel-title {
    margin-bottom: 10px;
    color: var(--backend-theme);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.action-panel-subtitle {
    max-width: 340px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.action-panel-body {
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-get-data {
    min-width: 228px;
    padding: 0;
    border: none;
    border-radius: 999px;
    overflow: visible;
    position: relative;
    color: #ffffff;
    background: var(--backend-theme);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--backend-theme) 24%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: all 0.28s ease;
}

.btn-get-data::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 1;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.btn-get-data .btn-shadow {
    height: 24px;
    border-radius: 999px;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -12px;
    z-index: 0;
    background: color-mix(in srgb, var(--backend-theme) 25%, transparent);
    filter: blur(14px);
}

.btn-get-data .btn-glow {
    width: 72%;
    height: 100%;
    border-radius: 999px;
    position: absolute;
    top: 0;
    left: -130%;
    z-index: 2;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0.15) 65%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-22deg);
    transition: left 0.85s ease;
}

.btn-get-data .btn-content {
    width: 100%;
    padding: 16px 30px;
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-get-data i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.btn-get-data:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 22px 38px color-mix(in srgb, var(--backend-theme) 30%, transparent), 0 0 0 8px color-mix(in srgb, var(--backend-theme) 8%, transparent);
}

.btn-get-data:hover .btn-glow {
    left: 150%;
}

.btn-get-data:hover i {
    transform: scale(1.14);
}

.btn-get-data:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 10px 18px color-mix(in srgb, var(--backend-theme) 22%, transparent), inset 0 2px 6px rgba(0, 0, 0, 0.10);
}

.btn-get-data:focus {
    outline: none;
    box-shadow: 0 0 0 0.24rem color-mix(in srgb, var(--backend-theme) 18%, transparent), 0 16px 28px color-mix(in srgb, var(--backend-theme) 22%, transparent);
}

.btn-get-data:disabled {
    color: #eef4ff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--backend-theme) 22%, #fff), color-mix(in srgb, var(--backend-theme) 32%, #fff));
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-get-data:disabled .btn-glow,
.btn-get-data:disabled .btn-shadow {
    display: none;
}

.backend-frontend-color-field {
    width: min(100%, 340px);
    margin: 0 auto;
}

.backend-frontend-color-pill {
    min-height: 64px;
    padding: 0 28px;
    border: 1px solid color-mix(in srgb, var(--frontend-current-color) 72%, #fff);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--frontend-current-color) 78%, #fff), color-mix(in srgb, var(--frontend-current-color) 88%, #111827));
    box-shadow: 0 18px 34px color-mix(in srgb, var(--frontend-current-color) 24%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.backend-frontend-color-pill::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.backend-frontend-color-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px color-mix(in srgb, var(--frontend-current-color) 30%, transparent), 0 0 0 8px color-mix(in srgb, var(--frontend-current-color) 8%, transparent);
}

.backend-frontend-color-pill.is-disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--frontend-current-color) 16%, transparent);
}

.backend-frontend-color-pill.is-disabled:hover {
    transform: none;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--frontend-current-color) 16%, transparent);
}

.backend-frontend-color-input {
    width: 100% !important;
    height: 100%;
    padding: 0 !important;
    border: 0 !important;
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.backend-frontend-color-input.form-control,
.backend-frontend-color-input.form-control:disabled {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

.backend-frontend-color-input:disabled {
    cursor: not-allowed;
}

.backend-frontend-color-pill-icon,
.backend-frontend-color-pill-text {
    position: relative;
    z-index: 5;
}

.backend-frontend-color-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.backend-frontend-color-pill-icon i {
    font-size: 13px;
}

.backend-frontend-color-pill-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.28);
    white-space: nowrap;
}

.backend-frontend-color-code {
    min-width: 88px;
    padding: 0.34rem 0.66rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(15, 23, 42, 0.12);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .action-panel {
        max-width: 100%;
        border-radius: 24px;
    }

    .action-panel-header,
    .action-panel-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .action-panel-title {
        font-size: 24px;
    }

    .action-panel-subtitle {
        font-size: 13px;
    }

    .btn-get-data {
        min-width: 100%;
    }
}

.backend-data-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.05rem;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.backend-data-card-toolbar-controls-only {
    justify-content: stretch;
    min-height: 66px;
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
}

.backend-section-heading {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.25;
}

.backend-section-heading i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 9%, #fff);
    font-size: 0.82rem;
}

.backend-section-heading-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backend-table-toolbar-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 1 1 100%;
    flex-wrap: wrap;
}

.backend-table-toolbar-controls:empty {
    display: none;
}

.backend-table-toolbar-controls form {
    margin: 0;
}

.backend-latest-news-category-controls {
    min-height: 71.7px;
    padding: 0.78rem 1.05rem;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: flex-start;
    background: #fff;
}

.backend-latest-news-category-toolbar {
    min-height: 66px;
}

.backend-latest-news-card {
    overflow: visible;
}

.backend-latest-news-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: stretch;
}

.backend-latest-news-category-panel,
.backend-latest-news-content-panel {
    min-width: 0;
    background: #fff;
}

.backend-latest-news-category-panel {
    position: sticky;
    top: 82px;
    align-self: start;
    max-height: calc(100vh - 106px);
    overflow: visible;
    z-index: 2;
}

.backend-latest-news-content-panel {
    border-left: 1px solid #eef2f7;
}

.backend-category-list {
    max-height: calc(100vh - 178px);
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.backend-category-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.62rem 0.68rem;
    background: #fff;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.backend-category-item:hover,
.backend-category-item.active {
    border-color: color-mix(in srgb, var(--backend-theme) 30%, #d9e2ec);
    background: color-mix(in srgb, var(--backend-theme) 7%, #fff);
}

/*.backend-category-item.active {
    box-shadow: inset 3px 0 0 var(--backend-theme);
}*/

.backend-category-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.backend-category-item-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.48rem;
    cursor: pointer;
}

.backend-category-drag {
    color: #98a2b3;
    cursor: move;
    font-size: 0.82rem;
}

.backend-sort-cell-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 78px;
}

.backend-sort-handle,
.title-sort-handle {
    color: var(--backend-theme) !important;
    cursor: move;
    font-size: 0.82rem;
}

.backend-sort-number {
    min-width: 22px;
    color: #334155;
    font-weight: 800;
    text-align: left;
}

.backend-sortable-table tbody tr[data-sort-id] {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.backend-sortable-table tbody tr.is-backend-sorting {
    background: color-mix(in srgb, var(--backend-theme) 8%, #fff);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.backend-sortable-placeholder td {
    height: 58px;
    border: 1px dashed color-mix(in srgb, var(--backend-theme) 45%, #cbd5e1) !important;
    background: color-mix(in srgb, var(--backend-theme) 9%, #fff) !important;
}

.backend-category-title {
    overflow: hidden;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backend-category-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    flex: 0 0 auto;
}

.backend-action-group {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.backend-action-group {
    justify-content: flex-end;
    margin-left: auto;
}

.backend-tool-btn {
    min-height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.48rem 0.78rem;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.backend-tool-btn i {
    font-size: 0.92rem;
}

.backend-tool-btn-primary {
    border: 1px solid var(--backend-theme) !important;
    background: var(--backend-theme) !important;
    color: #fff !important;
    box-shadow: 0 0.32rem 0.75rem color-mix(in srgb, var(--backend-theme) 24%, transparent);
}

.backend-tool-btn-primary:hover,
.backend-tool-btn-primary:focus {
    background: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    border-color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    color: #fff !important;
}

.backend-tool-btn-secondary {
    border: 1px solid color-mix(in srgb, var(--backend-theme) 30%, #d9e2ec) !important;
    background: color-mix(in srgb, var(--backend-theme) 20%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
}

.backend-tool-btn-secondary:hover,
.backend-tool-btn-secondary:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 30%, #d9e2ec) !important;
    background: color-mix(in srgb, var(--backend-theme) 45%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
}

.status-select-control {
    position: relative;
}

.status-select-control .form-select {
    padding-left: 2.45rem;
}

.status-select-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    text-align: center;
    color: var(--backend-theme, #198754);
    z-index: 3;
    pointer-events: none;
}

.status-select-control.is-enhanced .status-select-icon,
.status-native-select {
    display: none !important;
}

.status-dropdown-toggle {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-align: left;
}

.status-dropdown-toggle:focus {
    box-shadow: 0 0 0 0.16rem color-mix(in srgb, var(--backend-theme, #198754) 12%, transparent);
}

.status-dropdown-toggle > span > i,
.status-dropdown-item > span i {
    width: 1rem;
    flex: 0 0 1rem;
    text-align: center;
    color: var(--backend-theme, #198754);
}

.status-dropdown-menu {
    width: max-content;
    min-width: 100%;
    max-width: min(32rem, calc(100vw - 1.5rem));
}

.status-select-control .status-dropdown-menu.show {
    inset: calc(100% + 0.35rem) 0 auto auto !important;
    transform: none !important;
    margin: 0 !important;
}

.status-dropdown-item {
    min-height: 38px;
    white-space: normal;
}

.status-dropdown-item > span {
    min-width: 0;
    flex: 1 1 auto;
}

.status-dropdown-item > span > span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.status-dropdown-item > span::before {
    display: none;
}

/* Backend modal form */
.backend-modal-dialog {
    max-width: min(980px, calc(100vw - 1.5rem));
}

.backend-password-dialog {
    max-width: min(640px, calc(100vw - 1.5rem));
}

.backend-modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f6fa;
    box-shadow: 0 1.65rem 4rem rgba(15, 23, 42, 0.34);
}

.backend-modal-header {
    min-height: 72px;
    padding: 0 1.35rem;
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(100deg, var(--backend-theme) 0%, color-mix(in srgb, var(--backend-theme) 76%, #0f172a) 100%);
}

.backend-modal-title-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.backend-modal-icon,
.backend-modal-header-edit .backend-modal-icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1rem;
}

.backend-modal-title-copy {
    min-width: 0;
}

.backend-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
}

.backend-modal-close {
    width: 36px;
    height: 36px;
    margin: 0 !important;
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.72;
}

.backend-modal-close:hover,
.backend-modal-close:focus {
    background-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
    box-shadow: none;
}

.backend-modal-body {
    padding: 1rem 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    background: #ffffff;
}

.backend-modal-scrollable .backend-modal-content {
    max-height: calc(97vh - 2rem);
    display: flex;
    flex-direction: column;
}

.backend-modal-scrollable .backend-modal-content > form {
    min-height: 0;
    max-height: inherit;
    display: flex;
    flex-direction: column;
}

.backend-modal-scrollable .backend-modal-header,
.backend-modal-scrollable .backend-modal-footer {
    flex: 0 0 auto;
}

.backend-modal-scrollable .backend-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.backend-modal-scrollable .backend-modal-body::-webkit-scrollbar {
    width: 6px;
}

.backend-modal-scrollable .backend-modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 999px;
}

.backend-modal-scrollable .backend-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.backend-modal-section {
    padding: 1.35rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #dfe8f2);
    border-radius: 8px;
    background: #fff;
}

.backend-modal-section-extendedone {
    /*padding: 1.35rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #dfe8f2);*/
    border-radius: 8px;
    background: #fff;
}

.backend-modal-section-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--backend-theme);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
}

.backend-modal-section-title-inline {
    justify-content: space-between;
    gap: 0.75rem;
}

.backend-modal-section-title-copy {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.backend-content-preview-trigger {
    flex: 0 0 auto;
}

.backend-modal-section-title .backend-content-preview-trigger i {
    width: auto;
    height: auto;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-size: 0.88rem;
}

.backend-modal-section-title i,
.backend-modal-section-title-copy > i,
.backend-field-label i {
    width: 21px;
    height: 21px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    font-size: 0.76rem;
}

.backend-modal-section-title .backend-media-option i {
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    color: inherit;
    background: transparent;
    font-size: inherit;
}

.backend-editor-tabs {
    margin: -0.15rem 0 1rem;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.backend-editor-tabs .nav-item {
    margin: 0;
}

.backend-editor-tabs .nav-link {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 14%, #d6e2ef);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #334155;
    background: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.2;
}

.backend-editor-tabs .nav-link i {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    font-size: 0.72rem;
}

.backend-editor-tabs .nav-link:hover,
.backend-editor-tabs .nav-link:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 42%, #d6e2ef);
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 6%, #fff);
}

.backend-editor-tabs .nav-link:hover span,
.backend-editor-tabs .nav-link:focus span {
    color: var(--backend-theme);
}

.backend-editor-tabs .nav-link.active {
    border-color: var(--backend-theme);
    color: color-mix(in srgb, var(--backend-theme) 86%, #111827);
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    box-shadow: 0 0.45rem 0.9rem color-mix(in srgb, var(--backend-theme) 12%, transparent);
}

.backend-editor-tab-content .backend-field-group {
    min-height: 0;
}

.backend-content-preview-body {
    display: flex;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.backend-content-preview-dialog {
    width: min(96vw, 1680px);
    max-width: min(96vw, 1680px);
    height: min(92vh, 1080px);
    margin: auto;
}

.backend-content-preview-dialog .backend-modal-content {
    height: 100%;
    max-height: min(92vh, 1080px);
}

/* Percentages keep the expanded dialog near fullscreen with the backend UI zoom. */
.backend-content-preview-dialog.backend-content-preview-dialog-expanded {
    width: 96%;
    max-width: none;
    height: 94%;
    min-height: 0;
    margin: auto;
}

.backend-content-preview-dialog.backend-content-preview-dialog-expanded .backend-modal-content {
    max-height: 100%;
}

.backend-content-preview-frame {
    background: #fff;
    border: 0;
    display: block;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.backend-field-group {
    min-height: 106px;
    margin-bottom: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #dce6f1);
    border-radius: 8px;
    background: #fff;
}

.backend-field-label {
    margin-bottom: 0.58rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--backend-theme);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.25;
}

.backend-copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 0.5rem;
    align-items: stretch;
}

.backend-copy-field .form-control {
    min-width: 0;
}

.backend-copy-field-button {
    width: 42px;
    min-width: 42px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 34%, #cbd5e1) !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: color-mix(in srgb, var(--backend-theme) 7%, #fff) !important;
    color: var(--backend-theme) !important;
}

.backend-copy-field-button:hover,
.backend-copy-field-button:focus-visible {
    border-color: var(--backend-theme) !important;
    background: color-mix(in srgb, var(--backend-theme) 14%, #fff) !important;
}

.backend-copy-field-button:disabled {
    border-color: #d7dee8 !important;
    background: #f4f6f8 !important;
    color: #98a2b3 !important;
    opacity: 1;
}

.backend-required,
.backend-optional {
    min-height: 18px;
    border-radius: 5px;
    padding: 0.1rem 0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1;
}

.backend-required {
    border: 1px solid #fecdd3;
    color: #be123c;
    background: #fff1f2;
}

.backend-optional {
    border: 1px solid #dbe3ec;
    color: #475569;
    background: #f1f5f9;
}

.backend-help-tooltip {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 15px;
    color: #fff;
    background: #495057c4;
    cursor: help;
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
}

.backend-help-tooltip-text {
    width: max-content;
    max-width: 260px;
    padding: 0.58rem 0.72rem;
    border-radius: 6px;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-18%);
    color: #fff;
    background: #2f3033;
    box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.22);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.backend-help-tooltip-text::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #2f3033;
    position: absolute;
    top: -6px;
    left: 18px;
}

.backend-help-tooltip:hover .backend-help-tooltip-text,
.backend-help-tooltip:focus .backend-help-tooltip-text,
.backend-help-tooltip:focus-within .backend-help-tooltip-text {
    opacity: 1;
    visibility: visible;
}

.backend-modal-content .form-control {
    min-height: 40px;
    border-color: #d7e2ee;
    border-radius: 7px;
    background: #ffffff;
    color: #0f253d;
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: none;
}

.backend-modal-content .form-control[readonly],
.backend-modal-content .form-control:disabled,
.backend-modal-content .form-select:disabled,
.backend-modal-content textarea.form-control[readonly],
.backend-modal-content textarea.form-control:disabled,
.backend-modal-content select.form-control:disabled,
.backend-modal-content select.form-control[readonly] {
    border-color: color-mix(in srgb, var(--backend-theme) 26%, #d7e2ee) !important;
    background: color-mix(in srgb, var(--backend-theme) 20%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    opacity: 1;
    cursor: not-allowed;
}

.backend-modal-content .form-control[readonly]:focus,
.backend-modal-content .form-control:disabled:focus,
.backend-modal-content .form-select:disabled:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 30%, #d9e2ec) !important;
    background: color-mix(in srgb, var(--backend-theme) 20%, #fff) !important;
    box-shadow: none !important;
}

.backend-modal-content .form-control::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.backend-modal-content .form-control:focus {
    border-color: var(--backend-theme);
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 18%, transparent);
}

.backend-field-hint {
    margin-top: 0.45rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.backend-color-input-group .form-control-color {
    width: 62px;
    min-width: 62px;
    height: 42px;
    flex: 0 0 62px;
    padding: 0.25rem;
    border-color: #d7e2ee;
}

.backend-color-input-group .backend-color-hex {
    min-height: 42px;
    color: #0f253d;
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.backend-field-group-tall {
    min-height: auto;
}

.backend-code-textarea {
    min-height: 152px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.55;
}

.backend-ai-type-options {
    max-width: 100%;
}

.backend-modal-section-basic .backend-modal-switch {
    min-height: 64px;
    margin-top: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #d7e4f1);
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
}

.backend-modal-switch.form-check {
    padding-left: 0.95rem;
}

.backend-modal-section-basic .backend-switch-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.backend-switch-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 12%, #fff);
    font-size: 0.9rem;
}

.backend-modal-section-basic .backend-switch-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
}

.backend-switch-title {
    margin: 0;
    color: #0f253d;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.25;
    cursor: pointer;
}

.backend-switch-desc {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.backend-modal-switch .form-check-input {
    width: 2.9rem;
    height: 1.45rem;
    flex: 0 0 auto;
    float: none !important;
    position: static;
    margin: 0 0 0 auto !important;
    align-self: center;
    cursor: pointer;
    border: 0;
    background-color: #cbd5e1;
}

.backend-modal-switch .form-check-input:checked {
    border-color: var(--backend-theme);
    background-color: var(--backend-theme);
}

.backend-modal-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 18%, transparent);
}

.backend-media-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.backend-media-section-grid-single {
    grid-template-columns: 1fr;
}

.backend-upload-block {
    min-width: 0;
}

.backend-modal-section-media .backend-field-group {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.backend-media-type-options {
    width: fit-content;
    padding: 0.18rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #d6e2ef);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    background: color-mix(in srgb, var(--backend-theme) 7%, #fff);
}

.backend-media-type-options-inline {
    margin-left: auto;
}

.backend-media-option {
    min-height: 34px;
    margin: 0;
    padding: 0.42rem 0.72rem;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.backend-media-option.form-check {
    padding-left: 0.72rem;
}

.backend-media-option:has(.form-check-input:checked) {
    background: #fff;
    box-shadow: 0 1px 5px color-mix(in srgb, var(--backend-theme) 20%, transparent);
}

.backend-media-option .form-check-input {
    flex: 0 0 auto;
    float: none;
    position: static;
    margin: 0;
    accent-color: var(--backend-theme);
}

.backend-media-option .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.backend-upload-dropzone {
    width: 100%;
    min-height: 250px;
    padding: 1rem;
    border: 1px dashed color-mix(in srgb, var(--backend-theme) 18%, #c7d8ea);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #667085;
    text-align: center;
    cursor: pointer;
    background: color-mix(in srgb, var(--backend-theme)20%, #fff) !important;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.backend-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.backend-upload-dropzone.has-preview {
    padding: 0.55rem;
    border-style: solid;
    background: #f8fafc;
}

.backend-upload-dropzone.has-preview .backend-upload-placeholder {
    display: none;
}

.backend-upload-dropzone:hover,
.backend-upload-dropzone:focus {
    border-color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme)45%, #fff) !important;
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 14%, transparent);
    outline: 0;
}

.backend-upload-cloud {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
    font-size: 1.35rem;
    line-height: 1;
}

.backend-upload-title {
    color: var(--backend-theme);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}

.backend-upload-desc {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.backend-upload-file-name {
    display: none !important;
}

.backend-upload-preview {
    width: 100%;
    height: 100%;
    min-height: 234px;
    display: none;
    align-items: center;
    justify-content: center;
}

.backend-upload-dropzone.has-preview .backend-upload-preview {
    display: flex;
}

.backend-upload-preview img,
.backend-upload-preview video {
    width: 100%;
    height: 234px;
    max-width: 100%;
    max-height: 234px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
}

.backend-upload-preview img {
    object-fit: fill;
}

.backend-upload-preview video {
    object-fit: fill;
}

.backend-upload-dropzone-square {
    min-height: 0;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
}

.backend-upload-dropzone-square .backend-upload-preview,
.backend-upload-dropzone-square .backend-upload-preview img {
    min-height: 0;
    height: 100%;
    max-height: none;
}

.backend-layout-modal-dialog {
    max-width: min(1180px, calc(100vw - 1.5rem));
}

.backend-layout-modal-body {
    max-height: calc(100vh - 154px);
    overflow-y: auto;
}

.backend-layout-section {
    padding: 1.1rem;
}

.backend-layout-chooser {
    width: 100%;
}

.backend-layout-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
}

.backend-layout-option-grid .feature-option-btn {
    width: 100%;
    min-height: 230px;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #d6e2ef) !important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.72rem;
    color: #0f253d !important;
    background: #fff !important;
    box-shadow: none !important;
    white-space: normal;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.backend-layout-option-grid .feature-option-btn:hover,
.backend-layout-option-grid .feature-option-btn:focus {
    border-color: var(--backend-theme) !important;
    background: #f8fbff !important;
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 12%, transparent) !important;
    transform: translateY(-1px);
}

.backend-layout-option-grid .feature-option-btn.active,
.backend-layout-option-grid .feature-option-btn.btn-secondary {
    border-color: var(--backend-theme) !important;
    color: #0f253d !important;
    background: color-mix(in srgb, var(--backend-theme) 8%, #fff) !important;
    box-shadow: 0 0.7rem 1.4rem color-mix(in srgb, var(--backend-theme) 15%, transparent) !important;
}

.backend-layout-option-grid .page-thumb {
    width: 100%;
    min-height: 170px;
    padding: 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8fafc;
}

.backend-layout-option-grid .pt-theme-travel-section {
    margin-top: 6px;
    padding: 6px 5px;
    border-radius: 3px;
    display: flex;
    flex: 1;
    flex-direction: column;
    background: #fff;
}

.backend-layout-option-grid .pt-view-more-btn2 {
    width: 100%;
    height: 18px;
    margin: 0 auto;
    border-radius: 0;
    opacity: 0.4;
    background: #343a40;
}

.backend-layout-option-grid .pt-section-title-bar {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.backend-layout-option-grid .pt-section-line {
    flex: 1;
    height: 1px;
    opacity: 0.4;
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-section-title-text {
    width: 24px;
    height: 4px;
    border-radius: 1px;
    flex-shrink: 0;
    background: #6c757d;
}

.backend-layout-option-grid .pt-travel-card {
    margin-bottom: 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--backend-theme) 35%, transparent);
}

.backend-layout-option-grid .pt-travel-card-img {
    width: 40%;
    min-height: 48px;
    flex-shrink: 0;
    background: #dee2e6;
}

.backend-layout-option-grid .pt-travel-card-body,
.backend-layout-option-grid .pt-travel-card-v-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.backend-layout-option-grid .pt-travel-card-body {
    flex: 1;
    padding: 4px 5px;
}

.backend-layout-option-grid .pt-card-tag {
    width: 22px;
    height: 3px;
    border-radius: 1px;
    opacity: 0.6;
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-card-heading {
    width: 70%;
    height: 4px;
    border-radius: 1px;
    background: #6c757d;
}

.backend-layout-option-grid .pt-card-date {
    width: 30%;
    height: 2px;
    border-radius: 1px;
    background: #aaa;
}

.backend-layout-option-grid .pt-card-desc,
.backend-layout-option-grid .pt-card-btn {
    border: 1px solid var(--backend-theme);
    opacity: 0.5;
    background: transparent;
}

.backend-layout-option-grid .pt-card-desc {
    width: 30%;
    height: 4px;
    border-radius: 6px;
}

.backend-layout-option-grid .pt-card-btn {
    width: 100%;
    height: 4px;
    margin: 2px auto 0;
    border-radius: 6px;
}

.backend-layout-option-grid .pt-view-more-btn {
    width: 20%;
    height: 6px;
    margin: 0 auto;
    border-radius: 6px;
    opacity: 0.4;
    background: #343a40;
}

    .backend-layout-option-grid .pt-feature-card-thumb {
        padding: 0.38rem;
        border-color: color-mix(in srgb, var(--backend-theme) 16%, #f8f9fa);
        border-radius: 9px;
        background: #fff;
    }

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-section {
    margin-top: 0 !important;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-section-title-bar,
.backend-layout-option-grid .pt-feature-card-thumb .pt-card-arrow,
.backend-layout-option-grid .pt-feature-card-thumb .pt-view-more-btn,
.backend-layout-option-grid .pt-feature-card-thumb .pt-view-more-btn2 {
    display: none;
}

        .backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card {
            min-height: 138px;
            margin-bottom: 0;
            border: 1px solid color-mix(in srgb, var(--backend-theme) 18%, #f8f9fa);
            border-radius: 8px;
            align-items: stretch;
            background: #fff;
            box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.04);
        }

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-img {
    width: 36%;
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: color-mix(in srgb, var(--backend-theme) 78%, #f97316);
    background: linear-gradient(135deg, color-mix(in srgb, var(--backend-theme) 8%, #fff7ed) 0%, #fff4e8 100%);
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-img i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid color-mix(in srgb, var(--backend-theme) 28%, #f8c9a8);
    border-radius: 50%;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--backend-theme) 18%, transparent);
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-body {
    min-width: 0;
    padding: 18px 14px 10px;
    gap: 0;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-tag {
    width: 48px;
    height: 8px;
    margin-bottom: 11px;
    border-radius: 2px;
    opacity: 1;
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-heading {
    width: 42px;
    height: 4px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: #94a3b8;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-desc {
    width: 82%;
    height: 4px;
    margin-top: 4px;
    border: 0;
    border-radius: 2px;
    opacity: 1;
    background: #cbd5e1;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-desc-mid {
    width: 70%;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-desc-short {
    width: 48%;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-spacer {
    min-height: 22px;
    flex: 1 1 auto;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-divider {
    width: 100%;
    height: 1px;
    margin: 6px 0 8px;
    background: color-mix(in srgb, var(--backend-theme) 16%, #f1d7d7);
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-feature-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-date {
    width: 52px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-btn {
    width: 46px;
    height: 18px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 38%, #f5c2c7);
    border-radius: 999px;
    opacity: 1;
    position: relative;
    background: #fff;
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-btn::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 999px;
    position: absolute;
    left: 7px;
    top: 50%;
    background: var(--backend-theme);
    transform: translateY(-50%);
}

.backend-layout-option-grid .pt-feature-card-thumb .pt-card-btn::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    position: absolute;
    right: 5px;
    top: 50%;
    background: var(--backend-theme);
    transform: translateY(-50%);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb {
    padding: 0.38rem;
    border-color: color-mix(in srgb, var(--backend-theme) 16%, #f8f9fa);
    border-radius: 9px;
    background: #fff;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-section {
    margin-top: 0 !important;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-section-title-bar,
.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-grid-arrow,
.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-view-more-btn,
.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-view-more-btn2 {
    display: none;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-wrapper {
    margin-bottom: 0;
    display: block;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-list {
    height: 138px;
    border: 0;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    outline: none;
    box-shadow: none;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-list::before,
.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-list::after {
    content: none;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-list,
.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-card {
    outline: none !important;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-card {
    min-width: 0;
    height: 69px;
    min-height: 69px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 18%, #f8f9fa);
    border-radius: 8px;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.04);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-img {
    width: 38%;
    height: auto;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: color-mix(in srgb, var(--backend-theme) 78%, #f97316);
    background: linear-gradient(135deg, color-mix(in srgb, var(--backend-theme) 8%, #fff7ed) 0%, #fff4e8 100%);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-img i {
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 28%, #f8c9a8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--backend-theme) 16%, transparent);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-body {
    min-width: 0;
    padding: 6px 6px 5px;
    flex: 1;
    gap: 0;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-tag {
    width: 24px;
    height: 5px;
    margin-bottom: 4px;
    border-radius: 2px;
    opacity: 1;
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-heading {
    width: 24px;
    height: 3px;
    margin-bottom: 3px;
    border-radius: 2px;
    background: #94a3b8;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-desc {
    width: 86%;
    height: 2px;
    margin-top: 2px;
    border: 0;
    border-radius: 2px;
    opacity: 1;
    background: #cbd5e1;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-desc-mid {
    width: 72%;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-desc-short {
    width: 54%;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-spacer {
    flex: 1;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0 3px;
    display: block;
    background: color-mix(in srgb, var(--backend-theme) 12%, #e5e7eb);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-feature-card-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-date {
    width: 24%;
    max-width: 18px;
    height: 2px;
    border-radius: 2px;
    flex-shrink: 1;
    background: #94a3b8;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-btn {
    width: 52%;
    min-width: 20px;
    max-width: 28px;
    height: 10px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 42%, #fecaca);
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
    opacity: 1;
    background: #fff;
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-btn::before {
    content: "";
    width: 42%;
    height: 2px;
    border-radius: 2px;
    position: absolute;
    left: 3px;
    top: 50%;
    background: var(--backend-theme);
    transform: translateY(-50%);
}

.backend-layout-option-grid .pt-feature-card-grid-thumb .pt-card-btn::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    right: 2px;
    top: 50%;
    background: var(--backend-theme);
    transform: translateY(-50%);
}

.backend-layout-option-grid .pt-card-arrow,
.backend-layout-option-grid .pt-grid-arrow {
    width: 8px;
    height: 8px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #555;
    font-size: 7px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.85);
}

.backend-layout-option-grid .pt-card-arrow-left {
    margin-left: 2px;
    margin-right: -4px;
}

.backend-layout-option-grid .pt-card-arrow-right {
    margin-right: 2px;
    margin-left: -4px;
}

.backend-layout-option-grid .pt-travel-card-grid-wrapper {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.backend-layout-option-grid .pt-travel-card-grid {
    flex: 1;
    display: flex;
    gap: 4px;
}

.backend-layout-option-grid .pt-travel-card-v {
    border-radius: 3px;
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--backend-theme) 35%, transparent);
}

.backend-layout-option-grid .pt-travel-card-v-img {
    width: 100%;
    height: 35px;
    background: #dee2e6;
}

.backend-layout-option-grid .pt-travel-card-v-body {
    padding: 2px 3px;
    gap: 1px;
}

.backend-layout-option-grid .pt-travel-card-v-sm .pt-travel-card-v-img {
    height: 32px;
}

.backend-layout-option-grid .pt-travel-card-v-sm .pt-travel-card-v-body {
    padding: 2px;
}

.backend-layout-option-grid .pt-travel-card-v-sm .pt-card-tag {
    width: 14px;
    height: 2px;
}

.backend-layout-option-grid .pt-travel-card-v-sm .pt-card-heading {
    width: 80%;
    height: 3px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb {
    padding: 0.38rem;
    border-color: color-mix(in srgb, var(--backend-theme) 16%, #f8f9fa);
    border-radius: 9px;
    background: #fff;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-section {
    margin-top: 0 !important;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-section-title-bar,
.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-grid-arrow,
.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-view-more-btn,
.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-view-more-btn2 {
    display: none;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-wrapper {
    margin-bottom: 0;
    display: block;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-list {
    height: 138px;
    border: 0;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: none;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-list::before,
.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-list::after {
    content: none;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-3 .pt-feature-card-stack-list {
    gap: 0.45rem;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-feature-card-stack-list {
    gap: 0.35rem;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-card {
    min-width: 0;
    height: 69px;
    min-height: 69px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 18%, #f8f9fa);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.04);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-img {
    width: 100%;
    height: 26px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--backend-theme) 78%, #f97316);
    background: linear-gradient(135deg, color-mix(in srgb, var(--backend-theme) 8%, #fff7ed) 0%, #fff4e8 100%);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-img i {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 28%, #f8c9a8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--backend-theme) 16%, transparent);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-body {
    min-width: 0;
    min-height: 0;
    padding: 4px 4px 3px;
    flex: 1;
    gap: 0;
    overflow: hidden;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-tag {
    width: 20px;
    height: 3px;
    margin-bottom: 2px;
    border-radius: 2px;
    opacity: 1;
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-heading {
    width: 18px;
    height: 2px;
    margin-bottom: 2px;
    border-radius: 2px;
    background: #94a3b8;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-desc {
    width: 86%;
    height: 2px;
    margin-top: 1px;
    border: 0;
    border-radius: 2px;
    opacity: 1;
    background: #cbd5e1;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-desc-mid {
    width: 72%;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-desc-short {
    width: 52%;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-spacer {
    flex: 1;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-divider {
    width: 100%;
    height: 1px;
    margin: 2px 0;
    display: block;
    background: color-mix(in srgb, var(--backend-theme) 12%, #e5e7eb);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-feature-card-stack-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-date {
    width: 24%;
    max-width: 14px;
    height: 2px;
    border-radius: 2px;
    flex-shrink: 1;
    background: #94a3b8;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-btn {
    width: 52%;
    min-width: 16px;
    max-width: 20px;
    height: 8px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 42%, #fecaca);
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
    opacity: 1;
    background: #fff;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-btn::before {
    content: "";
    width: 42%;
    height: 2px;
    border-radius: 2px;
    position: absolute;
    left: 2px;
    top: 50%;
    background: var(--backend-theme);
    transform: translateY(-50%);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb .pt-card-btn::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    position: absolute;
    right: 2px;
    top: 50%;
    background: var(--backend-theme);
    transform: translateY(-50%);
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-feature-card-stack-img {
    height: 22px;
    min-height: 22px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-feature-card-stack-img i {
    width: 14px;
    height: 14px;
    font-size: 6px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-feature-card-stack-body {
    padding: 3px 3px 3px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-card-tag {
    width: 16px;
    height: 3px;
    margin-bottom: 2px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-card-heading {
    width: 16px;
    height: 2px;
    margin-bottom: 2px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-card-desc {
    height: 2px;
    margin-top: 1px;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-feature-card-stack-divider {
    margin: 2px 0;
}

.backend-layout-option-grid .pt-feature-card-stack-thumb-4 .pt-card-btn {
    min-width: 14px;
    max-width: 18px;
    height: 8px;
}

.backend-layout-option-grid .pt-market-filter-thumb {
    min-height: 170px;
    padding: 0;
    border-color: color-mix(in srgb, var(--backend-theme) 16%, #f8f9fa);
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.backend-layout-option-grid .pt-market-header {
    height: 32px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.06);
}

.backend-layout-option-grid .pt-market-logo {
    min-width: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.backend-layout-option-grid .pt-market-logo-mark {
    width: 18px;
    height: 18px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 26%, #d7d6b8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--backend-theme) 78%, #3f5e28);
    font-size: 8px;
    background: #fff8df;
}

.backend-layout-option-grid .pt-market-logo-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.backend-layout-option-grid .pt-market-logo-lines span {
    height: 4px;
    border-radius: 999px;
    display: block;
    background: color-mix(in srgb, var(--backend-theme) 76%, #47622f);
}

.backend-layout-option-grid .pt-market-logo-lines span:first-child {
    width: 20px;
}

.backend-layout-option-grid .pt-market-logo-lines span:last-child {
    width: 30px;
}

.backend-layout-option-grid .pt-market-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.backend-layout-option-grid .pt-market-nav span {
    width: 10px;
    height: 4px;
    border-radius: 999px;
    position: relative;
    background: #111827;
}

.backend-layout-option-grid .pt-market-nav span.is-active {
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-market-nav span.is-active::after {
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 999px;
    position: absolute;
    left: 0;
    bottom: -4px;
    background: var(--backend-theme);
}

.backend-layout-option-grid .pt-market-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #111827;
    font-size: 9px;
}

.backend-layout-option-grid .pt-market-actions span {
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-menu {
    width: 76px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 14%, #e5e7eb);
    border-radius: 7px;
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    transform: translateX(-50%);
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-item {
    height: 22px;
    box-sizing: border-box;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    background: #fff;
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-item.is-active {
    background: var(--backend-theme);
    box-shadow: 0 6px 12px color-mix(in srgb, var(--backend-theme) 24%, transparent);
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-icon {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--backend-theme);
    font-size: 7px;
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-item.is-active .pt-market-dropdown-icon {
    color: var(--backend-theme);
    background: #fff;
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-line {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: #64748b;
}

.backend-layout-option-grid .pt-market-filter-thumb-dropdown .pt-market-dropdown-item.is-active .pt-market-dropdown-line {
    background: #fff;
}

.backend-layout-option-grid .pt-market-hero {
    min-height: 95px;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 12px 12px;
    color: #94a3b8;
    background: #e5e7eb;
}

.backend-layout-option-grid .pt-market-hero::before,
.backend-layout-option-grid .pt-market-hero::after {
    content: none;
}

.backend-layout-option-grid .pt-market-hero i {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.backend-layout-option-grid .pt-market-filter-row {
    min-height: 42px;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
}

.backend-layout-option-grid .pt-market-filter-pill {
    height: 25px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 20%, #fecaca);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    background: #fff;
    box-shadow: 0 9px 18px color-mix(in srgb, var(--backend-theme) 9%, transparent);
}

.backend-layout-option-grid .pt-market-filter-category {
    width: 41%;
}

.backend-layout-option-grid .pt-market-filter-search {
    width: 48%;
}

.backend-layout-option-grid .pt-market-filter-icon,
.backend-layout-option-grid .pt-market-filter-control {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--backend-theme);
    font-size: 8px;
    background: color-mix(in srgb, var(--backend-theme) 10%, #fff);
}

.backend-layout-option-grid .pt-market-filter-line {
    height: 5px;
    min-width: 0;
    border-radius: 999px;
    flex: 1;
    background: color-mix(in srgb, var(--backend-theme) 42%, #94a3b8);
}

.backend-layout-option-grid .feature-note {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
}

.backend-layout-option-grid .feature-option-btn:hover .feature-note,
.backend-layout-option-grid .feature-option-btn:focus-visible .feature-note {
    color: var(--backend-theme);
}

.backend-layout-option-grid .feature-option-btn.active .feature-note,
.backend-layout-option-grid .feature-option-btn.btn-secondary .feature-note {
    color: var(--backend-theme);
}

.backend-layout-option-grid .pt-title-nav-thumb {
    gap: 0.45rem;
    position: relative;
    background: #fff;
}

.backend-layout-option-grid .pt-title-nav-header {
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
    padding: 5px 7px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.06);
}

.backend-layout-option-grid .pt-title-nav-header .pt-logo {
    width: 28px;
    height: 9px;
    margin-left: 0;
    border-radius: 999px;
    flex-shrink: 0;
    background: #94a3b8;
}

.backend-layout-option-grid .pt-title-nav-header .pt-nav-items {
    min-width: 0;
    margin-left: auto;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
}

.backend-layout-option-grid .pt-title-nav-header .pt-nav-link,
.backend-layout-option-grid .pt-title-nav-header .pt-nav-2 {
    width: 14px;
    height: 4px;
    border-radius: 999px;
    position: relative;
    background: #cbd5e1;
}

.backend-layout-option-grid .pt-title-nav-header .pt-nav-link-active {
    background: var(--backend-theme);
}

    .backend-layout-option-grid .pt-title-nav-header-overlay {
        position: relative;
        z-index: 2;
        /*border-color: rgba(203, 213, 225, 0.72);*/
        background: #e5e7eb;
        box-shadow: none;
    }

.backend-layout-option-grid .pt-title-nav-header-overlay .pt-nav-2 {
    background: rgba(255, 255, 255, 0.92);
}

.backend-layout-option-grid .pt-title-nav-hero {
    min-height: 78px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #e5e7eb;
}

.backend-layout-option-grid .pt-title-nav-hero i {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.backend-layout-option-grid .pt-title-nav-content-hint {
    padding: 2px 2px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.backend-layout-option-grid .pt-title-nav-content-hint .pt-content-dot {
    width: 5px;
    height: 5px;
    background: #cbd5e1;
}

.backend-layout-option-grid .pt-title-nav-thumb-overlay {
    min-height: 170px;
}

.backend-layout-option-grid .pt-title-nav-thumb-overlay .pt-title-nav-hero-overlay {
    min-height: 100px;
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    left: 0.55rem;
    z-index: 1;
}

.backend-layout-option-grid .pt-title-nav-thumb-overlay .pt-title-nav-content-hint-overlay {
    margin-top: 64px;
    position: relative;
    z-index: 2;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral {
    --backend-preview-neutral: #64748b;
    --backend-preview-neutral-dark: #475569;
    --backend-preview-neutral-soft: #f1f5f9;
    --backend-preview-neutral-border: #cbd5e1;
    --backend-preview-neutral-line: #e5e7eb;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn {
    border-color: var(--backend-preview-neutral-line) !important;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn:hover,
.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn:focus {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
    box-shadow: 0 0 0 0.18rem rgba(100, 116, 139, 0.12) !important;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn.active,
.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn.btn-secondary {
    border-color: var(--backend-theme) !important;
    background: color-mix(in srgb, var(--backend-theme) 8%, #fff) !important;
    box-shadow: 0 0.7rem 1.4rem color-mix(in srgb, var(--backend-theme) 15%, transparent) !important;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn:hover .feature-note,
.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn:focus-visible .feature-note {
    color: var(--backend-preview-neutral-dark);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn.active .feature-note,
.backend-layout-option-grid.backend-layout-option-grid-neutral .feature-option-btn.btn-secondary .feature-note {
    color: var(--backend-theme);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-section-line,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-card-tag,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-card-btn::before,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-card-btn::after {
    background: var(--backend-preview-neutral);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-travel-card,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-travel-card-v {
    box-shadow: 0 1px 3px rgba(100, 116, 139, 0.16);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-card-desc,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-card-btn {
    border-color: var(--backend-preview-neutral-border);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-thumb,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-grid-thumb,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-stack-thumb,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-thumb .pt-feature-card,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-grid-thumb .pt-feature-card-grid-card,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-stack-thumb .pt-feature-card-stack-card {
    border-color: var(--backend-preview-neutral-line);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-thumb .pt-feature-card-img,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-grid-thumb .pt-feature-card-grid-img,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-stack-thumb .pt-feature-card-stack-img {
    color: var(--backend-preview-neutral);
    background: var(--backend-preview-neutral-soft);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-thumb .pt-feature-card-img i,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-grid-thumb .pt-feature-card-grid-img i,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-stack-thumb .pt-feature-card-stack-img i {
    border-color: var(--backend-preview-neutral-border);
    background: #fff;
    box-shadow: 0 6px 14px rgba(100, 116, 139, 0.12);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-thumb .pt-feature-card-divider,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-grid-thumb .pt-feature-card-grid-divider,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-feature-card-stack-thumb .pt-feature-card-stack-divider {
    background: var(--backend-preview-neutral-line);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-thumb,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-thumb-dropdown .pt-market-dropdown-menu {
    border-color: var(--backend-preview-neutral-line);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-logo-mark {
    border-color: var(--backend-preview-neutral-border);
    color: var(--backend-preview-neutral);
    background: #f8fafc;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-logo-lines span,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-nav span.is-active,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-nav span.is-active::after {
    background: var(--backend-preview-neutral);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-thumb-dropdown .pt-market-dropdown-item.is-active {
    background: var(--backend-preview-neutral);
    box-shadow: 0 6px 12px rgba(100, 116, 139, 0.18);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-thumb-dropdown .pt-market-dropdown-icon,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-thumb-dropdown .pt-market-dropdown-item.is-active .pt-market-dropdown-icon,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-icon,
.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-control {
    color: var(--backend-preview-neutral);
    background: #f8fafc;
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-pill {
    border-color: var(--backend-preview-neutral-border);
    box-shadow: 0 9px 18px rgba(100, 116, 139, 0.1);
}

.backend-layout-option-grid.backend-layout-option-grid-neutral .pt-market-filter-line {
    background: #94a3b8;
}

.backend-modal-footer {
    min-height: 82px;
    padding: 1rem 1.35rem;
    border-top: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #dfe8f2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    background: #fff;
}

.backend-modal-btn {
    min-height: 40px;
    border-radius: 7px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.52rem 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
}

.backend-modal-btn-primary {
    border: 1px solid var(--backend-theme) !important;
    background: var(--backend-theme) !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem color-mix(in srgb, var(--backend-theme) 24%, transparent);
}

.backend-modal-btn-primary:hover,
.backend-modal-btn-primary:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    background: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    color: #fff !important;
}

.backend-modal-btn-outline {
    border: 1px solid var(--backend-theme) !important;
    background: #fff !important;
    color: var(--backend-theme) !important;
    box-shadow: none;
}

.backend-modal-btn-outline:hover,
.backend-modal-btn-outline:focus {
    border-color: var(--backend-theme) !important;
    background: var(--backend-theme) !important;
    color: #fff !important;
}

.backend-modal-btn-secondary {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #344054 !important;
}

.backend-modal-btn-secondary:hover,
.backend-modal-btn-secondary:focus {
    border-color: #98a2b3 !important;
    background: #f8fafc !important;
    color: #101828 !important;
}

.backend-modal-btn-danger {
    border: 1px solid #dc3545 !important;
    background: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.22);
}

.backend-modal-btn-danger:hover,
.backend-modal-btn-danger:focus {
    border-color: #bb2d3b !important;
    background: #bb2d3b !important;
    color: #fff !important;
}

.backend-modal-btn-success {
    border: 1px solid var(--backend-theme) !important;
    background: var(--backend-theme) !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem color-mix(in srgb, var(--backend-theme) 24%, transparent);
}

.backend-modal-btn-success:hover,
.backend-modal-btn-success:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    background: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    color: #fff !important;
}

.backend-modal-btn-muted {
    border: 1px solid #6c757d !important;
    background: #6c757d !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem rgba(108, 117, 125, 0.2);
}

.backend-modal-btn-muted:hover,
.backend-modal-btn-muted:focus {
    border-color: #5c636a !important;
    background: #5c636a !important;
    color: #fff !important;
}

.backend-swal-popup.swal2-popup {
    width: min(520px, calc(100vw - 2rem));
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #d6e2ef);
    border-radius: 8px;
    overflow: hidden;
    color: #0f253d;
    box-shadow: 0 1.65rem 4rem rgba(15, 23, 42, 0.28);
}

.backend-swal-popup .swal2-title {
    margin: 0;
    padding: 1.05rem 1.35rem;
    background: linear-gradient(100deg, var(--backend-theme) 0%, color-mix(in srgb, var(--backend-theme) 76%, #0f172a) 100%);
    color: #fff;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
}

.backend-swal-popup .swal2-input-label {
    margin: 1.25rem 1.35rem 0.45rem;
    justify-content: flex-start;
    color: #0f253d;
    font-size: 0.92rem;
    font-weight: 850;
    text-align: left;
}

.backend-swal-popup .swal2-input {
    width: calc(100% - 2.7rem);
    min-height: 42px;
    margin: 0 1.35rem;
    border: 1px solid #d7e2ee;
    border-radius: 7px;
    background: #fff;
    color: #0f253d;
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: none;
}

.backend-swal-popup .swal2-input:focus {
    border-color: var(--backend-theme);
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 18%, transparent);
}

.backend-swal-popup .swal2-validation-message {
    width: calc(100% - 2.7rem);
    margin: 0.7rem 1.35rem 0;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
}

.backend-swal-popup .swal2-actions {
    width: 100%;
    min-height: 82px;
    margin: 1.25rem 0 0;
    padding: 1rem 1.35rem;
    border-top: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #dfe8f2);
    display: flex !important;
    justify-content: flex-end;
    gap: 0.65rem;
    background: #fff;
}

.backend-swal-popup .swal2-loader {
    border-color: var(--backend-theme) transparent var(--backend-theme) transparent;
}

/* Backend SweetAlert2 shared modal style */
.swal2-container {
    z-index: 20000;
}

.swal2-container .swal2-popup:not(.swal2-toast) {
    width: min(520px, calc(100vw - 2rem));
    padding: 0 !important;
    border: 0;
    border-radius: 8px;
    grid-template-areas:
        "title"
        "html"
        "input"
        "validation"
        "actions"
        "footer";
    overflow: hidden;
    position: relative;
    background: #f3f6fa;
    color: #0f253d;
    box-shadow: 0 1.65rem 4rem rgba(15, 23, 42, 0.34);
}

.swal2-container .swal2-title {
    grid-area: title;
    width: 100%;
    margin: 0 !important;
    min-height: 72px;
    padding: 0 1.35rem !important;
    background: linear-gradient(100deg, var(--backend-theme) 0%, color-mix(in srgb, var(--backend-theme) 76%, #0f172a) 100%);
    color: #fff !important;
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.18rem !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    letter-spacing: 0;
}

.swal2-container .swal2-title::before {
    content: "i";
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.swal2-container .swal2-popup.swal2-icon-question .swal2-title::before {
    content: "\f1f8";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
}

.swal2-container .swal2-popup.swal2-icon-warning .swal2-title::before,
.swal2-container .swal2-popup.swal2-icon-error .swal2-title::before {
    content: "!";
}

.swal2-container .swal2-popup.swal2-icon-success .swal2-title::before {
    content: "✓";
}

.swal2-container .swal2-popup.swal2-icon-info .swal2-title::before {
    content: "i";
}

.swal2-container .swal2-icon {
    display: none !important;
}

.swal2-container .swal2-html-container {
    grid-area: html;
    max-width: none;
    margin: 0 !important;
    padding: 1.15rem 1.35rem 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #475467 !important;
    font-size: 0.92rem !important;
    font-weight: 600;
    line-height: 1.6 !important;
    text-align: center !important;
    box-shadow: none;
}

.swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container:empty {
    min-height: 104px;
    padding: 1.15rem 1.35rem 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    text-align: left !important;
}

.swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container:empty::before {
    content: "\f05a";
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 14%, #d7e2ee);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: color-mix(in srgb, var(--backend-theme) 8%, #fff);
    color: var(--backend-theme);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container:empty::after {
    content: "系統通知已送達。";
    min-width: 0;
    padding: 0.15rem 0;
    color: #667085;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
}

.swal2-container .swal2-popup.swal2-icon-success .swal2-html-container:empty::before {
    content: "\f00c";
    border-color: color-mix(in srgb, var(--backend-theme) 24%, #ffffff);
    background: color-mix(in srgb, var(--backend-theme) 8%, #ffffff);
    color: var(--backend-theme);
}

.swal2-container .swal2-popup.swal2-icon-success .swal2-html-container:empty::after {
    content: "操作已完成。";
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-title {
    gap: 0;
    font-size: 0 !important;
}

.swal2-container[class*="swal2-top"]:has(.swal2-popup.swal2-icon-success:not(.swal2-toast)),
.swal2-container[class*="swal2-bottom"]:has(.swal2-popup.swal2-icon-success:not(.swal2-toast)) {
    align-items: center !important;
    justify-content: center !important;
}

.swal2-container[class*="swal2-top"]:has(.swal2-popup.swal2-icon-success:not(.swal2-toast)) .swal2-popup.swal2-icon-success:not(.swal2-toast),
.swal2-container[class*="swal2-bottom"]:has(.swal2-popup.swal2-icon-success:not(.swal2-toast)) .swal2-popup.swal2-icon-success:not(.swal2-toast) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: center !important;
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-title::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 1rem;
    font-weight: 900;
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-title::after {
    content: "提示";
    margin-left: 0.7rem;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-html-container {
    min-height: 190px;
    padding: 2.25rem 1.35rem 1.65rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.05rem;
    background: #ffffff;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    font-size: 1.12rem !important;
    font-weight: 900;
    line-height: 1.55 !important;
    text-align: center !important;
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-html-container::before {
    content: "\f00c";
    width: 92px;
    height: 92px;
    border: 4px solid color-mix(in srgb, var(--backend-theme) 24%, #ffffff);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 92px;
    background: #ffffff;
    color: var(--backend-theme);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-html-container:empty::after {
    content: "操作已完成。";
    min-width: 0;
    width: 100%;
    padding: 0;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.55;
    text-align: center;
}

.swal2-container .swal2-popup.swal2-icon-success:not(.swal2-toast) .swal2-actions {
    display: none !important;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-title {
    gap: 0;
    font-size: 0 !important;
}

.swal2-container[class*="swal2-top"]:has(.swal2-popup.swal2-icon-error:not(.swal2-toast)),
.swal2-container[class*="swal2-bottom"]:has(.swal2-popup.swal2-icon-error:not(.swal2-toast)) {
    align-items: center !important;
    justify-content: center !important;
}

.swal2-container[class*="swal2-top"]:has(.swal2-popup.swal2-icon-error:not(.swal2-toast)) .swal2-popup.swal2-icon-error:not(.swal2-toast),
.swal2-container[class*="swal2-bottom"]:has(.swal2-popup.swal2-icon-error:not(.swal2-toast)) .swal2-popup.swal2-icon-error:not(.swal2-toast) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: center !important;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-title::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 1rem;
    font-weight: 900;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-title::after {
    content: "提示";
    margin-left: 0.7rem;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-html-container {
    min-height: 190px;
    padding: 2.25rem 1.35rem 1.65rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.05rem;
    background: #ffffff;
    color: #2f3a45 !important;
    font-size: 1.12rem !important;
    font-weight: 900;
    line-height: 1.55 !important;
    text-align: center !important;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-html-container::before {
    content: "\f00d";
    width: 92px;
    height: 92px;
    border: 4px solid #f7c8c5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 92px;
    background: #ffffff;
    color: #dc3545;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 2.45rem;
    font-weight: 900;
    line-height: 1;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-html-container:empty::after {
    content: "操作未完成，請確認後再試。";
    min-width: 0;
    width: 100%;
    padding: 0;
    color: #2f3a45;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.55;
    text-align: center;
}

.swal2-container .swal2-popup.swal2-icon-error:not(.swal2-toast) .swal2-actions {
    display: none !important;
}

.swal2-container .swal2-popup.swal2-icon-info:not(.swal2-toast) .swal2-title::before {
    content: "\f129";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 1rem;
    font-weight: 900;
}

.swal2-container .swal2-popup.swal2-icon-info:not(.swal2-toast) .swal2-html-container {
    min-height: 190px;
    padding: 2.25rem 1.35rem 1.65rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.05rem;
    background: #ffffff;
    color: #2f3a45 !important;
    font-size: 1.12rem !important;
    font-weight: 900;
    line-height: 1.55 !important;
    text-align: center !important;
}

.swal2-container .swal2-popup.swal2-icon-info:not(.swal2-toast) .swal2-html-container::before {
    content: "\f129";
    width: 92px;
    height: 92px;
    border: 4px solid color-mix(in srgb, var(--backend-theme) 18%, #e6edf5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 92px;
    background: #ffffff;
    color: var(--backend-theme);
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
}

.swal2-container .swal2-popup.swal2-icon-info:not(.swal2-toast) .swal2-actions {
    display: none !important;
}

.swal2-container .swal2-popup.swal2-icon-warning .swal2-html-container:empty::before {
    content: "\f071";
    border-color: #f5dda1;
    background: #fff8e1;
    color: #b7791f;
}

.swal2-container .swal2-popup.swal2-icon-warning .swal2-html-container:empty::after {
    content: "請確認提示內容後再繼續。";
}

.swal2-container .swal2-popup.swal2-icon-question .swal2-html-container:empty::before {
    content: "\f128";
}

.swal2-container .swal2-popup.swal2-icon-question .swal2-html-container:empty::after {
    content: "請確認是否要繼續執行此操作。";
}

.backend-swal-confirm-content {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    text-align: left;
    box-shadow: 0 0.5rem 1.1rem rgba(15, 23, 42, 0.04);
}

.backend-swal-confirm-icon {
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 14%, #d7e2ee);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    background: color-mix(in srgb, var(--backend-theme) 8%, #fff);
    color: var(--backend-theme);
    font-size: 1rem;
}

.backend-swal-confirm-danger .backend-swal-confirm-icon {
    border-color: #ffd5db;
    background: #fff1f3;
    color: #dc3545;
}

.backend-swal-confirm-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.backend-swal-confirm-title {
    color: #101828;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.35;
}

.backend-swal-confirm-desc {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.55;
}

.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-html-container {
    padding-bottom: 1.15rem !important;
}

.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-actions {
    margin-top: 0 !important;
}

.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-input,
.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-file,
.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-range,
.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-select,
.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-radio,
.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-checkbox,
.swal2-container .swal2-popup:has(.backend-swal-confirm-danger) .swal2-textarea {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.swal2-container .swal2-input-label {
    margin: 1.15rem 1.35rem 0.45rem !important;
    justify-content: flex-start;
    color: #0f253d !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    text-align: left !important;
}

.swal2-container .swal2-input,
.swal2-container .swal2-textarea,
.swal2-container .swal2-select {
    width: calc(100% - 2.7rem) !important;
    min-height: 42px;
    margin: 0 1.35rem !important;
    border: 1px solid #d7e2ee !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0f253d !important;
    font-size: 0.92rem !important;
    font-weight: 500;
    box-shadow: none !important;
}

.swal2-container .swal2-input:focus,
.swal2-container .swal2-textarea:focus,
.swal2-container .swal2-select:focus {
    border-color: var(--backend-theme) !important;
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 18%, transparent) !important;
}

.swal2-container .swal2-validation-message {
    grid-area: validation;
    width: calc(100% - 2.7rem);
    margin: 0.7rem 1.35rem 0 !important;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
}

.swal2-container .swal2-actions {
    grid-area: actions;
    width: 100%;
    min-height: 82px;
    margin: 1.15rem 0 0 !important;
    padding: 1rem 1.35rem !important;
    border-top: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #dfe8f2);
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    background: #ffffff;
}

.swal2-container .swal2-actions .swal2-styled {
    min-height: 40px;
    margin: 0 !important;
    border-radius: 7px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.52rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
}

.swal2-container .swal2-actions .swal2-styled::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1;
}

.swal2-container .swal2-confirm.swal2-styled {
    order: 3;
    border: 1px solid var(--backend-theme) !important;
    background: var(--backend-theme) !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem color-mix(in srgb, var(--backend-theme) 24%, transparent) !important;
}

.swal2-container .swal2-confirm.swal2-styled::before {
    content: "\f00c";
}

.swal2-container .swal2-popup.swal2-icon-info .swal2-confirm.swal2-styled::before {
    content: "\f00d";
}

.swal2-container .swal2-popup.swal2-icon-question .swal2-confirm.swal2-styled::before,
.swal2-container .swal2-popup.swal2-icon-error .swal2-confirm.swal2-styled::before {
    content: "\f1f8";
}

.swal2-container .swal2-confirm.swal2-styled:hover,
.swal2-container .swal2-confirm.swal2-styled:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    background: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    color: #fff !important;
}

.swal2-container .swal2-popup.swal2-icon-question .swal2-confirm.swal2-styled,
.swal2-container .swal2-popup.swal2-icon-error .swal2-confirm.swal2-styled {
    border-color: #dc3545 !important;
    background: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.22) !important;
}

.swal2-container .swal2-popup.swal2-icon-question .swal2-confirm.swal2-styled:hover,
.swal2-container .swal2-popup.swal2-icon-question .swal2-confirm.swal2-styled:focus,
.swal2-container .swal2-popup.swal2-icon-error .swal2-confirm.swal2-styled:hover,
.swal2-container .swal2-popup.swal2-icon-error .swal2-confirm.swal2-styled:focus {
    border-color: #bb2d3b !important;
    background: #bb2d3b !important;
    color: #fff !important;
}

.swal2-container .swal2-popup.swal2-icon-success .swal2-confirm.swal2-styled {
    border-color: var(--backend-theme) !important;
    background: var(--backend-theme) !important;
    color: #fff !important;
    box-shadow: 0 0.5rem 1rem color-mix(in srgb, var(--backend-theme) 24%, transparent) !important;
}

.swal2-container .swal2-cancel.swal2-styled,
.swal2-container .swal2-deny.swal2-styled {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
}

.swal2-container .swal2-cancel.swal2-styled {
    order: 1;
}

.swal2-container .swal2-cancel.swal2-styled::before {
    content: "\f00d";
}

.swal2-container .swal2-deny.swal2-styled {
    order: 2;
}

.swal2-container .swal2-deny.swal2-styled::before {
    content: "\f068";
}

.swal2-container .swal2-cancel.swal2-styled:hover,
.swal2-container .swal2-cancel.swal2-styled:focus,
.swal2-container .swal2-deny.swal2-styled:hover,
.swal2-container .swal2-deny.swal2-styled:focus {
    border-color: #98a2b3 !important;
    background: #f8fafc !important;
    color: #101828 !important;
}

.swal2-container .swal2-loader {
    border-color: var(--backend-theme) transparent var(--backend-theme) transparent;
}

@media (max-width: 767.98px) {
    .backend-modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .backend-content-preview-dialog {
        width: calc(100vw - 1rem);
        height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .backend-content-preview-dialog .backend-modal-content {
        max-height: calc(100vh - 1rem);
    }

    .backend-modal-header {
        min-height: 64px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .backend-modal-body {
        padding: 0.9rem;
    }

    .backend-modal-section {
        padding: 0.9rem;
    }

    .backend-modal-section-title-inline {
        align-items: flex-start;
        flex-direction: column;
    }

    .backend-content-preview-trigger {
        align-self: stretch;
        justify-content: center;
    }

    .backend-field-group {
        min-height: auto;
    }

    .backend-media-type-options-inline {
        width: 100%;
        margin-left: 0;
    }

    .backend-media-type-options-inline .backend-media-option {
        flex: 1 1 0;
        justify-content: center;
    }

    .backend-upload-dropzone {
        min-height: 190px;
    }

    .backend-upload-preview,
    .backend-upload-preview img,
    .backend-upload-preview video {
        min-height: 176px;
        height: 176px;
        max-height: 176px;
    }

    .backend-upload-dropzone-square,
    .backend-upload-dropzone-square .backend-upload-preview,
    .backend-upload-dropzone-square .backend-upload-preview img {
        height: auto;
        max-height: none;
    }

    .backend-layout-option-grid {
        grid-template-columns: 1fr;
    }
}
.backend-language-dropdown {
    display: inline-flex;
}

.backend-language-toggle {
    padding-right: 0.65rem;
}

.backend-language-caret {
    margin-left: 0.08rem;
    color: var(--backend-theme);
    font-size: 0.78rem !important;
    transition: transform 0.18s ease;
}

.backend-language-toggle[aria-expanded="true"] .backend-language-caret {
    transform: rotate(180deg);
}

.backend-language-menu {
    min-width: 196px;
    padding: 0.48rem;
    border: 1px solid color-mix(in srgb, var(--backend-theme) 12%, #d6e2ef);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.14);
}

.backend-language-menu li + li {
    margin-top: 0.18rem;
}

.backend-language-item {
    min-height: 42px;
    padding: 0.5rem 0.58rem 0.5rem 0.72rem !important;
    border: 1px solid transparent;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: #344054 !important;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.backend-language-item > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.backend-language-item > span::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    background: #cbd5e1;
    content: "";
    box-shadow: 0 0 0 3px #f1f5f9;
}

.backend-language-item:hover,
.backend-language-item:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 14%, #d6e2ef);
    background: color-mix(in srgb, var(--backend-theme) 6%, #fff) !important;
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827) !important;
    box-shadow: 0 0 0 0.14rem color-mix(in srgb, var(--backend-theme) 8%, transparent);
}

.backend-language-item.is-active {
    color: var(--backend-theme) !important;
    border-color: color-mix(in srgb, var(--backend-theme) 18%, #d6e2ef);
    background: color-mix(in srgb, var(--backend-theme) 9%, #fff) !important;
    font-weight: 900;
}

.backend-language-item.is-active > span::before {
    background: var(--backend-theme);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-theme) 12%, #fff);
}

.backend-language-check {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 12%, #fff);
    font-size: 0.78rem;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.backend-language-item.is-active .backend-language-check {
    opacity: 1;
    transform: scale(1);
}

.backend-table-wrap {
    width: 100%;
}

.backend-data-card .dt-container {
    color: #344054;
}

.backend-data-card .dt-container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.backend-data-card .dt-container > .row:first-child {
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.05rem 0.75rem;
    margin-top: 0 !important;
}

.backend-data-card .dt-container > .row:last-child {
    align-items: center;
    padding: 0.85rem 1.05rem;
    margin-top: 0 !important;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

.backend-data-card .dt-layout-table {
    margin-top: 0 !important;
}

.backend-data-card .dt-layout-table > .col-12,
.backend-data-card .dt-layout-table > .dt-layout-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.backend-data-card .dt-length label,
.backend-data-card .dt-search label {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.backend-data-card .dt-length,
.backend-data-card .dt-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.backend-data-card .dt-length select,
.backend-data-card .dt-search input {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: #111827;
    min-height: 36px;
    box-shadow: none;
}

.backend-data-card .dt-search input {
    min-width: 220px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.backend-data-card .dt-info {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 600;
}

.backend-data-card .pagination {
    gap: 0.28rem;
    margin-bottom: 0;
}

.backend-data-card .page-link {
    min-width: 34px;
    min-height: 34px;
    border-radius: 8px !important;
    border-color: #d9e2ec;
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.backend-data-card .page-item.active .page-link {
    background: var(--backend-theme) !important;
    border-color: var(--backend-theme) !important;
    color: #fff !important;
}

.backend-data-card .page-item.disabled .page-link {
    color: #98a2b3;
    background: #fff;
}

.backend-datatable-polished .dt-container > .row:first-child {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
}

.backend-datatable-polished .dt-container > .row:last-child {
    min-height: 64px;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
}

.backend-datatable-polished .dt-layout-start,
.backend-datatable-polished .dt-layout-end {
    display: flex !important;
    align-items: center !important;
}

.backend-datatable-polished .dt-length label,
.backend-datatable-polished .dt-search label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475467;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
}

.backend-datatable-polished .dt-length {
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.backend-datatable-polished .dt-length label {
    min-height: 40px;
    padding: 0.28rem 0.36rem 0.28rem 0.72rem;
    border: 1px solid #e1e8f0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0.25rem 0.65rem rgba(15, 23, 42, 0.04);
}

.backend-datatable-polished .dt-length select {
    min-width: 70px;
    min-height: 30px;
    margin: 0 0.08rem;
    padding: 0.25rem 1.85rem 0.25rem 0.68rem;
    border-color: color-mix(in srgb, var(--backend-theme) 18%, #d9e2ec);
    border-radius: 999px;
    color: var(--backend-theme);
    background-color: color-mix(in srgb, var(--backend-theme) 7%, #fff);
    font-size: 0.84rem;
    font-weight: 900;
}

.backend-datatable-polished .backend-dt-length-dropdown {
    display: inline-flex;
}

.backend-datatable-polished .backend-dt-length-button {
    min-height: 40px;
    padding: 0.42rem 0.76rem;
    border: 1px solid #e1e8f0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #6c757d;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
    box-shadow: 0 0.25rem 0.65rem rgba(15, 23, 42, 0.04);
}

.backend-datatable-polished .backend-dt-length-button::before {
    display: none;
    content: none;
}

.backend-datatable-polished .backend-dt-length-button:hover,
.backend-datatable-polished .backend-dt-length-button:focus,
.backend-datatable-polished .backend-dt-length-button.show {
    border-color: #cfd8e3;
    color: #475467;
    background: #fff;
    box-shadow: 0 0 0 0.18rem rgba(108, 117, 125, 0.12);
}

.backend-datatable-polished .backend-dt-length-icon {
    margin-right: 0.36rem;
    color: #667085;
    font-size: 0.78rem;
}

.backend-datatable-polished .backend-dt-length-value {
    color: #344054;
    font-weight: 900;
}

.backend-datatable-polished .backend-dt-length-unit {
    color: #344054;
    font-weight: 900;
}

.backend-datatable-polished .dt-search {
    min-height: 42px;
    padding: 0.3rem 0.42rem 0.3rem 0.7rem;
    border: 1px solid #dce6f1;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 0.25rem 0.65rem rgba(15, 23, 42, 0.04);
}

.backend-datatable-polished .dt-search label {
    color: #6c757d;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.backend-datatable-polished .dt-search label::before {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #f2f4f7;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 0.72rem;
    font-weight: 900;
    content: "\f002";
}

.backend-datatable-polished .dt-search input {
    min-width: 240px;
    min-height: 34px;
    margin-left: 0.18rem;
    border-color: transparent;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
}

.backend-datatable-polished .dt-length select:focus,
.backend-datatable-polished .dt-search input:focus {
    border-color: var(--backend-theme);
    background-color: #fff;
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--backend-theme) 14%, transparent);
}

.backend-datatable-polished .dt-info {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e5eaf0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #667085;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.backend-datatable-polished .dt-paging nav {
    display: flex;
    justify-content: flex-end;
}

.backend-datatable-polished .pagination {
    gap: 0.35rem;
    align-items: center;
}

.backend-datatable-polished .page-link {
    min-width: 36px;
    min-height: 36px;
    padding: 0.42rem 0.72rem;
    border: 1px solid #dce6f1;
    border-radius: 9px !important;
    color: #475467;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
    box-shadow: 0 0.2rem 0.45rem rgba(15, 23, 42, 0.04);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.backend-datatable-polished .page-link:hover,
.backend-datatable-polished .page-link:focus {
    border-color: color-mix(in srgb, var(--backend-theme) 24%, #dce6f1);
    color: var(--backend-theme);
    background: color-mix(in srgb, var(--backend-theme) 6%, #fff);
    box-shadow: 0 0 0 0.16rem color-mix(in srgb, var(--backend-theme) 9%, transparent);
}

.backend-datatable-polished .page-item.active .page-link {
    border-color: var(--backend-theme) !important;
    color: #fff !important;
    background: var(--backend-theme) !important;
    box-shadow: 0 0.45rem 0.9rem color-mix(in srgb, var(--backend-theme) 24%, transparent);
}

.backend-datatable-polished .page-item.disabled .page-link {
    border-color: #edf1f5;
    color: #a6b0bd;
    background: #ffffff;
    box-shadow: none;
}

.backend-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.backend-data-card table.dataTable.backend-table thead th,
.backend-data-card .backend-table thead th {
    background: #fff !important;
    color: #475467 !important;
    border-top: 1px solid #eef2f7 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.82rem 0.95rem !important;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center !important;
}

.backend-dt-header-icon {
    margin-right: 0.34rem;
    color: var(--backend-theme) !important;
    font-size: 0.92em;
    line-height: 1;
}

.backend-data-card .dt-column-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.backend-data-card table.dataTable.backend-table tbody td,
.backend-data-card .backend-table tbody td {
    color: #344054;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 0.85rem 0.95rem !important;
    vertical-align: middle;
    font-size: 0.9rem;
    text-align: center !important;
}

.backend-data-card .backend-table tbody tr {
    background: #fff;
    transition: background-color 0.16s ease;
}

.backend-data-card .backend-table tbody tr:hover {
    background: #fff;
}

.backend-table-order {
    color: #667085 !important;
    font-weight: 700;
}

.backend-table-title {
    color: #111827 !important;
    font-weight: 700;
}

.backend-media-cell {
    min-width: 180px;
}

.backend-media-thumb {
    width: 156px;
    height: 94px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.08);
}

img.backend-media-thumb {
    object-fit: fill;
}

video.backend-media-thumb {
    object-fit: fill;
}

.backend-empty-mark {
    color: #98a2b3;
    font-weight: 800;
}

.backend-status-badge {
    min-height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.26rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.backend-status-badge i {
    font-size: 0.72rem;
    line-height: 1;
}

.backend-status-success,
.backend-status-muted,
.backend-status-danger {
    gap: 0.35rem;
    padding: 0.28rem 0.68rem 0.28rem 0.34rem;
    box-shadow: none;
}

.backend-status-success {
    color: #175c43;
    background: #d7f0e2;
    border-color: #bce3ce;
}

.backend-status-success i,
.backend-status-muted i,
.backend-status-danger i {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.55rem;
}

.backend-status-success i {
    background: #2d7a55;
}

.backend-status-muted {
    color: #8a241f;
    background: #fde2e1;
    border-color: #f7c8c5;
}

.backend-status-muted i {
    background: #b93830;
}

.backend-status-danger {
    color: #8a241f;
    background: #fde2e1;
    border-color: #f7c8c5;
}

.backend-status-danger i {
    background: #b93830;
}

.backend-table-actions {
    min-width: 92px;
    white-space: nowrap;
}

.backend-icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 0.12rem;
    background: #fff;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.backend-icon-btn-edit {
    border: 1px solid #1987548f !important;
    color: #067647 !important;
    background: color-mix(in srgb, #ecfdf3 45%, #fff) !important;
}

    .backend-icon-btn-edit:hover,
    .backend-icon-btn-edit:focus {
        background: color-mix(in srgb, #3ac47d 40%, #fff) !important;
    }

.backend-icon-btn-delete {
    border: 1px solid #d9255054 !important;
    color: #b42318 !important;
    background: color-mix(in srgb, #fff5f5 45%, #fff) !important;
}

    .backend-icon-btn-delete:hover,
    .backend-icon-btn-delete:focus {
        background: color-mix(in srgb, #d9255075 45%, #fff) !important;
    }

/* Backend permission action toggles */
.permission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-badge {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.action-checkbox {
    display: none;
}

.action-badge-content {
    min-height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.42rem 0.72rem;
    background: #fff;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.action-badge-content i {
    font-size: 0.78rem;
}

.action-checkbox:checked ~ .action-badge-content {
    border-color: color-mix(in srgb, var(--backend-theme) 30%, #d9e2ec);
    background: color-mix(in srgb, var(--backend-theme) 25%, #fff);
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827);
}

.action-badge:hover .action-badge-content,
.action-badge:focus-within .action-badge-content {
    border-color: color-mix(in srgb, var(--backend-theme) 30%, #d9e2ec);
    background: color-mix(in srgb, var(--backend-theme) 7%, #fff);
    color: color-mix(in srgb, var(--backend-theme) 82%, #111827);
}

.action-checkbox:not(:checked) ~ .action-badge-content.backend-icon-btn-edit,
.action-checkbox:not(:checked) ~ .action-badge-content.backend-icon-btn-delete,
.action-checkbox:not(:checked) ~ .action-badge-content.backend-tool-btn-secondary {
    border-color: #d0d5dd !important;
    background: #fff !important;
    color: #667085 !important;
}

.action-checkbox:disabled ~ .action-badge-content {
    opacity: 0.52;
    cursor: not-allowed;
    box-shadow: none;
}

.action-badge:has(.action-checkbox:disabled) {
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .app-header__content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .backend-page-shell {
        padding: 1rem 0.85rem 1.6rem;
    }

    .backend-page-header-with-actions {
        align-items: flex-start;
    }

    .backend-page-action-group {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .backend-data-card-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .backend-latest-news-layout {
        grid-template-columns: 1fr;
    }

    .backend-latest-news-category-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .backend-latest-news-category-panel .backend-category-list {
        max-height: none;
        overflow: visible;
        padding-top: 0.8rem;
    }

    .backend-latest-news-content-panel {
        border-top: 1px solid #eef2f7;
        border-left: 0;
    }

    .backend-table-toolbar-controls {
        width: 100%;
        justify-content: flex-start;
        flex: 1 1 100%;
    }

    .backend-action-group {
        justify-content: flex-start;
        margin-left: 0;
    }

    .backend-data-card .dt-container > .row:first-child,
    .backend-data-card .dt-container > .row:last-child {
        gap: 0.6rem;
    }
}

@media (max-width: 575.98px) {
    .backend-user-greeting-prefix {
        display: none;
    }

    .backend-user-trigger {
        max-width: 132px;
        padding-left: 0.82rem;
        padding-right: 0.82rem;
    }

    .backend-user-name {
        max-width: 76px;
    }

    .backend-page-title {
        font-size: 1rem;
    }

    .backend-fill-screen-card,
    .backend-fill-screen-body {
        min-height: auto;
    }

    .backend-action-group,
    .backend-language-dropdown,
    .backend-tool-btn {
        width: 100%;
    }

    .backend-language-toggle {
        justify-content: flex-start;
    }

    .backend-data-card .dt-length,
    .backend-data-card .dt-search,
    .backend-data-card .dt-search input {
        width: 100%;
    }

    .backend-datatable-polished .dt-length label,
    .backend-datatable-polished .dt-search label {
        width: 100%;
        flex-wrap: wrap;
    }

    .backend-datatable-polished .dt-search label {
        width: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .backend-datatable-polished .backend-dt-length-dropdown,
    .backend-datatable-polished .backend-dt-length-button,
    .backend-datatable-polished .backend-dt-length-menu {
        width: 100%;
    }

    .backend-datatable-polished .dt-length select,
    .backend-datatable-polished .dt-search input {
        min-width: 0;
        width: 100%;
        margin-left: 0;
    }

    .backend-datatable-polished .dt-paging nav,
    .backend-datatable-polished .pagination {
        width: 100%;
        justify-content: flex-start;
    }

    .backend-media-thumb {
        width: 132px;
        height: 80px;
    }
}

html body img,
html body img[class] {
    object-fit: fill !important;
}

html body video,
html body video[class] {
    object-fit: fill !important;
}

.backend-media-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: var(--backend-media-placeholder-width, 100%);
    height: var(--backend-media-placeholder-height, 100%);
    min-height: 80px;
    overflow: hidden;
    color: var(--backend-theme);
    background-color: #eef3ff;
    background-color: color-mix(
        in srgb,
        var(--backend-theme) 10%,
        #fff
    );
}

.backend-media-placeholder i {
    color: var(--backend-theme);
    font-size: var(--backend-media-placeholder-icon-size, 2.25rem);
}

.backend-media-placeholder.backend-media-placeholder-image {
    min-height: 0;
}

.backend-media-background-fallback {
    background-image: none !important;
    position: relative;
}

.backend-media-background-placeholder {
    position: absolute;
    inset: 0;
    min-height: 0;
    pointer-events: none;
    z-index: 0;
}

.backend-media-background-fallback > :not(.backend-media-background-placeholder) {
    position: relative;
    z-index: 1;
}

/* Complete backend preview image over a blurred copy of the same source. */
.backend-image-frame {
    background: transparent !important;
    display: inline-block;
    isolation: isolate;
    line-height: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
}

html body .backend-image-frame > img.backend-image-blur {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    filter: blur(16px);
    height: 100% !important;
    inset: 0;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    pointer-events: none;
    position: absolute;
    transform: scale(1.16);
    transform-origin: center;
    transition: transform 0.28s ease;
    user-select: none;
    width: 100% !important;
    z-index: 0;
}

html body .backend-image-frame > img.backend-image-contain {
    background: transparent !important;
    object-fit: contain !important;
    position: relative;
    transform: none !important;
    z-index: 1;
}

.backend-image-frame > .backend-media-placeholder.backend-image-contain {
    margin: 0 !important;
    position: relative;
    z-index: 2;
}

.backend-upload-preview > .backend-image-frame-upload {
    display: block;
    height: 234px;
    max-height: 234px;
    min-height: 234px;
    width: 100%;
}

html body .backend-upload-preview > .backend-image-frame-upload > img.backend-image-contain,
.backend-upload-preview > .backend-image-frame-upload > .backend-media-placeholder.backend-image-contain {
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
}

.backend-upload-dropzone-square .backend-upload-preview > .backend-image-frame-upload {
    height: 100%;
    max-height: none;
    min-height: 0;
}

.upload-media-preview > .backend-image-frame-upload-fluid {
    display: block;
    height: 250px;
    max-height: 250px;
    width: 100%;
}

html body .upload-media-preview > .backend-image-frame-upload-fluid > img.backend-image-contain,
.upload-media-preview > .backend-image-frame-upload-fluid > .backend-media-placeholder.backend-image-contain,
.product-image-thumb > .backend-image-frame-product,
.product-image-thumb > .backend-image-frame-product > img.backend-image-contain,
.product-image-thumb > .backend-image-frame-product > .backend-media-placeholder.backend-image-contain,
#ogImagePreviewBox > .backend-image-frame-seo,
#ogImagePreviewBox > .backend-image-frame-seo > img.backend-image-contain,
#ogImagePreviewBox > .backend-image-frame-seo > .backend-media-placeholder.backend-image-contain {
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
}

.background-summary-preview > .backend-image-frame-summary {
    display: block;
    height: 128px;
    width: 100%;
}

html body .background-summary-preview > .backend-image-frame-summary > img.backend-image-contain,
.background-summary-preview > .backend-image-frame-summary > .backend-media-placeholder.backend-image-contain {
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
}

.backend-image-frame:is(:hover, :focus-within) > .backend-image-blur {
    transform: scale(1.22);
}

@media (max-width: 991.98px) {
    .backend-upload-preview > .backend-image-frame-upload {
        height: 176px;
        max-height: 176px;
        min-height: 176px;
    }

    .backend-upload-dropzone-square .backend-upload-preview > .backend-image-frame-upload {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: none;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .backend-image-frame > img.backend-image-blur {
        transition: none !important;
    }

    .backend-image-frame:is(:hover, :focus-within) > .backend-image-blur {
        transform: scale(1.16);
    }
}

/* Global loading overlay */
html.global-loading-active,
body.global-loading-active {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.global-loading-overlay[hidden] {
    display: none !important;
}

.global-loading-overlay {
    align-items: center;
    background: rgba(15, 23, 42, 0.56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: fixed;
    touch-action: none;
    z-index: 2147483000;
}

.global-loading-content {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    max-width: min(88vw, 26rem);
    min-width: min(78vw, 18rem);
    padding: 1.4rem 1.75rem;
    text-align: center;
}

.global-loading-spinner {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    height: 1.25rem;
    justify-content: center;
}

.global-loading-spinner > span {
    animation: backend-global-loading-pulse 1.05s ease-in-out infinite;
    background: var(--backend-theme, #3f6ad8);
    border-radius: 50%;
    display: block;
    height: 0.7rem;
    width: 0.7rem;
}

.global-loading-spinner > span:nth-child(2) {
    animation-delay: 0.14s;
}

.global-loading-spinner > span:nth-child(3) {
    animation-delay: 0.28s;
}

.global-loading-message {
    color: #1f2937;
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@keyframes backend-global-loading-pulse {
    0%,
    80%,
    100% {
        opacity: 0.42;
        transform: scale(0.72);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 575.98px) {
    .global-loading-content {
        min-width: min(84vw, 18rem);
        padding: 1.2rem 1.25rem;
    }

    .global-loading-message {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-loading-spinner > span {
        animation: none !important;
        opacity: 0.9;
        transform: none;
    }
}

/* CSS management center and page-level style editor */
.backend-css-management-card .backend-data-card-toolbar {
    min-height: 64px;
}

.backend-css-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #667085;
    font-size: 0.85rem;
    font-weight: 700;
}

.backend-css-summary-divider {
    width: 1px;
    height: 16px;
    background: #d0d5dd;
}

.backend-css-table {
    min-width: 860px;
}

.backend-css-table thead th:first-child,
.backend-css-table tbody td:first-child,
.backend-css-table thead th:nth-child(4),
.backend-css-table tbody td:nth-child(4) {
    text-align: left !important;
}

.backend-css-table thead th:first-child {
    width: 31%;
}

.backend-css-table thead th:nth-child(2),
.backend-css-table thead th:nth-child(3) {
    width: 15%;
}

.backend-css-table thead th:nth-child(4) {
    width: 24%;
}

.backend-css-setting-name,
.backend-css-audit-user {
    color: #101828;
    font-weight: 750;
}

.backend-css-record-name,
.backend-css-audit-time {
    margin-top: 0.2rem;
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.backend-css-record-name {
    font-family: Consolas, "Courier New", monospace;
}

.backend-css-scope-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 30px;
    padding: 0.3rem 0.68rem;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.backend-css-selector-hint {
    position: relative;
    min-height: 48px;
    padding: 0.78rem 0.9rem 0.78rem 2.6rem;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #dfe5ec;
    border-left: 3px solid var(--backend-theme);
    border-radius: 7px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.backend-css-selector-hint::before {
    content: "#";
    position: absolute;
    top: 0.72rem;
    left: 0.9rem;
    color: var(--backend-theme);
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
    font-weight: 800;
}

.backend-css-editor {
    min-height: 340px;
    padding: 1rem;
    color: #172b4d;
    background: #fbfcfe;
    border-color: #cfd8e3;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
}

.backend-css-editor:focus {
    background: #fff;
    border-color: color-mix(in srgb, var(--backend-theme) 60%, #cfd8e3);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--backend-theme) 12%, transparent);
}

.backend-css-audit-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1.5rem;
    padding: 0.8rem 0.95rem;
    color: #667085;
    background: #f8fafc;
    border-top: 1px solid #eaecf0;
    font-size: 0.82rem;
}

.backend-css-audit-panel i {
    width: 1rem;
    color: var(--backend-theme);
    text-align: center;
}

.backend-css-audit-panel strong {
    color: #344054;
    font-weight: 750;
}

@media (max-width: 767.98px) {
    .backend-css-management-card .backend-data-card-toolbar,
    .backend-css-audit-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .backend-css-editor {
        min-height: 280px;
    }
}
