@font-face {
    font-family: 'nalika';
    src: url('../fonts/nalika.woff') format('woff');
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

/*
 * CRYZEN Brand Design Layer
 * Luxury Crypto Palette: Royal Gold, Cyan/Electric Blue, Crisp White, Slate Typography
 */
:root {
    --nk-bg-body: #fffdf7;
    --nk-bg-surface: #ffffff;
    --nk-bg-elevated: #fff9eb;
    --nk-bg-inset: #fffdf7;

    --nk-accent-blue: #2563eb;
    --nk-accent-teal: #0ea5e9;
    --nk-accent-orange: #d97706;
    --nk-accent-red: #ef4444;
    --nk-accent-brand: #d97706;

    /* Cryzen signature colors */
    --cr-gold: #f59e0b;
    --cr-gold-dark: #d97706;
    --cr-gold-amber: #b45309;
    --cr-cyan: #0ea5e9;
    --cr-blue: #2563eb;
    --cr-dark-blue: #1e3a8a;
    --cr-emerald: #10b981;
    --cr-purple: #8b5cf6;

    --nk-text-primary: #0f172a;
    --nk-text-secondary: #334155;
    --nk-text-muted: #64748b;
    --nk-text-inverse: #ffffff;
    --nk-border-default: #e2e8f0;
    --nk-border-subtle: #f1f5f9;

    --nk-radius-md: 10px;
    --nk-radius-lg: 14px;
    --nk-radius-pill: 999px;
    --nk-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --nk-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
    --nk-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

html,
body {
    min-height: 100%;
    background-color: var(--nk-bg-body);
}

body {
    overflow-x: hidden;
    background-color: #fffdf7;
    background-image:
        radial-gradient(circle at 88% 12%, rgba(245, 184, 46, 0.13) 0%, transparent 42%),
        radial-gradient(circle at 14% 86%, rgba(8, 107, 255, 0.06) 0%, transparent 44%),
        linear-gradient(135deg, #fffdf7 0%, #fffaf0 52%, #f8fafc 100%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--nk-text-secondary);
}

html {
    background: var(--nk-bg-body);
}

body::before,
body::after {
    display: none !important;
}

body > .left-sidebar-pro,
body > .all-content-wrapper {
    position: relative;
    z-index: 1;
}

a,
a:hover,
a:focus {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.left-sidebar-pro {
    z-index: 100;
}

#sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
    color: var(--nk-text-primary);
    border-right: 1px solid rgba(217, 154, 19, 0.16);
    box-shadow: 2px 0 14px rgba(217, 154, 19, 0.05);
}

#sidebar .sidebar-header {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-top: 0;
    border-bottom: 1px solid rgba(217, 154, 19, 0.16);
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

#sidebar .sidebar-header > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-decoration: none;
}

#sidebar .sidebar-header .main-logo {
    display: block;
    width: auto;
    max-width: 190px;
    height: 76px;
    max-height: 80px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.16));
    transition: transform 0.25s ease;
}

#sidebar .sidebar-header .main-logo:hover {
    transform: scale(1.03);
}

#sidebar .sidebar-header strong img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.2));
}

#sidebar .left-sidebar-menu-pro > ul > li > a,
#sidebar .left-sidebar-menu-pro .submenu-angle li a {
    color: var(--nk-text-secondary);
    font-size: 13.5px;
    font-weight: 500;
}

#sidebar .left-sidebar-menu-pro > ul > li > a:hover {
    color: var(--cr-gold-dark);
    background: #f8fafc;
}

#sidebar .left-sidebar-menu-pro > ul.metismenu > li > a {
    position: relative;
    margin: 3px 10px 3px 0;
    border-radius: 0 9px 9px 0;
    transition: all 0.18s ease;
}

#sidebar .left-sidebar-menu-pro > ul.metismenu > li.active > a,
#sidebar .left-sidebar-menu-pro > ul.metismenu > li.active > a.has-arrow,
#sidebar .left-sidebar-menu-pro > ul.metismenu > li > a.has-arrow[aria-expanded='true'] {
    color: var(--cr-gold-amber) !important;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%) !important;
    border-left: 3.5px solid var(--cr-gold-dark);
    border-radius: 0 10px 10px 0;
    box-shadow: none !important;
    font-weight: 700;
}

#sidebar .left-sidebar-menu-pro > ul.metismenu > li.active > a .big-icon,
#sidebar .left-sidebar-menu-pro > ul.metismenu > li.active > a.has-arrow .big-icon,
#sidebar .left-sidebar-menu-pro > ul.metismenu > li > a.has-arrow[aria-expanded='true'] .big-icon {
    color: var(--cr-gold-dark) !important;
}

#sidebar .left-sidebar-menu-pro > ul.metismenu > li.active > a.has-arrow::after,
#sidebar .left-sidebar-menu-pro > ul.metismenu > li > a.has-arrow[aria-expanded='true']::after {
    border-color: var(--cr-gold-dark);
}

#sidebar .left-sidebar-menu-pro .submenu-angle {
    padding: 6px 0 8px;
    background: rgba(245, 158, 11, 0.03);
}

#sidebar .left-sidebar-menu-pro .submenu-angle li a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 7px 16px 7px 36px;
    border-radius: 0 7px 7px 0;
    font-size: 13px;
    gap: 9px;
    line-height: 1.4;
}

#sidebar .left-sidebar-menu-pro .submenu-angle li a .sub-icon {
    font-size: 14px;
    color: #64748b;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease, transform 0.18s ease;
}

#sidebar .left-sidebar-menu-pro .submenu-angle li a:hover .sub-icon,
#sidebar .left-sidebar-menu-pro .submenu-angle li.active > a .sub-icon,
#sidebar .left-sidebar-menu-pro .submenu-angle li > a[aria-current='page'] .sub-icon {
    color: var(--cr-gold-dark) !important;
    transform: scale(1.1);
}

#sidebar .left-sidebar-menu-pro .submenu-angle li a:hover,
#sidebar .left-sidebar-menu-pro .submenu-angle li.active > a,
#sidebar .left-sidebar-menu-pro .submenu-angle li > a[aria-current='page'] {
    color: var(--cr-gold-amber) !important;
    background: rgba(245, 158, 11, 0.08) !important;
    font-weight: 600;
}

#sidebar .left-sidebar-menu-pro .submenu-angle li.active > a::before,
#sidebar .left-sidebar-menu-pro .submenu-angle li > a[aria-current='page']::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 22px;
    width: 3px;
    border-radius: 4px;
    background: var(--cr-gold-dark);
    content: '';
}

#sidebar .left-sidebar-menu-pro .big-icon {
    color: #64748b;
    transition: color 0.18s ease;
}

.header-top-area {
    background: rgba(255, 253, 247, 0.94);
    border-bottom: 1px solid rgba(217, 154, 19, 0.16);
    box-shadow: 0 4px 16px rgba(217, 154, 19, 0.06);
    backdrop-filter: blur(12px);
}

.nk-header-bar {
    min-height: 64px;
    padding-inline: clamp(12px, 2vw, 28px);
}

.nk-header-bar #sidebarCollapse {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: var(--nk-radius-md) !important;
    color: var(--nk-text-primary) !important;
}

.nk-header-bar #sidebarCollapse:hover,
.nk-header-bar #sidebarCollapse:focus-visible {
    background: var(--nk-bg-elevated);
    color: var(--nk-accent-blue) !important;
}

.nk-header-search {
    width: min(360px, 38vw);
}

.nk-search-input {
    min-height: 40px;
    padding-inline: 16px 42px !important;
    border-color: var(--nk-border-default) !important;
    border-radius: var(--nk-radius-pill) !important;
}

.nk-header-icon:hover,
.nk-header-icon:focus-visible {
    background: var(--nk-bg-elevated);
    color: var(--nk-accent-blue);
}

.nk-header-icon,
.nk-header-user,
.nk-header-bar #sidebarCollapse {
    color: var(--nk-text-secondary) !important;
}

.nk-header-right .dropdown-menu,
.nk-settings-panel {
    border: 1px solid var(--nk-border-subtle);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--nk-shadow-md);
}

.nk-header-mobile-brand { display: none; flex: 0 1 auto; min-width: 0; align-items: center; line-height: 0; }
.nk-header-mobile-brand img { display: block; width: 154px; max-width: 100%; height: 38px; object-fit: contain; object-position: left center; }

.breadcome-list {
    margin: 14px 0 20px;
    padding: 18px 24px;
    border: 1px solid var(--nk-border-default);
    border-radius: var(--nk-radius-lg);
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.breadcomb-wp {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breadcomb-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
    color: var(--cr-gold-dark);
    font-size: 22px;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.breadcomb-ctn h2 {
    margin: 0 0 3px;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: var(--nk-text-primary);
    letter-spacing: -0.02em;
}

.breadcomb-ctn p {
    margin-bottom: 0;
    font-size: 13px;
    color: var(--nk-text-muted);
}

.breadcomb-ctn .bread-ntd {
    color: var(--cr-gold-dark);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.all-content-wrapper > .container-fluid,
.all-content-wrapper .breadcome-area > .container-fluid,
.all-content-wrapper .footer-copyright-area > .container-fluid {
    padding-inline: clamp(12px, 2vw, 28px);
}

.all-content-wrapper > .container-fluid > .row {
    --bs-gutter-x: 0;
}

.footer-copyright-area {
    border-top: 1px solid var(--nk-border-default);
    background: #ffffff;
}

.footer-copyright-area p {
    margin: 0;
    color: var(--nk-text-muted);
    font-size: 12.5px;
}

.nk-metric-tile,
.product-status-wrap,
.analytics-sparkle-line,
.sparkline8-list,
.widget-statistic-list {
    border-color: var(--nk-border-default);
    border-radius: var(--nk-radius-lg);
}

.nk-metric-tile {
    min-width: 0;
    overflow: hidden;
    padding: 18px !important;
    border: 1px solid var(--nk-border-default) !important;
    border-radius: var(--nk-radius-lg) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.nk-metric-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
    border-color: #cbd5e1 !important;
}

.nk-metric-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--cr-gold), var(--cr-cyan));
}

.nk-metric-tile:nth-child(1)::before { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.nk-metric-tile:nth-child(2)::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.nk-metric-tile:nth-child(3)::before { background: linear-gradient(90deg, #10b981, #059669); }
.nk-metric-tile:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.nk-metric-tile:nth-child(5)::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.nk-metric-tile:nth-child(6)::before { background: linear-gradient(90deg, #0ea5e9, #0284c7); }

.nk-metric-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--nk-text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.nk-metric-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nk-text-muted);
    margin-top: 4px;
}

/* Shared feedback: page loader, animated toasts, and paginated lists. */
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(247, 249, 255, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.app-loader__ring {
    width: 46px;
    height: 46px;
    border: 3px solid var(--nk-border-default);
    border-top-color: var(--nk-accent-orange);
    border-right-color: var(--nk-accent-blue);
    border-radius: 50%;
    animation: app-loader-spin 700ms linear infinite;
}

body.app-loading .app-loader.is-visible,
body.app-loading:not(.app-ready) .app-loader {
    opacity: 1;
    visibility: visible;
}

body.app-ready .app-loader:not(.is-visible) {
    opacity: 0;
    visibility: hidden;
}

body.app-loading.is-busy {
    cursor: progress;
}

.app-toast-region {
    position: fixed;
    z-index: 2100;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--nk-border-subtle);
    border-left: 4px solid var(--nk-accent-blue);
    border-radius: var(--nk-radius-md);
    background: var(--nk-bg-surface);
    box-shadow: var(--nk-shadow-md);
    color: var(--nk-text-primary);
    pointer-events: auto;
    animation: app-toast-enter 220ms ease both;
}

.app-toast[data-type="success"] { border-left-color: #16a879; }
.app-toast[data-type="error"] { border-left-color: #e44d4d; }
.app-toast[data-type="warning"] { border-left-color: var(--nk-accent-orange); }
.app-toast[data-type="info"] { border-left-color: var(--nk-accent-blue); }

.app-toast__message { flex: 1; margin: 0; }

.app-toast__close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nk-text-muted);
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.app-toast.is-leaving { animation: app-toast-leave 160ms ease both; }

.swal2-popup {
    border: 1px solid var(--nk-border-subtle) !important;
    border-radius: var(--nk-radius-lg) !important;
    color: var(--nk-text-primary) !important;
    box-shadow: var(--nk-shadow-lg) !important;
}

.swal2-show { animation: app-dialog-enter 220ms ease both !important; }

.app-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.app-pagination__summary {
    margin: 0;
    color: var(--nk-text-muted);
    font-size: 13px;
}

.app-pagination__links .pagination,
.card-footer .pagination,
.pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-pagination__links .page-link,
.card-footer .page-link,
.pagination .page-link {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid var(--nk-border-default);
    border-radius: 8px !important;
    background: #ffffff;
    color: var(--nk-text-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.16s ease;
}

.app-pagination__links .page-link:hover,
.card-footer .page-link:hover,
.pagination .page-link:hover {
    transform: translateY(-1px);
    border-color: var(--cr-blue);
    background: #eff6ff;
    color: var(--cr-blue);
}

.app-pagination__links .page-item.active .page-link,
.card-footer .page-item.active .page-link,
.pagination .page-item.active .page-link {
    border-color: var(--cr-blue) !important;
    background: var(--cr-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.app-pagination__links .page-item.disabled .page-link,
.card-footer .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    pointer-events: none;
    box-shadow: none;
}

.pagination svg,
.page-link svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   Genealogy Network Tree (Interactive MLM Hierarchy)
   ========================================================================== */
.genealogy-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 24px;
}

.genealogy-tree-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 750px;
    padding: 20px 10px;
}

.tree-node-box {
    width: 210px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    z-index: 2;
}

.tree-node-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.tree-node-box.tree-root-node {
    border-color: #f59e0b;
    border-width: 2px;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.12);
}

.tree-node-box.tree-status-active {
    border-top: 3.5px solid #10b981;
}

.tree-node-box.tree-status-inactive {
    border-top: 3.5px solid #f59e0b;
}

.tree-node-box.tree-status-blocked {
    border-top: 3.5px solid #ef4444;
}

.tree-stem-down {
    width: 2px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 auto;
}

.tree-level-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    position: relative;
    padding-top: 20px;
}

.tree-level-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #cbd5e1;
}

.tree-child-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tree-stem-up {
    width: 2px;
    height: 20px;
    background: #cbd5e1;
    position: absolute;
    top: -20px;
}

/* User trading workspace. Admin keeps its own Blade shell and navigation. */
.user-panel .all-content-wrapper { min-height: 100vh; }
.user-panel .header-top-area { background: rgba(255, 253, 247, 0.94); border-bottom: 1px solid rgba(217, 154, 19, 0.16); box-shadow: 0 4px 16px rgba(217, 154, 19, 0.06); backdrop-filter: blur(12px); }
.user-panel .nk-header-bar { min-height: 68px; }
.user-panel .user-menu-toggle { color: var(--nk-text-primary); font-size: 21px; }
.user-sidebar__caption { padding: 18px 22px 8px; color: var(--nk-text-muted); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.user-sidebar #sidebar .left-sidebar-menu-pro > ul > li > a { margin-right: 10px; border-radius: 0 9px 9px 0; }
.user-sidebar #sidebar .left-sidebar-menu-pro > ul > li.active > a { color: var(--cr-gold-amber) !important; background: linear-gradient(90deg, rgba(245, 158, 11, .12) 0%, rgba(217, 119, 6, .04) 100%) !important; border-left: 3.5px solid var(--cr-gold-dark) !important; box-shadow: none !important; font-weight: 700; }
.user-sidebar #sidebar .left-sidebar-menu-pro > ul > li.active > a .big-icon { color: var(--cr-gold-dark) !important; }
.user-sidebar__badge { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: auto; border-radius: 99px; background: rgba(245, 158, 11, .15); color: var(--cr-gold-amber); font-size: 11px; font-weight: 700; }
.user-sidebar__plan { display: flex; align-items: center; gap: 10px; margin: 18px 14px; padding: 12px; border: 1px solid var(--nk-border-default); border-radius: 12px; background: linear-gradient(135deg, #ffffff, #fefce8); }
.user-sidebar__plan-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: rgba(245, 158, 11, .15); color: var(--cr-gold-dark); font-size: 16px; }
.user-sidebar__plan div { display: grid; min-width: 0; }
.user-sidebar__plan strong { color: var(--nk-text-primary); font-size: 12px; font-weight: 700; }
.user-sidebar__plan small { color: var(--nk-text-muted); font-size: 10.5px; }
.user-sidebar__plan > i { margin-left: auto; color: var(--nk-text-muted); font-size: 12px; }
.user-header__context { align-items: center; gap: 13px; color: var(--nk-text-muted); font-size: 13px; }
.user-header__live { display: inline-flex; align-items: center; gap: 7px; color: var(--cr-gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.user-header__live i, .user-signal-live i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.user-header__divider { width: 1px; height: 18px; background: var(--nk-border-default); }
.user-panel .nk-header-right { display: flex; align-items: center; gap: 18px; }
.user-market-clock { align-items: center; gap: 7px; color: var(--nk-text-muted); font-size: 12px; }
.user-notification-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--nk-border-default); border-radius: 50%; background: #fff; color: var(--nk-text-secondary); }
.user-notification-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: var(--cr-gold); }
.user-notification-menu { width: 270px; padding: 16px; border: 1px solid var(--nk-border-default); border-radius: 12px; box-shadow: var(--nk-shadow-md); }
.user-notification-menu h6 { margin-bottom: 12px; color: var(--nk-text-primary); font-size: 14px; font-weight: 700; }
.user-notification-menu p { display: flex; gap: 8px; margin: 0; color: var(--nk-text-muted); font-size: 12px; }
.user-notification-menu p i { color: var(--cr-gold); }
.user-profile-button { display: flex; align-items: center; gap: 9px; padding: 4px 0 4px 12px; border: 0; border-left: 1px solid var(--nk-border-default); background: transparent; text-align: left; }
.user-profile-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(245, 158, 11, .15); color: var(--cr-gold-dark); font-size: 16px; }
.user-profile-copy { display: grid; }
.user-profile-copy strong { max-width: 130px; overflow: hidden; color: var(--nk-text-primary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-profile-copy small { color: var(--nk-text-muted); font-size: 10px; }
.user-profile-chevron { color: var(--nk-text-muted); font-size: 10px; }
.user-profile-menu { min-width: 220px; padding: 8px; border: 1px solid var(--nk-border-default); border-radius: 12px; box-shadow: var(--nk-shadow-md); }
.user-profile-menu .dropdown-item-text { color: var(--nk-text-muted); font-size: 11px; white-space: normal; }
.user-profile-menu .dropdown-item-text strong { display: block; color: var(--nk-text-primary); }
.user-profile-menu .dropdown-item { font-size: 13px; }
.user-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px clamp(16px, 2vw, 28px) 16px; }
.user-page-eyebrow, .user-section-kicker { color: var(--cr-gold-dark); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
.user-page-eyebrow span { margin: 0 6px; color: var(--nk-border-default); }
.user-page-heading h1 { margin: 6px 0 2px; color: var(--nk-text-primary); font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.03em; }
.user-page-heading p { margin: 0; color: var(--nk-text-muted); font-size: 13px; }
.user-page-date { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--nk-border-default); border-radius: 9px; background: #ffffff; color: var(--nk-text-secondary); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.user-panel-content { padding-inline: clamp(16px, 2vw, 28px) !important; }
.user-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 0 12px; width: 100%; max-width: 100%; animation: user-dashboard-enter 380ms ease both; }
.user-dashboard > * { min-width: 0; max-width: 100%; }
.user-balance-card { position: relative; min-height: 210px; overflow: hidden; border: 1px solid rgba(245, 158, 11, .3); border-radius: 18px; background: linear-gradient(135deg, #090e17 0%, #1e293b 55%, #0f172a 100%); box-shadow: 0 14px 36px rgba(15, 23, 42, .2); color: #fff; }
.user-balance-card__glow { position: absolute; top: -160px; right: -20px; width: 400px; height: 400px; border: 1px solid rgba(245, 158, 11, .15); border-radius: 50%; box-shadow: 0 0 0 36px rgba(245, 158, 11, .03), 0 0 0 72px rgba(245, 158, 11, .02); }
.user-balance-card__content { position: relative; z-index: 1; display: flex; min-height: 210px; flex-direction: column; justify-content: space-between; padding: 22px 26px; }
.user-balance-card__topline, .user-balance-card__bottomline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.user-balance-card .user-section-kicker { color: #fde68a; font-weight: 800; letter-spacing: 0.1em; }
.user-balance-card h2 { margin: 7px 0 4px; color: #fff; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.user-balance-card h2 span { color: #fde68a; font-size: .68em; }
.user-balance-change { color: #cbd5e1; font-size: 12px; }
.user-balance-change > i, .user-balance-change > span { color: #6ee7b7; }
.user-balance-change small { margin-left: 4px; color: #94a3b8; }
.user-balance-period { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(245, 158, 11, .3); border-radius: 20px; background: rgba(245, 158, 11, .12); color: #fde68a; font-size: 11px; font-weight: 700; }
.user-balance-card__bottomline { align-items: flex-end; }
.user-balance-mini-stat { display: grid; gap: 4px; min-width: 125px; }
.user-balance-mini-stat span { color: #94a3b8; font-size: 10.5px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.user-balance-mini-stat strong { color: #fff; font-size: 14.5px; font-weight: 700; }
.user-balance-actions { display: flex; gap: 9px; margin-left: auto; }
.user-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.user-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.user-button--light { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #090e17 !important; }
.user-button--outline { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff !important; }
.user-balance-chart { position: absolute; right: 0; bottom: 44px; width: 44%; height: 115px; opacity: .3; }
.user-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.user-stat-card { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 98px; padding: 16px 18px; border: 1px solid var(--nk-border-default); border-radius: 14px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.user-stat-card:hover, .user-panel-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.user-stat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; font-size: 18px; }
.user-stat-icon--blue { background: rgba(37, 99, 235, .1); color: var(--cr-blue); }
.user-stat-icon--orange { background: rgba(245, 158, 11, .15); color: var(--cr-gold-dark); }
.user-stat-card > div { display: grid; gap: 2px; min-width: 0; }
.user-stat-label { color: var(--nk-text-muted); font-size: 11.5px; font-weight: 600; }
.user-stat-card strong { color: var(--nk-text-primary); font-size: 20px; font-weight: 800; line-height: 1.2; }
.user-stat-card small { color: var(--nk-text-muted); font-size: 11px; }
.user-positive { color: #059669 !important; font-weight: 600; }
.user-negative { color: #dc2626 !important; font-weight: 600; }
.user-stat-spark { width: 70px; height: 30px; margin-left: auto; overflow: visible; }
.user-stat-spark path { fill: none; stroke: #20b88a; stroke-width: 2; }
.user-stat-end-icon { margin-left: auto; color: #9aa9bf; font-size: 12px; }
.user-content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); gap: 16px; }
.user-content-grid--lower { grid-template-columns: minmax(0, 1.2fr) minmax(330px, 1fr); }
.user-panel-card { min-width: 0; padding: 18px 19px; border: 1px solid var(--nk-border-subtle); border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: var(--nk-shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease; }
.user-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.user-panel-heading h2 { margin: 3px 0 0; color: var(--nk-text-primary); font-size: 16px; font-weight: 700; }
.user-view-link { color: var(--nk-accent-blue); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.user-view-link i { margin-left: 3px; }
.user-market-table-wrap { width: 100%; overflow-x: auto; }
.user-market-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.user-market-table th { padding: 7px 8px; border-bottom: 1px solid #edf1f7; color: var(--nk-text-muted); font-size: 9px; font-weight: 600; text-align: right; }
.user-market-table th:first-child { text-align: left; }
.user-market-table td { padding: 11px 8px; border-bottom: 1px solid #f0f3f8; color: var(--nk-text-primary); font-size: 11px; text-align: right; }
.user-market-table tr:last-child td { border-bottom: 0; }
.user-market-table td:first-child { display: flex; align-items: center; gap: 9px; text-align: left; }
.user-asset-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #edf3ff; color: #287fff; font-size: 16px; font-weight: 700; }
.user-asset-icon--btc { background: #fff4e4; color: #ef9811; }
.user-asset-icon--eth { background: #eef0ff; color: #6675d9; }
.user-asset-icon--sol { background: #f1ebff; color: #8b5ce0; }
.user-asset-icon--eur { background: #edf3ff; color: #287fff; }
.user-asset-name { display: grid; gap: 2px; text-align: left; }
.user-asset-name strong { color: var(--nk-text-primary); font-size: 11px; font-weight: 600; }
.user-asset-name small { color: var(--nk-text-muted); font-size: 9px; }
.user-change-pill { display: inline-block; padding: 4px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.user-change-pill.is-up { background: #e8f8f1; color: #14855f; }
.user-change-pill.is-down { background: #fff0ef; color: #cd5351; }
.user-mini-chart { width: 76px; height: 27px; }
.user-mini-chart path { fill: none; stroke-width: 2; stroke-linecap: round; }
.user-mini-chart.is-up path { stroke: #23ae80; }
.user-mini-chart.is-down path { stroke: #e18443; }
.user-signal-live { display: inline-flex; align-items: center; gap: 7px; color: #16845f; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.user-signal-live i { width: 6px; height: 6px; }
.user-signal-card { padding: 14px; border: 1px solid #e8edf6; border-radius: 12px; background: linear-gradient(135deg, #fbfcff, #f7faff); }
.user-signal-card__top { display: flex; align-items: center; gap: 8px; }
.user-signal-token { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff2df; color: #ee9816; font-weight: 700; }
.user-signal-pair { color: var(--nk-text-primary); font-size: 11px; font-weight: 700; }
.user-signal-direction { margin-left: auto; padding: 4px 8px; border-radius: 5px; background: #e6f8f0; color: #16845f; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.user-signal-card__main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 15px 0 8px; }
.user-signal-card__main > div:first-child { display: grid; gap: 2px; }
.user-signal-card__main span { color: var(--nk-text-muted); font-size: 9px; }
.user-signal-card__main strong { color: var(--nk-text-primary); font-size: 20px; }
.user-confidence-meter { width: 56%; height: 6px; margin-bottom: 7px; overflow: hidden; border-radius: 9px; background: #e9eef6; }
.user-confidence-meter span { display: block; width: 82%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #287fff, #ff9d00); }
.user-signal-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 11px 0; border-top: 1px solid #e8edf6; border-bottom: 1px solid #e8edf6; }
.user-signal-levels div { display: grid; gap: 4px; }
.user-signal-levels span { color: var(--nk-text-muted); font-size: 9px; }
.user-signal-levels strong { color: var(--nk-text-primary); font-size: 10px; }
.user-risk-low { color: #16845f !important; }
.user-signal-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.user-signal-card__footer span { color: var(--nk-text-muted); font-size: 9px; }
.user-signal-card__footer a, .user-signals-more { color: var(--nk-accent-blue); font-size: 10px; font-weight: 600; text-decoration: none; }
.user-signals-more { display: flex; justify-content: space-between; margin-top: 12px; padding: 0 2px; }
.user-holding-list, .user-activity-list { display: grid; }
.user-holding-row { display: grid; grid-template-columns: 34px minmax(100px,1fr) auto 66px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f3f8; }
.user-holding-row:last-child, .user-activity-row:last-child { border: 0; }
.user-holding-value { display: grid; gap: 3px; text-align: right; }
.user-holding-value strong { color: var(--nk-text-primary); font-size: 11px; }
.user-holding-value small { font-size: 9px; }
.user-holding-share { height: 5px; overflow: hidden; border-radius: 8px; background: #edf1f7; }
.user-holding-share i { display: block; width: var(--share); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nk-accent-blue), #74acff); }
.user-activity-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f3f8; }
.user-activity-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; font-size: 12px; }
.user-activity-icon.is-buy { background: #fff4e4; color: #e9900b; }
.user-activity-icon.is-deposit { background: #e8f8f1; color: #16845f; }
.user-activity-icon.is-sell { background: #edf3ff; color: #287fff; }
.user-activity-row > div { display: grid; gap: 3px; }
.user-activity-row > div strong { color: var(--nk-text-primary); font-size: 10px; }
.user-activity-row > div small { color: var(--nk-text-muted); font-size: 9px; }
.user-activity-amount { margin-left: auto; color: var(--nk-text-primary); font-size: 10px; font-weight: 600; white-space: nowrap; }
.user-demo-note { margin: -3px 0 0; color: var(--nk-text-muted); font-size: 10px; }
.user-demo-note i { margin-right: 4px; color: var(--nk-accent-blue); }
@keyframes user-dashboard-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1199.98px) {
    .user-content-grid, .user-content-grid--lower { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); }
    .user-market-chart-heading, .user-market-chart-cell { display: none; }
    .user-stat-grid { gap: 12px; }
}

@media (max-width: 767.98px) {
    .user-page-heading { align-items: flex-start; padding-top: 18px; }
    .user-page-date { display: none; }
    .user-content-grid, .user-content-grid--lower { grid-template-columns: minmax(0, 1fr); }
    .user-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-stat-card:last-child { grid-column: 1 / -1; }
    .user-balance-card__content { padding: 19px; }
    .user-balance-mini-stat { min-width: 0; }
    .user-balance-card__bottomline { flex-wrap: wrap; }
    .user-balance-actions { width: 100%; margin: 6px 0 0; }
    .user-balance-chart { width: 65%; bottom: 83px; }
}

@media (max-width: 479.98px) {
    .user-panel .nk-header-right { gap: 10px; }
    .user-profile-copy, .user-profile-chevron { display: none; }
    .user-profile-button { padding-left: 9px; }
    .user-page-heading h1 { font-size: 22px; }
    .user-page-heading p { max-width: 290px; font-size: 12px; }
    .user-panel-content { padding-inline: 12px !important; }
    .user-dashboard { gap: 12px; }
    .user-stat-grid { gap: 9px; }
    .user-stat-card { min-height: 88px; gap: 9px; padding: 12px 10px; }
    .user-stat-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
    .user-stat-card strong { font-size: 16px; }
    .user-stat-spark { display: none; }
    .user-panel-card { padding: 15px 12px; }
    .user-balance-card__topline { flex-direction: column; gap: 10px; }
    .user-balance-period { position: absolute; top: 0; right: 0; font-size: 9px; }
    .user-balance-card h2 { margin-top: 9px; font-size: 30px; }
    .user-balance-mini-stat strong { font-size: 12px; }
    .user-market-table th, .user-market-table td { padding-inline: 5px; }
    .user-market-table td { font-size: 10px; }
    .user-asset-icon { width: 28px; height: 28px; }
    .user-holding-row { grid-template-columns: 30px minmax(75px,1fr) auto; gap: 7px; }
    .user-holding-share { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .user-dashboard { animation: none; }
    .user-stat-card, .user-panel-card, .user-button { transition: none; }
}

/* Shared admin records and error screens */
.auth-screen { min-height: 100vh; padding: 0; background: #fffdf8; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .95fr) minmax(440px, 1.05fr); overflow: hidden; background: #fffdf8; }
.auth-visual { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(30px, 5vw, 72px); color: #0f172a; background: radial-gradient(circle at 78% 22%, rgba(245, 184, 46, 0.18), transparent 44%), radial-gradient(circle at 22% 82%, rgba(8, 107, 255, 0.10), transparent 46%), linear-gradient(135deg, #fffdf7 0%, #fff9eb 55%, #f8fafc 100%); border-right: 1px solid rgba(217, 154, 19, 0.18); }
.auth-visual::before, .auth-visual::after { position: absolute; border: 1.5px solid rgba(217, 154, 19, 0.22); border-radius: 50%; content: ''; pointer-events: none; }
.auth-visual::before { right: -180px; bottom: 8%; width: 520px; height: 520px; box-shadow: 0 0 0 34px rgba(245, 184, 46, 0.06), 0 0 0 70px rgba(8, 107, 255, 0.04); }
.auth-visual::after { right: -80px; bottom: 22%; width: 330px; height: 330px; border-color: rgba(8, 107, 255, 0.22); }
.auth-brand { position: relative; z-index: 1; display: inline-flex; width: fit-content; padding: 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(217, 154, 19, 0.24); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.auth-mobile-brand { position: relative; z-index: 1; display: none; width: fit-content; margin: 0 auto 22px; }
.auth-brand img { display: block; width: auto; max-width: 185px; height: 48px; object-fit: contain; }
.auth-mobile-brand img { display: block; width: auto; max-width: 170px; height: 46px; object-fit: contain; }
.auth-visual__copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0; padding: 54px 0; }
.auth-visual__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 99px; background: #ffffff; border: 1px solid rgba(217, 154, 19, 0.28); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); color: #0f172a; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.auth-visual__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.7); }
.auth-visual__copy h1 { max-width: 570px; margin: 22px 0 16px; color: #0f172a; font-size: clamp(38px, 5vw, 62px); font-weight: 900; letter-spacing: -.04em; line-height: 1.04; }
.auth-visual__copy p { max-width: 480px; color: #475569; font-size: 16px; line-height: 1.8; }
.auth-visual__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-visual__chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(217, 154, 19, 0.24); border-radius: 99px; color: #0f172a; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); font-size: 12px; font-weight: 600; }
.auth-visual__chips i { color: #d99a13; }
.auth-visual__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; color: #64748b; font-size: 11px; }
.auth-visual__foot span:first-child { color: #0f172a; font-weight: 800; letter-spacing: .12em; }
.auth-orbit { position: absolute; z-index: 0; width: 10px; height: 10px; border-radius: 50%; background: #f5b82e; box-shadow: 0 0 18px rgba(245, 184, 46, 0.8); animation: auth-float 4s ease-in-out infinite; }
.auth-orbit--one { top: 24%; right: 18%; }.auth-orbit--two { right: 35%; bottom: 20%; width: 7px; height: 7px; background: #086bff; box-shadow: 0 0 14px rgba(8, 107, 255, 0.6); animation-delay: -2s; }
.auth-form-side { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 26px clamp(20px, 4vw, 60px) 40px; background-color: #ffffff; background-image: radial-gradient(circle at 85% 15%, rgba(245, 184, 46, 0.10) 0%, transparent 42%), radial-gradient(circle at 15% 85%, rgba(8, 107, 255, 0.05) 0%, transparent 42%), linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px); background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px; background-position: center; position: relative; }
.auth-topbar { width: min(100%, 520px); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; position: relative; z-index: 3; }
.auth-topbar__actions { display: flex; align-items: center; gap: 8px; }
.auth-nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 99px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: #334155; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); transition: all 0.2s ease; }
.auth-nav-btn:hover { color: #b4780d; border-color: #d99a13; transform: translateY(-1px); }
.auth-nav-btn.is-active { color: #ffffff !important; border-color: #d99a13; background: linear-gradient(135deg, #f5b82e 0%, #d99a13 55%, #9b7318 100%); box-shadow: 0 4px 14px rgba(217, 154, 19, 0.28); }
.auth-form-wrap { width: min(100%, 460px); margin: auto 0; background: #ffffff; border: 1px solid rgba(217, 154, 19, 0.22); border-top: 4px solid #d99a13; border-radius: 22px; padding: clamp(24px, 3.5vw, 36px) clamp(22px, 4vw, 34px); box-shadow: 0 22px 50px -12px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(217, 154, 19, 0.08); position: relative; z-index: 2; animation: brand-rise .42s ease both; }
.auth-form-wrap--register { width: min(100%, 520px); padding: 26px clamp(20px, 3.5vw, 32px); }
.auth-form-wrap--register .auth-form-heading { margin-bottom: 16px; }
.auth-form--register { gap: 12px; }
.auth-form--register .auth-input-wrap input { min-height: 44px; padding: 10px 14px 10px 42px; }
.auth-form--register .auth-input-wrap--password input { padding-right: 42px; }
.auth-form--register .auth-form-footer { margin-top: 16px; }
.auth-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-phone-group { display: flex; align-items: stretch; border: 1.5px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #ffffff; transition: all .2s ease; }
.auth-phone-group:focus-within { border-color: #d99a13; box-shadow: 0 0 0 3.5px rgba(245, 184, 46, 0.18); }
.auth-phone-prefix { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; background: #fffbeb; border-right: 1px solid #e2e8f0; color: #0f172a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.auth-phone-group input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 0 !important; outline: 0 !important; box-shadow: none !important; color: #0f172a; background: transparent; font-size: 13.5px; }
.auth-phone-group input::placeholder { color: #94a3b8; }
@media (max-width: 575.98px) { .auth-field-row { grid-template-columns: 1fr; } }
.auth-mobile-brand { display: none; margin-bottom: 28px; text-align: center; justify-content: center; }
.auth-form-heading { margin-bottom: 24px; }
.auth-form-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 99px; background: rgba(245, 184, 46, 0.12); border: 1px solid rgba(217, 154, 19, 0.28); color: #b45309; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.auth-form-heading h2 { margin: 8px 0 6px; color: #0f172a; font-size: clamp(26px, 3.5vw, 32px); font-weight: 850; letter-spacing: -.03em; }
.auth-form-heading p { margin: 0; color: #64748b; font-size: 13.5px; line-height: 1.6; }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > label, .auth-label-row label { margin: 0; color: #334155; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-label-row a, .auth-switch-link a { color: #d97706; font-weight: 700; text-decoration: none; transition: all .18s ease; }
.auth-label-row a:hover, .auth-switch-link a:hover { color: #b45309; text-decoration: underline; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > i { position: absolute; top: 50%; left: 16px; color: #d99a13; font-size: 16px; transform: translateY(-50%); pointer-events: none; transition: color .18s ease; }
.auth-input-wrap input { width: 100%; min-height: 50px; padding: 12px 16px 12px 46px; border: 1.5px solid #e2e8f0; border-radius: 12px; outline: 0; color: #0f172a; background: #ffffff; font-size: 13.5px; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); }
.auth-input-wrap input::placeholder { color: #94a3b8; }
.auth-input-wrap--password input { padding-right: 48px; }
.auth-password-toggle { position: absolute; top: 50%; right: 12px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #94a3b8; background: transparent; font-size: 16px; transform: translateY(-50%); transition: all .18s ease; cursor: pointer; }
.auth-password-toggle:hover, .auth-password-toggle:focus-visible { color: #d97706; background: rgba(245, 158, 11, 0.1); outline: 0; }
.auth-input-wrap input:focus { border-color: #d99a13 !important; background: #ffffff; box-shadow: 0 0 0 3.5px rgba(245, 184, 46, 0.18), 0 2px 8px rgba(217, 154, 19, 0.08) !important; }
.auth-input-wrap input[aria-invalid="true"] { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important; }
.auth-field-error { color: #ef4444; font-size: 11.5px; font-weight: 500; }
.auth-field-hint { color: #64748b; font-size: 11px; }
.auth-otp-group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.auth-otp-digit { width: 100%; min-width: 0; height: 56px; padding: 0; border: 1.5px solid #cbd5e1; border-radius: 12px; outline: 0; color: #0f172a; background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); font-size: 22px; font-weight: 700; text-align: center; transition: all .18s ease; }
.auth-otp-digit:focus { transform: translateY(-2px); border-color: #d99a13 !important; background: #ffffff; box-shadow: 0 0 0 3.5px rgba(245, 184, 46, 0.22), 0 2px 10px rgba(217, 154, 19, 0.12) !important; }
.auth-otp-digit[aria-invalid="true"] { border-color: #ef4444; }
.auth-checkbox { display: flex; align-items: flex-start; gap: 9px; color: #475569; font-size: 12px; line-height: 1.5; cursor: pointer; }
.auth-checkbox input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; accent-color: #d97706; border-radius: 4px; }
.auth-checkbox--terms a { color: #d97706; font-weight: 700; text-decoration: none; }
.auth-checkbox--terms a:hover { color: #b45309; text-decoration: underline; }
.auth-submit { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 99px; color: #ffffff; background: linear-gradient(135deg, #f5b82e 0%, #d99a13 55%, #9b7318 100%); box-shadow: 0 8px 22px rgba(217, 154, 19, 0.30); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; cursor: pointer; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(217, 154, 19, 0.42); background: linear-gradient(135deg, #f7c344 0%, #e09f15 45%, #b4780d 100%); }
.auth-switch-link { color: #64748b; font-size: 12px; text-align: center; }
.auth-separator { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.auth-separator::before, .auth-separator::after { height: 1px; flex: 1; background: #e2e8f0; content: ''; }
.auth-help-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #475569; font-size: 11px; line-height: 1.6; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; }
.auth-help-note i { color: #10b981; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.auth-form-footer { margin-top: 30px; color: #94a3b8; font-size: 11px; text-align: center; }
.auth-form-footer span { padding-inline: 6px; color: #d97706; }
.auth-form--register { gap: 13px; }
.auth-back-form { margin-top: 16px; text-align: center; }
.auth-back-link { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 8px; color: #475569; background: #f8fafc; font-size: 12px; cursor: pointer; transition: all .18s ease; }
.auth-back-link:hover { color: #d97706; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.06); }
.secure-access-card { display: grid; justify-items: center; padding: 28px 24px; border: 1px solid #e2e8f0; border-radius: 20px; background: #ffffff; box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08); text-align: center; animation: brand-rise .35s ease both; }
.secure-access-card__icon { position: relative; display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 24px; color: #d97706; background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(37, 99, 235, 0.06)); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15); font-size: 34px; }
.secure-access-card__icon > span { position: absolute; right: -6px; bottom: -5px; display: grid; width: 25px; height: 25px; place-items: center; border: 3px solid #ffffff; border-radius: 50%; color: #fff; background: #10b981; font-size: 13px; }
.secure-access-card__status { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: #059669; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.secure-access-card__status i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
.secure-access-card h3 { margin: 8px 0; color: #0f172a; font-size: 22px; font-weight: 850; }
.secure-access-card p { max-width: 340px; margin: 0; color: #64748b; font-size: 12px; line-height: 1.7; }
.secure-access-card p strong { color: #d97706; }
.secure-access-card__continue { width: 100%; margin-top: 24px; text-decoration: none; }
.secure-access-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: #94a3b8; font-size: 10px; }
.secure-access-note i { color: #10b981; }
.auth-screen--admin .auth-visual { background: radial-gradient(circle at 75% 24%, rgba(245, 184, 46, 0.22), transparent 44%), radial-gradient(circle at 22% 82%, rgba(8, 107, 255, 0.14), transparent 46%), linear-gradient(135deg, #f8fafc 0%, #fffaf0 55%, #f1f5f9 100%); }
@keyframes auth-float { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(-13px); opacity: 1; } }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: minmax(280px, .85fr) minmax(400px, 1.15fr); }.auth-visual { padding: 34px; }.auth-form-side { padding-inline: 42px; } }
@media (max-width: 767.98px) { .auth-shell { display: block; min-height: 100vh; }.auth-visual { display: none; }.auth-form-side { min-height: 100vh; padding: 36px 20px; }.auth-form-wrap { width: min(100%, 460px); border-radius: 20px; padding: 30px 22px; }.auth-mobile-brand { display: inline-flex; }.auth-mobile-brand img { width: 175px; max-height: 55px; }.auth-form-heading { margin-bottom: 24px; }.auth-form-footer { margin-top: 26px; }.auth-otp-group { gap: 8px; }.auth-otp-digit { height: 54px; border-radius: 9px; font-size: 20px; } }
.auth-screen--user, .auth-screen--admin { background: #f8fafc; }
.auth-screen .app-loader { z-index: 30; }

.modal {
    z-index: 1070 !important;
}
.modal-dialog {
    z-index: 1075 !important;
    position: relative;
}
.modal-backdrop {
    z-index: 1060 !important;
}
.admin-page { width: 100%; max-width: 100%; margin: 0 0 28px; animation: brand-rise .35s ease both; }
.admin-page--narrow { width: 100%; max-width: 100%; }
.admin-page__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 14px 0 20px; }
.admin-page__heading h1 { margin: 4px 0 6px; color: var(--nk-text-primary); font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.admin-page__heading p { margin: 0; color: var(--nk-text-muted); }
.admin-eyebrow { color: var(--nk-accent-orange); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.admin-heading-actions, .admin-form-actions, .error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-panel { overflow: hidden; border: 1px solid var(--nk-border-default); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--nk-shadow-md); }
.admin-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.admin-action:hover { transform: translateY(-1px); }
.admin-action--primary { color: #fff !important; background: linear-gradient(110deg, var(--nk-accent-blue), var(--nk-accent-orange)); box-shadow: 0 8px 18px rgba(40,127,255,.18); }
.admin-action--secondary { color: var(--nk-text-primary); border-color: var(--nk-border-default); background: #f7f9ff; }
.admin-action--quiet { color: var(--nk-text-secondary); border-color: var(--nk-border-default); background: #fff; }
.admin-search { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--nk-border-subtle); }
.admin-search__field { position: relative; flex: 1; }
.admin-search__field i { position: absolute; top: 50%; left: 14px; color: var(--nk-text-muted); transform: translateY(-50%); }
.admin-search__field input, .admin-form-field input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--nk-border-default); border-radius: 9px; outline: 0; color: var(--nk-text-primary); background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.admin-search__field input { padding-left: 40px; }
.admin-search__field input:focus, .admin-form-field input:focus { border-color: var(--nk-accent-blue); box-shadow: 0 0 0 3px rgba(40,127,255,.12); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; color: var(--nk-text-secondary); font-size: 13px; }
.admin-table th { padding: 13px 20px; color: var(--nk-text-muted); background: #f7f9ff; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 14px 20px; border-top: 1px solid var(--nk-border-subtle); white-space: nowrap; }
.admin-table tbody tr { transition: background .16s ease; }
.admin-table tbody tr:hover { background: #f9fbff; }
.admin-user-cell { display: flex; align-items: center; gap: 11px; color: var(--nk-text-primary); font-weight: 700; }
.admin-avatar { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, var(--nk-accent-blue), #43c0ee); font-size: 14px; font-weight: 800; }
.admin-row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.admin-row-actions a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--nk-border-default); border-radius: 9px; color: var(--nk-text-secondary); text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.admin-row-actions a:hover { color: var(--nk-accent-orange); border-color: rgba(255,157,0,.5); background: #fff8eb; }
.admin-empty { display: grid; min-height: 190px; place-content: center; justify-items: center; gap: 8px; color: var(--nk-text-muted); white-space: normal; text-align: center; }
.admin-empty i { color: var(--nk-accent-blue); font-size: 28px; }
.admin-empty strong { color: var(--nk-text-primary); font-size: 15px; }
.admin-form-panel { padding: clamp(18px, 3vw, 30px); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-form-field { display: grid; align-content: start; gap: 8px; }
.admin-form-field label { color: var(--nk-text-primary); font-size: 13px; font-weight: 700; }
.admin-form-field label span { color: var(--nk-accent-orange); }
.admin-form-field small { color: var(--nk-text-muted); font-size: 11px; }
.admin-form-field input[aria-invalid="true"] { border-color: #e45252; }
.admin-form-error { color: #c83434; font-size: 12px; }
.admin-form-actions { justify-content: flex-end; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--nk-border-subtle); }
.admin-profile-card { padding: clamp(20px, 4vw, 36px); }
.admin-profile-card__identity { display: flex; align-items: center; gap: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--nk-border-subtle); }
.admin-avatar--large { width: 58px; height: 58px; border-radius: 17px; font-size: 22px; }
.admin-profile-card__identity h2 { margin: 0 0 4px; color: var(--nk-text-primary); font-size: 20px; font-weight: 800; }
.admin-profile-card__identity p { margin: 0; color: var(--nk-text-muted); }
.admin-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 7px 10px; border-radius: 99px; color: #167a55; background: #e9f8f1; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-status i { width: 7px; height: 7px; border-radius: 50%; background: #20b77a; }
.admin-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.admin-detail-list div { padding: 18px 0; border-bottom: 1px solid var(--nk-border-subtle); }
.admin-detail-list dt { margin-bottom: 6px; color: var(--nk-text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.admin-detail-list dd { margin: 0; color: var(--nk-text-primary); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.error-screen { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.error-card { width: min(100%, 620px); padding: clamp(28px, 6vw, 60px); border: 1px solid var(--nk-border-default); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--nk-shadow-lg); text-align: center; animation: brand-rise .4s ease both; }
.error-brand img { width: min(220px, 60vw); height: auto; }
.error-code { display: block; margin-top: 28px; color: var(--nk-accent-orange); font-size: clamp(48px, 12vw, 78px); font-weight: 900; line-height: 1; }
.error-card h1 { margin: 14px 0 8px; color: var(--nk-text-primary); font-size: clamp(22px, 5vw, 30px); font-weight: 800; }
.error-card p { margin: 0 auto; max-width: 420px; color: var(--nk-text-muted); }
.error-actions { justify-content: center; margin-top: 26px; }
.error-foot { display: block; margin-top: 34px; color: var(--nk-text-muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.error-foot i { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px; border-radius: 50%; background: var(--nk-accent-orange); }
@keyframes brand-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767.98px) {
    .admin-page__heading { align-items: flex-start; flex-direction: column; }
    .admin-heading-actions { width: 100%; }
    .admin-search { flex-wrap: wrap; padding: 14px; }
    .admin-search__field { flex-basis: 100%; }
    .admin-table th, .admin-table td { padding-inline: 13px; }
    .admin-form-grid, .admin-detail-list { grid-template-columns: 1fr; }
    .admin-profile-card__identity { flex-wrap: wrap; }
    .admin-status { margin-left: 0; }
}

@keyframes app-loader-spin { to { transform: rotate(360deg); } }
@keyframes app-toast-enter { from { opacity: 0; transform: translate3d(18px, -4px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes app-toast-leave { to { opacity: 0; transform: translate3d(16px, 0, 0); } }
@keyframes app-dialog-enter { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }

@media (max-width: 575.98px) {
    .app-toast-region { top: 10px; right: 10px; width: calc(100vw - 20px); }
    .app-pagination { justify-content: center; }
    .app-pagination__summary { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .app-loader__ring { animation-duration: 1.5s; }
    .app-toast, .app-toast.is-leaving, .swal2-show { animation-duration: 1ms !important; }
}

.nk-header-search .nk-search-icon,
.nk-header-icon .icon,
.nk-header-bar .bi {
    color: var(--nk-text-secondary);
}

.nk-header-right .dropdown-menu .dropdown-item,
.nk-header-right .dropdown-menu p,
.nk-header-right .dropdown-menu h6,
.nk-settings-panel,
.nk-settings-panel p,
.nk-settings-panel label {
    color: var(--nk-text-secondary);
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #d99a13 !important;
    box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.18) !important;
}

.btn-primary,
.btn-primary span,
.btn-primary i {
    color: #ffffff !important;
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #d99a13;
    --bs-btn-border-color: #d99a13;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #b4780d;
    --bs-btn-hover-border-color: #b4780d;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #9b7318;
    --bs-btn-active-border-color: #9b7318;
    background: linear-gradient(135deg, #f5b82e 0%, #d99a13 55%, #9b7318 100%) !important;
    background-size: 160% auto;
    border-color: #d99a13 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 154, 19, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    transition: all 0.22s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:hover span,
.btn-primary:hover i {
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-position: right center !important;
    background: linear-gradient(135deg, #f7c344 0%, #e09f15 45%, #b4780d 100%) !important;
    border-color: #b4780d !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(217, 154, 19, 0.38);
}

.btn-primary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #d99a13 0%, #9b7318 100%) !important;
    border-color: #9b7318 !important;
}

.btn-outline-primary {
    --bs-btn-color: #b4780d;
    --bs-btn-border-color: #d99a13;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #d99a13;
    --bs-btn-hover-border-color: #d99a13;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #b4780d;
    --bs-btn-active-border-color: #b4780d;
    color: #b4780d !important;
    border-color: #d99a13 !important;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.btn-outline-primary span,
.btn-outline-primary i {
    color: #b4780d !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
    background: linear-gradient(135deg, #f5b82e 0%, #d99a13 55%, #9b7318 100%) !important;
    border-color: #d99a13 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 154, 19, 0.28);
}

.btn-outline-primary:hover span,
.btn-outline-primary:hover i,
.btn-outline-primary:focus-visible span,
.btn-outline-primary:focus-visible i,
.btn-outline-primary:active span,
.btn-outline-primary:active i {
    color: #ffffff !important;
}

.btn-info,
.btn-info span,
.btn-info i,
.btn-success,
.btn-success span,
.btn-success i,
.btn-danger,
.btn-danger span,
.btn-danger i {
    color: #ffffff !important;
}

.btn-info {
    --bs-btn-bg: #086bff;
    --bs-btn-border-color: #086bff;
    --bs-btn-hover-bg: #0558d6;
    --bs-btn-hover-border-color: #0558d6;
    --bs-btn-active-bg: #0449b3;
    --bs-btn-active-border-color: #0449b3;
}

.btn-warning,
.btn-warning span,
.btn-warning i {
    --bs-btn-bg: #f59e0b;
    --bs-btn-border-color: #d97706;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    color: #ffffff !important;
}

.swal2-confirm[style*="217, 154, 19"],
.swal2-confirm[style*="37, 99, 235"],
.swal2-confirm[style*="#d99a13"],
.swal2-confirm[style*="#2563eb"],
.swal2-confirm:not([style*="background-color"]) {
    background: linear-gradient(135deg, #f5b82e 0%, #d99a13 55%, #9b7318 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(217, 154, 19, 0.28) !important;
    font-weight: 700 !important;
}

.swal2-confirm[style*="217, 154, 19"]:hover,
.swal2-confirm[style*="37, 99, 235"]:hover,
.swal2-confirm[style*="#d99a13"]:hover,
.swal2-confirm[style*="#2563eb"]:hover,
.swal2-confirm:not([style*="background-color"]):hover {
    background: linear-gradient(135deg, #f7c344 0%, #e09f15 45%, #b4780d 100%) !important;
    box-shadow: 0 8px 20px rgba(217, 154, 19, 0.38) !important;
}

@media (min-width: 992px) {
    .header-top-area {
        position: fixed;
        top: 0;
        left: 240px;
        right: 0;
    }

    .header-advance-area {
        padding-top: 64px;
    }

    .breadcome-list {
        margin: 12px 0 16px;
    }

    .left-sidebar-pro,
    #sidebar {
        width: 240px;
    }

    #sidebar {
        min-width: 240px;
        max-width: 240px;
    }

    .all-content-wrapper {
        margin-left: 240px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .all-content-wrapper > .container-fluid:nth-of-type(2) {
        flex: 1 0 auto;
    }

    .header-top-area {
        left: 240px;
    }

    .mini-navbar .all-content-wrapper {
        margin-left: 80px;
    }

    .mini-navbar .header-top-area {
        left: 80px;
    }

    .breadcome-area {
        transition: padding-left var(--nk-transition-normal);
    }

    .mini-navbar .breadcome-area {
        padding-left: 0;
    }

    .footer-copyright-area {
        margin-top: auto !important;
    }

    #sidebar.active {
        width: 80px;
    }

    #sidebar.active .sidebar-header > a {
        display: none;
    }

    #sidebar.active .sidebar-header strong {
        display: block;
    }
}

@media (max-width: 991.98px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        background-attachment: scroll;
        background-position: center, 72% center;
    }

    body::before {
        left: 0;
        opacity: 0.3;
    }

    body::after {
        opacity: 0.6;
    }

    .nk-header-bar .nk-header-mobile-brand { display: flex; margin-right: auto; }

    .left-sidebar-pro {
        position: fixed !important;
        inset: 0 auto 0 0;
        width: min(280px, calc(100vw - 48px));
        height: 100vh;
        height: 100dvh;
        z-index: 600 !important;
        pointer-events: none;
    }

    body.sidebar-mobile-open > .left-sidebar-pro {
        pointer-events: auto;
    }

    #sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(280px, calc(100vw - 48px));
        min-width: min(280px, calc(100vw - 48px));
        max-width: min(280px, calc(100vw - 48px));
        height: 100vh;
        height: 100dvh;
        z-index: 601 !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        box-shadow: 12px 0 36px rgba(20, 40, 80, 0.18);
        -webkit-overflow-scrolling: touch;
    }

    .all-content-wrapper {
        min-width: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    body.sidebar-mobile-open #sidebar {
        width: min(280px, calc(100vw - 48px));
        min-width: min(280px, calc(100vw - 48px));
        max-width: min(280px, calc(100vw - 48px));
        transform: translateX(0);
    }

    .header-top-area,
    .mini-navbar .header-top-area {
        position: fixed;
        left: 0;
        right: 0;
    }

    .sidebar-backdrop {
        z-index: 550 !important;
        background: rgba(16, 26, 58, 0.42);
        backdrop-filter: blur(2px);
    }

    .header-advance-area {
        width: 100%;
        padding-top: 64px;
    }

    .breadcome-list {
        margin: 8px 0 14px;
        padding: 14px 16px;
    }

    .header-top-area {
        position: fixed;
        top: 0;
    }

    .breadcome-list {
        margin: 10px 0 14px;
        padding: 14px 16px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .header-advance-area {
        padding-top: 64px;
    }

    .header-top-area {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .all-content-wrapper > .container-fluid > .row > [class*='col-'] {
        width: 100%;
        max-width: 100%;
    }

    .card,
    .user-dashboard,
    .admin-page {
        min-width: 0;
        max-width: 100%;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive > .table th {
        white-space: nowrap;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .modal-dialog {
        margin: 0.75rem auto;
        max-width: calc(100vw - 1.5rem);
    }

    .swal2-popup {
        width: min(92vw, 440px) !important;
        padding: 1.25rem !important;
    }
}

@media (max-width: 991.98px) {
    body::before {
        inset: 50px 0 0 0;
    }
}

@media (max-width: 575.98px) {
    .nk-header-bar {
        min-height: 54px;
        padding-inline: 10px;
    }

    .nk-header-right {
        gap: 2px;
    }

    .nk-header-bar .nk-header-mobile-brand img { width: clamp(96px, 32vw, 145px); height: 34px; }

    .nk-header-user {
        padding-inline: 4px;
    }

    .nk-header-right .dropdown-menu,
    .nk-settings-panel {
        max-width: calc(100vw - 20px);
    }

    .breadcome-list {
        margin: 12px 0 16px;
        padding: 16px;
    }

    .footer-copyright-area {
        padding-block: 14px;
    }

    .user-dashboard .card.p-4,
    .admin-page .card.p-4 {
        padding: 1rem !important;
    }

    .card-header form,
    .card-header .d-flex {
        max-width: 100%;
    }

    .card-header form .form-control,
    .card-header form .form-select {
        width: 100% !important;
        flex: 1 1 140px;
    }

    .input-group-lg > .form-control {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 359.98px) {
    .nk-metric-tile > .d-flex {
        flex-direction: column;
        gap: var(--nk-space-2);
    }

    .nk-metric-tile > .d-flex > div:last-child {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

#scrollUp {
    background: linear-gradient(135deg, #f5b82e 0%, #d99a13 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    bottom: 16px !important;
    right: 16px !important;
    box-shadow: 0 4px 12px rgba(217, 154, 19, 0.35) !important;
    opacity: 0.9;
}

.user-dashboard .card,
.admin-page .card,
.breadcome-area .card,
.modal-content {
    border: 1px solid rgba(217, 154, 19, 0.24) !important;
    box-shadow: 0 14px 34px -12px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(217, 154, 19, 0.08) !important;
}

.user-dashboard .card:not([style*="border-top"]):not([style*="border-left"]),
.admin-page .card:not([style*="border-top"]):not([style*="border-left"]),
.breadcome-area .card {
    border-top: 3.5px solid #d99a13 !important;
}
