/*
 * KZG V4 PREMIUM THEME
 * Target: high-fidelity implementation of the approved Modern & Bold mockup.
 * Loaded after existing CSS-Bans theme layers so it can be removed cleanly.
 */

:root {
    --kzg-v4-bg: #050914;
    --kzg-v4-bg-deep: #030711;
    --kzg-v4-panel: rgba(8, 16, 32, .94);
    --kzg-v4-panel-2: rgba(11, 22, 42, .96);
    --kzg-v4-panel-3: rgba(14, 27, 50, .96);
    --kzg-v4-header: rgba(15, 29, 53, .95);
    --kzg-v4-border: rgba(71, 94, 151, .40);
    --kzg-v4-border-purple: rgba(107, 78, 239, .62);
    --kzg-v4-blue: #21a8ff;
    --kzg-v4-indigo: #5660ff;
    --kzg-v4-purple: #8c51ff;
    --kzg-v4-pink: #d943ff;
    --kzg-v4-red: #ff3658;
    --kzg-v4-green: #08d77f;
    --kzg-v4-text: #f5f7fb;
    --kzg-v4-muted: #9aa7c0;
    --kzg-v4-radius: 10px;
}

html,
body {
    min-height: 100%;
    background:
        linear-gradient(rgba(4, 8, 19, .86), rgba(4, 8, 19, .91)),
        url("./kzg-v4/kzg-page-background-wallpaper.webp") center top / cover fixed no-repeat,
        var(--kzg-v4-bg) !important;
    color: var(--kzg-v4-text) !important;
}

body {
    font-family: "Nunito", sans-serif;
}

#content,
.main-container,
.layout-px-spacing,
.middle-content,
.middle-content.container-xxl {
    background: transparent !important;
}

.middle-content,
.middle-content.container-xxl,
.layout-px-spacing {
    width: 100% !important;
    max-width: none !important;
}

.layout-px-spacing {
    padding-left: 19px !important;
    padding-right: 19px !important;
}

/* ============================================================
   TOP NAV
   ============================================================ */

.header-container {
    background:
        linear-gradient(90deg, rgba(7, 13, 28, .96), rgba(9, 17, 34, .88)),
        url("./kzg-v4/kzg-topbar-background-strip.webp") center / cover no-repeat !important;
    border-bottom: 1px solid rgba(69, 89, 144, .25) !important;
    box-shadow: 0 9px 35px rgba(0, 0, 0, .22) !important;
    backdrop-filter: blur(14px);
}

.header-container .header {
    min-height: 58px !important;
    background: transparent !important;
}

.header-container #language-dropdown {
    color: #dfe5f2 !important;
    background: rgba(5, 12, 27, .82) !important;
    border: 1px solid rgba(88, 102, 159, .40) !important;
    border-radius: 7px !important;
}

.user-profile-dropdown .avatar img {
    box-shadow:
        0 0 0 2px rgba(97, 77, 240, .78),
        0 0 18px rgba(76, 88, 255, .24) !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar-wrapper.kzg-v4-sidebar {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5, 11, 24, .98) 0%, rgba(6, 12, 25, .97) 54%, rgba(20, 7, 22, .96) 100%) !important;
    border-right: 1px solid rgba(77, 80, 172, .31) !important;
    box-shadow: 14px 0 42px rgba(0, 0, 0, .30) !important;
}

.kzg-v4-sidebar #sidebar {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: transparent !important;
}

.kzg-v4-sidebar #sidebar::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 12, 25, 0) 0%, rgba(7, 12, 25, .18) 18%, rgba(10, 7, 18, .18) 48%, rgba(10, 4, 10, .34) 100%),
        url("./kzg-v4/kzg-sidebar-background-art.webp") center bottom / cover no-repeat;
    opacity: .98;
}

.kzg-v4-sidebar #sidebar::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0 0;
    height: 64%;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 10, 22, 0) 0%, rgba(5, 10, 22, .08) 20%, rgba(7, 5, 15, .18) 55%, rgba(9, 4, 12, .28) 100%);
}

.kzg-v4-sidebar #sidebar > * {
    position: relative;
    z-index: 3;
}

.kzg-v4-sidebar .theme-brand {
    min-height: 75px !important;
    padding: 9px 14px !important;
    background: rgba(4, 10, 22, .70) !important;
    border-bottom: 1px solid rgba(72, 81, 143, .18) !important;
}

.kzg-v4-sidebar .theme-logo img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(235, 45, 67, .22));
}

.kzg-v4-sidebar .theme-text .nav-link {
    color: #fff !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
}

.kzg-v4-sidebar .sidebar-toggle svg {
    color: #a5aec1 !important;
}

.kzg-v4-sidebar .profile-info {
    margin: 12px 12px 9px !important;
    padding: 11px 12px !important;
    background: rgba(2, 8, 19, .80) !important;
    border: 1px solid rgba(81, 78, 153, .34) !important;
    border-radius: 9px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .02),
        0 8px 22px rgba(0, 0, 0, .18) !important;
}

.kzg-v4-sidebar .profile-info .profile-img img {
    width: 39px !important;
    height: 39px !important;
    border-radius: 50%;
    box-shadow:
        0 0 0 2px #7a43f5,
        0 0 15px rgba(130, 63, 245, .30) !important;
}

.kzg-v4-sidebar .profile-info h6 {
    margin: 0 0 2px !important;
    color: #f6f7fb !important;
    font-size: 12px !important;
}

.kzg-v4-sidebar .profile-info p {
    margin: 0 !important;
    color: #8f9ab2 !important;
    font-size: 9px !important;
}

.kzg-v4-sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin: 0 12px 11px;
    padding: 0 11px;
    color: #7f8ba6;
    background: rgba(14, 28, 52, .88);
    border: 1px solid rgba(83, 99, 154, .40);
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25);
}

.kzg-v4-sidebar-search input {
    min-width: 0;
    width: 100%;
    color: #e2e7f2 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: 10px;
}

.kzg-v4-sidebar-search input::placeholder {
    color: #77839a;
}

.kzg-v4-sidebar .menu-categories {
    padding: 0 10px 248px !important;
}

.kzg-v4-sidebar .menu-categories > li.menu {
    margin: 4px 0 !important;
}

.kzg-v4-sidebar .menu-categories li.menu > .dropdown-toggle {
    min-height: 42px;
    padding: 8px 11px !important;
    color: #d9dfed !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    transition:
        background .14s ease,
        border-color .14s ease,
        transform .14s ease,
        box-shadow .14s ease;
}

.kzg-v4-sidebar .menu-categories li.menu > .dropdown-toggle > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kzg-v4-sidebar .menu-categories li.menu > .dropdown-toggle i:first-child {
    width: 20px;
    color: #925cff !important;
    font-size: 16px;
    text-align: center;
}

.kzg-v4-sidebar .menu-categories li.menu.kzg-ban-link > .dropdown-toggle i:first-child {
    color: #ff3857 !important;
}

.kzg-v4-sidebar .menu-categories li.menu > .dropdown-toggle span {
    font-size: 11px !important;
    font-weight: 600 !important;
}

.kzg-v4-sidebar .menu-categories li.menu > .dropdown-toggle:hover {
    background: rgba(77, 68, 153, .16) !important;
    border-color: rgba(103, 83, 190, .22) !important;
    transform: translateX(1px);
}

.kzg-v4-sidebar .menu-categories li.menu.active > .dropdown-toggle {
    color: #fff !important;
    background:
        linear-gradient(100deg, #7040f5 0%, #5f52f2 51%, #526dff 100%) !important;
    border-color: rgba(126, 101, 255, .82) !important;
    box-shadow:
        0 0 0 1px rgba(139, 94, 255, .12),
        0 7px 20px rgba(77, 56, 219, .33),
        inset 0 1px 0 rgba(255, 255, 255, .13) !important;
}

.kzg-v4-sidebar .menu-categories li.menu.active > .dropdown-toggle i,
.kzg-v4-sidebar .menu-categories li.menu.active > .dropdown-toggle span {
    color: #fff !important;
}

.kzg-v4-menu-count {
    display: none;
    min-width: 31px;
    margin-left: auto;
    padding: 3px 7px;
    color: #e9edf8;
    background: #273651;
    border: 1px solid rgba(127, 142, 184, .35);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.kzg-v4-menu-count.is-visible {
    display: inline-block;
}

.kzg-v4-menu-chevron {
    margin-left: auto;
    color: #8d78ee !important;
    font-size: 9px !important;
}

.kzg-v4-sidebar .submenu {
    margin: 3px 0 5px 31px !important;
    padding: 4px 0 4px 9px !important;
    border-left: 1px solid rgba(105, 84, 186, .24);
}

.kzg-v4-sidebar .submenu li a {
    min-height: 30px;
    padding: 6px 8px !important;
    color: #98a2b9 !important;
    background: transparent !important;
    border-radius: 5px !important;
    font-size: 9px !important;
}

.kzg-v4-sidebar .submenu li.active a,
.kzg-v4-sidebar .submenu li a:hover {
    color: #e7e2ff !important;
    background: rgba(102, 76, 191, .15) !important;
}

.kzg-v4-mini-alert {
    margin-left: 6px;
    padding: 2px 5px;
    color: #fff;
    background: var(--kzg-v4-red);
    border-radius: 999px;
    font-size: 7px;
}

.kzg-v4-sidebar-poster {
    position: absolute !important;
    z-index: 4 !important;
    left: 22px;
    bottom: 20px;
    pointer-events: none;
}

.kzg-v4-sidebar-brand-word {
    color: #f22343;
    font-size: 35px;
    font-style: italic;
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.04em;
    text-shadow: 0 5px 21px rgba(242, 35, 67, .20);
}

.kzg-v4-sidebar-brand-line {
    margin-top: 7px;
    color: #edf0f7;
    font-size: 7px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: .04em;
}

/* ============================================================
   DASHBOARD COMPOSITION
   ============================================================ */

body.kzg-dashboard-v4 .header-container {
    background: rgba(4, 9, 20, .74) !important;
    box-shadow: none !important;
}

.kzg-modern-dashboard {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1.56fr) minmax(390px, .84fr) !important;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 14px !important;
    width: 100%;
    max-width: 1740px !important;
    margin: 0 auto 30px !important;
    isolation: isolate;
}

body.kzg-dashboard-v4 .kzg-modern-dashboard::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    right: 0;
    width: 58%;
    height: 260px;
    border-radius: 0 9px 9px 0;
    background:
        linear-gradient(90deg, var(--kzg-v4-bg) 0%, rgba(5, 9, 20, .86) 17%, rgba(5, 9, 20, .26) 48%, rgba(5, 9, 20, .05) 100%),
        url("./kzg-v4/kzg-hero-banner-background.webp") right center / auto 100% no-repeat;
    box-shadow: inset -1px 0 0 rgba(111, 72, 239, .18);
    pointer-events: none;
}

body.kzg-dashboard-v4 .kzg-modern-dashboard::after {
    content: "";
    position: absolute;
    z-index: -3;
    top: 0;
    right: 0;
    width: 61%;
    height: 260px;
    background:
        radial-gradient(circle at 82% 50%, rgba(209, 24, 52, .18), transparent 36%),
        linear-gradient(90deg, transparent, rgba(75, 38, 150, .05));
    pointer-events: none;
}

.kzg-modern-hero {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    position: relative;
    min-height: 91px !important;
    margin: 0 !important;
    padding: 11px 9px 6px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.kzg-modern-hero::before,
.kzg-modern-hero::after,
.kzg-modern-hero-logo {
    display: none !important;
}

.kzg-v4-heading {
    display: flex;
    align-items: center;
    max-width: none !important;
    min-height: 70px;
}

.kzg-v4-welcome-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-right: 16px;
    background:
        linear-gradient(145deg, rgba(26, 42, 76, .96), rgba(14, 23, 44, .96));
    border: 1px solid rgba(105, 79, 240, .74);
    border-radius: 13px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .25),
        0 0 18px rgba(90, 69, 232, .12);
}

.kzg-v4-welcome-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.kzg-v4-welcome-copy h1 {
    margin: 0 0 3px !important;
    color: #f8f9fc !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
}

.kzg-v4-welcome-copy h1 span {
    color: #a45cff;
}

.kzg-v4-crown {
    margin-left: 4px;
    color: #ffb84c;
    font-size: 19px;
}

.kzg-v4-welcome-copy p {
    margin: 0 !important;
    color: #a1acc1 !important;
    font-size: 11px !important;
}

.kzg-v4-dashboard-search {
    position: absolute;
    top: 16px;
    right: 320px;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 350px;
    height: 41px;
    padding: 0 13px;
    color: #8794ae;
    background: rgba(7, 17, 34, .84);
    border: 1px solid rgba(79, 100, 157, .44);
    border-radius: 7px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, .016),
        0 8px 24px rgba(0, 0, 0, .14);
    backdrop-filter: blur(8px);
}

.kzg-v4-dashboard-search input {
    width: 100%;
    color: #e5e9f2 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: 10px;
}

.kzg-v4-dashboard-search input::placeholder {
    color: #929db3;
}

.kzg-v4-community-brand {
    position: absolute;
    top: 70px;
    right: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.kzg-v4-community-brand strong {
    color: #7184a4;
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: .02em;
}

.kzg-v4-community-brand strong span {
    color: #e22c48;
}

.kzg-v4-community-brand small {
    margin-top: 3px;
    color: #7b89a3;
    font-size: 7px;
    letter-spacing: .25em;
}

/* ============================================================
   OVERVIEW / STATS
   ============================================================ */

.kzg-modern-overview {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-height: 140px;
    margin: 0 !important;
    padding: 0 !important;
}

body.kzg-dashboard-v4 .kzg-modern-overview > .note.note-primary {
    display: none !important;
}

.kzg-modern-stats {
    position: relative;
    z-index: 4;
    width: 73%;
    margin: 0 !important;
    padding: 0 8px 2px;
    gap: 11px;
}

.kzg-modern-stats > [class*="col-"] {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kzg-modern-stats .card {
    position: relative;
    height: 119px !important;
    min-height: 119px !important;
    margin: 0 !important;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(8, 21, 42, .94), rgba(8, 15, 31, .98)),
        url("./kzg-v4/kzg-stat-card-background.webp") center / cover no-repeat !important;
    border: 1px solid rgba(100, 73, 231, .62) !important;
    border-radius: 10px !important;
    box-shadow:
        0 12px 27px rgba(0, 0, 0, .27),
        0 0 15px rgba(100, 69, 232, .075),
        inset 0 1px 0 rgba(255, 255, 255, .026) !important;
}

.kzg-modern-stats .card::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    width: auto !important;
    height: auto !important;
    opacity: .13;
    background: url("./kzg-v4/kzg-hud-overlay-frame.webp") center / cover no-repeat !important;
    pointer-events: none;
}

.kzg-modern-stats .card-body {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 15px !important;
}

.kzg-modern-stats .card-body > .d-flex {
    align-items: center;
    width: 100%;
}

.kzg-modern-stats .fa-3x {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 59px !important;
    height: 59px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 25px !important;
}

.kzg-modern-stats .col-xl-3:nth-child(1) .fa-3x {
    color: #20b7ff !important;
    background: radial-gradient(circle, rgba(22, 168, 246, .28), rgba(10, 34, 61, .91) 67%) !important;
    box-shadow: 0 0 25px rgba(25, 164, 244, .24);
}

.kzg-modern-stats .col-xl-3:nth-child(2) .fa-3x {
    color: #ff405f !important;
    background: radial-gradient(circle, rgba(240, 49, 78, .29), rgba(53, 13, 33, .92) 67%) !important;
    box-shadow: 0 0 25px rgba(238, 49, 75, .24);
}

.kzg-modern-stats .col-xl-3:nth-child(3) .fa-3x {
    color: #09e486 !important;
    background: radial-gradient(circle, rgba(5, 190, 113, .30), rgba(7, 45, 39, .91) 67%) !important;
    box-shadow: 0 0 25px rgba(5, 183, 108, .22);
}

.kzg-modern-stats .col-xl-3:nth-child(4) .fa-3x {
    color: #8758ff !important;
    background: radial-gradient(circle, rgba(122, 78, 255, .28), rgba(30, 24, 67, .92) 67%) !important;
    box-shadow: 0 0 25px rgba(115, 73, 244, .22);
}

.kzg-modern-stats .text-end {
    margin-left: 14px;
    text-align: left !important;
}

.kzg-modern-stats h1 {
    margin: 0 0 1px !important;
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
}

.kzg-modern-stats p {
    margin: 0 !important;
    color: #e7eaf2 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.kzg-v4-stat-subline {
    display: block;
    margin-top: 6px;
    color: #9da8bd;
    font-size: 8px;
}

.kzg-v4-stat-subline span {
    color: #23da82;
    font-weight: 800;
}

.kzg-modern-stats .dash-active-stat {
    position: absolute !important;
    left: 88px !important;
    right: auto !important;
    top: auto !important;
    bottom: 14px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 3px 6px !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.kzg-modern-stats .badge-light-danger {
    color: #ff6a7e !important;
    background: rgba(195, 31, 59, .20) !important;
}

.kzg-modern-stats .badge-light-warning {
    color: #27df88 !important;
    background: rgba(5, 166, 96, .17) !important;
}

/* ============================================================
   MAIN DASHBOARD PANELS
   ============================================================ */

.kzg-modern-top-players {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

.kzg-modern-server-section {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin: 0 !important;
}

.kzg-modern-recent {
    grid-column: 2 !important;
    grid-row: 4 !important;
    margin: 0 !important;
}

.kzg-v4-feature-strip {
    grid-column: 1 / -1;
    grid-row: 5;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(73, 91, 151, .40);
    border-radius: 9px;
    background:
        linear-gradient(90deg, rgba(11, 23, 44, .98), rgba(11, 18, 37, .98)),
        url("./kzg-v4/kzg-main-content-panel-background.webp") center / cover no-repeat;
    box-shadow:
        0 10px 27px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .015);
}

.kzg-v4-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 12px;
    border-right: 1px solid rgba(67, 82, 132, .28);
}

.kzg-v4-feature:last-child {
    border-right: 0;
}

.kzg-v4-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 37px;
    height: 37px;
    color: #a26cff;
    background: rgba(76, 47, 169, .22);
    border: 1px solid rgba(112, 76, 239, .47);
    border-radius: 7px;
    box-shadow: 0 0 15px rgba(104, 67, 226, .12);
}

.kzg-v4-feature:nth-child(2) .kzg-v4-feature-icon {
    color: #3aa9ff;
}

.kzg-v4-feature:nth-child(3) .kzg-v4-feature-icon {
    color: #21da85;
}

.kzg-v4-feature:nth-child(4) .kzg-v4-feature-icon {
    color: #b15cff;
}

.kzg-v4-feature:nth-child(5) .kzg-v4-feature-icon {
    color: #ff506d;
}

.kzg-v4-feature strong {
    display: block;
    color: #d9c6ff;
    font-size: 9px;
    font-weight: 800;
}

.kzg-v4-feature small {
    display: block;
    margin-top: 3px;
    color: #8e9ab1;
    font-size: 7px;
    line-height: 1.35;
}

.kzg-modern-dashboard .chart-section {
    grid-column: 1 / -1 !important;
    grid-row: 6 !important;
    margin-top: 2px !important;
    background: transparent !important;
}

.kzg-modern-dashboard .card,
.kzg-modern-server-section > .card,
.kzg-modern-recent .card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(9, 21, 41, .97), rgba(7, 15, 31, .98)),
        url("./kzg-v4/kzg-main-content-panel-background.webp") center / cover no-repeat !important;
    border: 1px solid rgba(67, 89, 144, .42) !important;
    border-radius: 9px !important;
    box-shadow:
        0 12px 31px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .015) !important;
}

.kzg-modern-server-section > .card::before,
.kzg-modern-recent .card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background: url("./kzg-v4/kzg-hud-overlay-frame.webp") center / cover no-repeat;
}

.kzg-modern-server-section > .card {
    height: 100%;
    min-height: 440px !important;
}

.kzg-modern-recent > .row {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    margin: 0 !important;
    gap: 11px !important;
}

.kzg-modern-recent > .row > .col-md-6 {
    display: flex;
    flex: 1 1 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.kzg-modern-recent .card {
    width: 100%;
    margin: 0 !important;
    background:
        linear-gradient(145deg, rgba(8, 20, 40, .97), rgba(8, 15, 31, .98)),
        url("./kzg-v4/kzg-right-widget-panel-background.webp") center / cover no-repeat !important;
}

/* ============================================================
   PANEL HEADERS
   ============================================================ */

.kzg-v4-panel-header {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 60px !important;
    padding: 10px 13px !important;
    background: rgba(11, 24, 46, .88) !important;
    border-bottom: 1px solid rgba(61, 83, 132, .31) !important;
}

.kzg-v4-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kzg-v4-panel-title > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: #4ce05c;
    background: rgba(25, 140, 68, .12);
    border-radius: 7px;
    font-size: 14px;
}

.kzg-v4-panel-title .kzg-v4-red-icon {
    color: #ff3c5b !important;
    background: rgba(181, 35, 57, .14) !important;
}

.kzg-v4-panel-title .kzg-v4-purple-icon {
    color: #9b73ff !important;
    background: rgba(95, 62, 200, .15) !important;
}

.kzg-v4-panel-title h5 {
    margin: 0 0 2px !important;
    color: #f3f5fa !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: left !important;
}

.kzg-v4-panel-title small {
    display: block;
    color: #8f9cb4 !important;
    font-size: 8px;
}

.kzg-v4-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 31px;
    color: #c9b9ff !important;
    background: linear-gradient(145deg, #16284f, #171f47) !important;
    border: 1px solid rgba(74, 80, 216, .60) !important;
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    font-size: 8px;
    font-weight: 700;
    text-decoration: none !important;
}

.kzg-v4-view-all:hover {
    color: #fff !important;
    border-color: rgba(112, 79, 247, .80) !important;
    background: linear-gradient(145deg, #273260, #28255f) !important;
}

/* ============================================================
   SERVER TABLE
   ============================================================ */

.kzg-modern-server-section .card-body {
    position: relative;
    z-index: 2;
    padding: 10px 13px 13px !important;
}

.kzg-modern-server-section .table {
    margin: 0 !important;
}

.kzg-modern-server-section .table thead th {
    padding: 9px 10px !important;
    color: #aab4c7 !important;
    background: #172743 !important;
    border: 0 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .025em !important;
}

.kzg-modern-server-section .table thead th:first-child {
    border-radius: 5px 0 0 5px;
}

.kzg-modern-server-section .table thead th:last-child {
    border-radius: 0 5px 5px 0;
}

.kzg-modern-server-section .table tbody tr {
    background: transparent !important;
    border-bottom: 1px solid rgba(55, 70, 105, .13) !important;
}

.kzg-modern-server-section .table tbody tr:hover {
    background: rgba(36, 50, 80, .40) !important;
    box-shadow: none !important;
}

.kzg-modern-server-section .table tbody td {
    padding: 10px !important;
    color: #e6e9f2 !important;
    font-size: 9px !important;
    vertical-align: middle;
}

.kzg-modern-server-section .btn {
    min-width: 68px;
    padding: 6px 10px !important;
    border-radius: 5px !important;
    font-size: 9px !important;
}

.kzg-v4-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
}

.kzg-v4-online {
    color: #fff;
    background: #04ae68;
    box-shadow: 0 0 14px rgba(4, 174, 104, .24);
}

.kzg-v4-offline {
    color: #fff;
    background: #e62f4b;
    box-shadow: 0 0 13px rgba(230, 47, 75, .20);
}

.kzg-v4-action-dash {
    color: #7a879e;
    font-size: 14px;
}

/* ============================================================
   RECENT TABLES
   ============================================================ */

.kzg-modern-recent .card-body {
    position: relative;
    z-index: 2;
    padding: 5px 10px 9px !important;
}

.kzg-modern-recent .table {
    margin: 0 !important;
}

.kzg-modern-recent .table thead th {
    padding: 6px !important;
    color: #a7b0c4 !important;
    background: #172743 !important;
    border: 0 !important;
    font-size: 7px !important;
    letter-spacing: .035em !important;
}

.kzg-modern-recent .table tbody td {
    padding: 6px !important;
    color: #e4e8f0 !important;
    border-bottom: 1px solid rgba(54, 69, 102, .10) !important;
    font-size: 8px !important;
    line-height: 1.15;
}

.kzg-modern-recent .table th:nth-child(5),
.kzg-modern-recent .table td:nth-child(5) {
    display: none !important;
}

.kzg-modern-recent .badge {
    padding: 3px 5px !important;
    border-radius: 4px !important;
    font-size: 7px !important;
}

/* ============================================================
   GLOBAL CARDS / TABLES / FORMS
   ============================================================ */

.card,
.widget,
.modal-content {
    background:
        linear-gradient(145deg, rgba(10, 19, 38, .98), rgba(8, 14, 29, .98)),
        url("./kzg-v4/kzg-main-content-panel-background.webp") center / cover no-repeat !important;
    border-color: rgba(72, 88, 145, .34) !important;
    border-radius: 9px !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .23),
        inset 0 1px 0 rgba(255, 255, 255, .013) !important;
}

.card-header {
    background: rgba(13, 25, 47, .92) !important;
    border-bottom-color: rgba(72, 84, 136, .26) !important;
}

.table,
table.dataTable {
    color: #e4e8f2 !important;
}

.table thead th,
table.dataTable thead th {
    color: #a2adc2 !important;
    background: #172640 !important;
    border-bottom: 0 !important;
}

.table tbody tr,
table.dataTable tbody tr {
    background: transparent !important;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: rgba(37, 50, 78, .35) !important;
}

.form-control,
.form-select,
select,
.dataTables_wrapper input,
.dataTables_wrapper select {
    color: #e6eaf3 !important;
    background-color: #0c172a !important;
    border: 1px solid rgba(82, 97, 151, .41) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.dataTables_wrapper input:focus {
    border-color: rgba(106, 80, 236, .74) !important;
    box-shadow: 0 0 0 3px rgba(94, 71, 219, .10) !important;
}

.btn {
    border-radius: 5px !important;
}

.btn-success {
    background: #04ad68 !important;
    border-color: #05bb70 !important;
}

.btn-danger {
    background: #e62f4b !important;
    border-color: #f03956 !important;
}

.btn-primary {
    background: linear-gradient(100deg, #713ef3, #5661ff) !important;
    border-color: rgba(116, 84, 248, .76) !important;
}

/* ============================================================
   DATATABLES / PAGINATION
   ============================================================ */

.dataTables_wrapper,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #9ca8bf !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: #9ca8bf !important;
    font-size: 10px !important;
}

.pagination {
    gap: 3px;
}

.pagination .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
    padding: 0 8px !important;
    margin: 0 1px !important;
    color: #aeb8ce !important;
    background: #0e192e !important;
    border: 1px solid rgba(79, 92, 145, .37) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 9px !important;
}

.pagination .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    background: linear-gradient(100deg, #6d3cf0, #5661ff) !important;
    border-color: rgba(117, 85, 247, .80) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    background: rgba(86, 96, 255, .19) !important;
}

.progress {
    height: 6px !important;
    background: rgba(255, 255, 255, .07) !important;
    border-radius: 999px !important;
}

.progress-bar {
    border-radius: 999px !important;
    background: #745af5 !important;
}

.badge {
    border-radius: 5px !important;
}

/* ============================================================
   CHARTS
   ============================================================ */

.kzg-modern-dashboard .chart-section {
    padding-top: 8px !important;
}

.kzg-modern-dashboard .chart-section .card {
    min-height: 360px;
}

.apexcharts-gridline {
    stroke: rgba(86, 99, 145, .15) !important;
}

.apexcharts-text,
.apexcharts-legend-text {
    fill: #7f8aa4 !important;
    color: #7f8aa4 !important;
}

.footer-wrapper {
    color: #5f697f !important;
    border-top-color: rgba(68, 80, 124, .12) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1360px) {
    .kzg-modern-dashboard {
        grid-template-columns: minmax(0, 1.42fr) minmax(350px, .82fr) !important;
    }

    .kzg-modern-stats {
        width: 77%;
    }

    .kzg-v4-dashboard-search {
        right: 225px;
        width: 300px;
    }
}

@media (max-width: 1100px) {
    .kzg-modern-stats {
        width: 84%;
    }

    .kzg-v4-community-brand {
        display: none;
    }
}

@media (max-width: 991px) {
    .kzg-modern-dashboard {
        display: block !important;
    }

    body.kzg-dashboard-v4 .kzg-modern-dashboard::before,
    body.kzg-dashboard-v4 .kzg-modern-dashboard::after {
        width: 100%;
        opacity: .28;
    }

    .kzg-modern-dashboard > section,
    .kzg-v4-feature-strip {
        margin-bottom: 12px !important;
    }

    .kzg-modern-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        padding: 0;
    }

    .kzg-v4-dashboard-search {
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: 12px;
    }

    .kzg-v4-heading {
        flex-wrap: wrap;
    }

    .kzg-modern-recent > .row {
        display: block !important;
    }

    .kzg-modern-recent > .row > .col-md-6 {
        margin-bottom: 10px;
    }

    .kzg-v4-feature-strip {
        grid-template-columns: 1fr 1fr;
    }

    .kzg-v4-feature:nth-child(even) {
        border-right: 0;
    }

    .kzg-v4-sidebar-poster {
        display: none;
    }

    .kzg-v4-sidebar .menu-categories {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 620px) {
    .kzg-modern-stats {
        grid-template-columns: 1fr;
    }

    .kzg-v4-feature-strip {
        grid-template-columns: 1fr;
    }

    .kzg-v4-feature {
        border-right: 0;
        border-bottom: 1px solid rgba(67, 82, 132, .28);
    }

    .kzg-v4-feature:last-child {
        border-bottom: 0;
    }

    .kzg-v4-welcome-avatar {
        width: 50px;
        height: 50px;
    }

    .kzg-v4-welcome-copy h1 {
        font-size: 20px !important;
    }
}
