@charset "UTF-8";
/* Light Mode */
:root {
    /* Font */
    --font: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
    /* B & W */
    --black-color: #000;
    --white-color: #fff;
    /* Body */
    --body-bg: #f8f8fd;
    --body-text: #12121e;
    /* Primary */
    --primary: #DF1C5A;
    --primary-dark: #8B0037;
    /* Black Shade */
    --black-03: rgba(0, 0, 0, 0.03);
    --black-004: rgba(0, 0, 0, 0.04);
    --black-010: rgba(0, 0, 0, 0.10);
    --black-14: rgba(0, 0, 0, 0.14);
    /* White Shade */
    --wht-10: rgba(255, 255, 255, 0.10);
    --wht-18: rgba(255, 255, 255, 0.18);
    --wht-22: rgba(255, 255, 255, 0.22);
    --wht-58: rgba(255, 255, 255, 0.58);
    /* Primary Shade */
    --red-00: rgba(223, 28, 90, 0.00);
    --red-04: rgba(223, 28, 90, 0.04);
    --red-06: rgba(223, 28, 90, 0.06);
    --red-08: rgba(223, 28, 90, 0.08);
    --red-14: rgba(223, 28, 90, 0.14);
    --red-15: rgba(223, 28, 90, 0.15);
    --red-20: rgba(223, 28, 90, 0.20);
    --red-25: rgba(223, 28, 90, 0.25);
    --red-28: rgba(223, 28, 90, 0.28);
    --red-35: rgba(223, 28, 90, 0.35);
    --red-38: rgba(223, 28, 90, 0.38);
    --red-52: rgba(223, 28, 90, 0.52);
    --pink-a88: rgba(223, 28, 90, 0.88);
    /* Other */
    --foot-col: rgba(18,18,30,0.50);
    --t-label: rgba(18,18,30,0.44);
    --t1: #12121e;
    --core-color: 18, 18, 30;
    --t2: rgba(18, 18, 30, 0.60);
    --t3: rgba(18, 18, 30, 0.32);
    --brand-bg: #0e0e0e;
    --form-bg: #f8f8fd;
    /* Easing */
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-o: cubic-bezier(0.22, 1, 0.36, 1);
    /* ----------------------- */
    --body-color: #050B2C;
    --primary-color: #DF1C5A;
    --green-color: #058f00;
    --red-color: #e3000b;
    --info-color: #17a2b8;
    /* Sidebar */
    --assest-color: #ffffff;
    --primary-dark-color: #8B0037;
    /* ── Admin Panel Tokens (light default) ───────────────────── */
    /* Brand aliases — map to existing common vars */
    --red: var(--primary);
    /* ── Dashboard gradient palette ─────────────────────────── */
    --mk-c-primary: linear-gradient(150deg, #DF1C5A, #8B0037);
    --mk-c-blue: linear-gradient(150deg, #1A73E8, #0D47A1);
    --mk-c-purple: linear-gradient(150deg, #7C4DFF, #4527A0);
    --mk-c-orange: linear-gradient(150deg, #F57C00, #C65100);
    --mk-c-teal: linear-gradient(150deg, #00897B, #00564F);
    --mk-c-sky: linear-gradient(150deg, #039BE5, #01579B);
    --mk-c-pink: linear-gradient(150deg, #E91E63, #AD1457);
    --mk-c-green: linear-gradient(150deg, #43A047, #1B5E20);
    --mk-c-indigo: linear-gradient(150deg, #5C6BC0, #283593);
    --mk-c-amber: linear-gradient(150deg, #FB8C00, #E65100);
    --mk-c-cyan: linear-gradient(150deg, #00ACC1, #006064);
    --red-dim: var(--red-14);
    --red-faint: var(--red-06);
    /* Page / card surfaces */
    --pg-bg: #edf0f7;
    --sb-bg: #ffffff;
    --hd-bg: #ffffff;
    --card-bg: #ffffff;
    --card-el: #f3f5fb;
    /* Borders */
    --bdr: rgba(0,0,0,.08);
    --bdr-md: rgba(0,0,0,.14);
    --bdr-str: rgba(0,0,0,.22);
    /* Surface overlays */
    --surf: rgba(0,0,0,.03);
    --surf-md: rgba(0,0,0,.055);
    --surf-hv: rgba(0,0,0,.08);
    /* Shadows (light — soft) */
    --card-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
    --icon-shadow: 0 4px 12px var(--red-14);
    /* Shape */
    --r: 10px;
    --r-sm: 7px;
    --r-lg: 18px;
}

/* Dark Mode */
[data-theme="dark"] {
    /* B & W */
    --black-color: #000;
    --white-color: #fff;
    /* Body */
    --body-bg: #050505;
    --body-text: #f5f5f5;
    /* Primary */
    --primary: #DF1C5A;
    --primary-dark: #8B0037;
    /* Black Shade */
    --black-03: rgba(255, 255, 255, 0.03);
    --black-004: rgba(255, 255, 255, 0.04);
    --black-010: rgba(255, 255, 255, 0.10);
    --black-14: rgba(255, 255, 255, 0.14);
    /* Other */
    --foot-col: rgba(245, 245, 245, 0.28);
    --t-label: rgba(245, 245, 245, 0.40);
    --t1: #f5f5f5;
    --core-color: 245, 245, 245;
    --t2: rgba(245,245,245,0.58);
    --t3: rgba(245, 245, 245, 0.28);
    --brand-bg: #06070b;
    --form-bg: #050505;
    --body-color: #f5f5f5;
    --primary-color: #DF1C5A;
    --primary-dark-color: #8B0037;
    --assest-color: #111218;
    /* ── Admin Panel Tokens (dark overrides) ───────────────────── */
    /* Page / card surfaces */
    --pg-bg: #090a10;
    --sb-bg: #0c0d13;
    --hd-bg: #0d0e16;
    --card-bg: #111218;
    --card-el: #181b24;
    /* Borders */
    --bdr: rgba(255,255,255,.07);
    --bdr-md: rgba(255,255,255,.12);
    --bdr-str: rgba(255,255,255,.20);
    /* Surface overlays */
    --surf: rgba(255,255,255,.04);
    --surf-md: rgba(255,255,255,.07);
    --surf-hv: rgba(255,255,255,.09);
    /* Shadows (dark — deeper) */
    --card-shadow: 0 4px 24px rgba(0,0,0,.40), 0 1px 4px rgba(0,0,0,.20);
    --icon-shadow: 0 6px 20px var(--red-14);
}

html,
body {
    height: 100%;
    overflow: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-size: 14px;
    overflow-x: hidden;
    background-color: var(--body-bg)!important;
    color: var(--body-color) !important;
    -webkit-font-smoothing: antialiased;
    transition: background 0.35s, color 0.35s;
}

.mk-page {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
}

a {
    text-decoration: none !important;
}

.primary-color {
    color: var(--primary-color);
}

.text-gray {
    color: var(--body-color);
    opacity: 0.6;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0;
}

.btn-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
    padding: 0 0 0px;
    border-radius: 0;
    font-size: 14px;
}

.btn-default {
    background: var(--primary-color);
    border-radius: 20px 0px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 2px solid transparent;
    transition: all 0.3s;
    padding: 8px 20px;
}

.btn-default:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

.mw-120 {
    min-width: 120px;
}

.dropright .dot-icon {
    height: 18px;
}

.dropright .dropdown-menu {
    top: 100% !important;
    right: 0;
    transform: none !important;
    left: auto !important;
}

.dropdown-menu {
    box-shadow: 0 15px 35px var(--assest-color);
    padding: 4px;
    border: 0;
    border-radius: 12px;
}

.dropdown-menu .dropdown-item {
    font-weight: 500;
    border-bottom: 2px dashed var(--assest-color);
    padding: 7px 11px;
    font-size: 14px;
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom: 0;
}

.side-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: transparent;
    padding: 0;
}

.side-toggle span {
    background: var(--primary-color);
    width: 22px;
    height: 3px;
    margin: 2px;
    border-radius: 50px;
}

.side-toggle span:nth-child(2) {
    width: 26px;
}

.custom-control .custom-control-label::before {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
}

.custom-control .custom-control-input:checked~.custom-control-label::after {
    border-radius: 3px;
    background-color: var(--primary-color);
}

.custom-control.custom-radio .custom-control-label::before,
.custom-control.custom-radio .custom-control-label:after {
    border-radius: 50% !important;
}

.sidebar {
    background: var(--sb-bg);
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 280px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(0px);
    transition: background 280ms ease, border-color 280ms ease, all 0.3s;
    border-right: 1px solid var(--bdr);
    box-shadow: 2px 0 16px var(--black-004);
}

@media (min-width: 1680px) {
    .sidebar {
        width: 300px;
    }
}

.sidebar.hide-sidebar {
    width: 80px;
    padding: 0;
}

@media (min-width: 1024px) {
    .sidebar.hide-sidebar .side-menu .partition {
        display: none;
    }
    .sidebar.hide-sidebar .side-head {
        padding: 0 6px;
        gap: 4px;
        justify-content: center;
    }
    .sidebar.hide-sidebar .sb-name {
        display: none;
    }
    .sidebar.hide-sidebar .side-logo {
        flex: 0 0 auto;
        width: auto;
        overflow: visible;
    }
    .sidebar.hide-sidebar .partition,
    .sidebar.hide-sidebar .side-menu a > span {
        display: none;
    }
    .sidebar.hide-sidebar .side-menu .active a:after {
        content: none;
    }
    .sidebar.hide-sidebar .side-menu a {
        margin: 2px auto;
        padding: 10px;
        width: 46px;
        height: 46px;
        gap: 0;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    .sidebar.hide-sidebar .side-menu a .menu-icon {
        margin-right: 0;
    }
    .sidebar.hide-sidebar .side-menu a.dropdown-toggle:after {
        content: none;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu {
        margin-left: 0;
        min-width: unset;
        padding: 0;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu a {
        padding: 0;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu .active {
        padding: 0;
        margin: 0px;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu a svg {
        margin-right: 0;
    }
    .sidebar.hide-sidebar .side-menu .dropdown-menu.side-submenu {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
}

@media (min-width: 1680px) {
    .sidebar.hide-sidebar .side-head {
        padding: 0 6px;
    }
}

.sidebar .side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    min-height: 64px;
    border-bottom: 1px solid var(--bdr);
    gap: 8px;
    /* pin to top — never scrolls */
    flex-shrink: 0;
    background: var(--sb-bg);
    transition: background 280ms ease, border-color 280ms ease;
    z-index: 2;
}

.sidebar .side-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
    color: var(--body-color);
    width: auto;
}

.sb-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

.sidebar .side-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: var(--black-004);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sidebar .side-toggle:hover {
    background: var(--red-08) !important;
}

.sidebar .side-menu {
    padding: 10px 10px;
    list-style: none;
    margin: 0;
    /* fills remaining sidebar height and scrolls */
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .side-menu::-webkit-scrollbar {
    width: 3px;
}

.sidebar .side-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color, var(--primary-dark-color));
    border-radius: 999px;
}

.sidebar .side-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .side-menu a {
    color: var(--t2);
    display: block;
    padding: 9px 12px;
    position: relative;
    margin: 1px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    gap: 10px;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar.hide-sidebar .side-menu .side_line.active a:after {
    display: none;
}

.sidebar .side-menu .side_line.active a:after {
    display: none;
}

.sidebar .side-menu a .menu-icon {
    margin-right: 0;
}

.sidebar .side-menu .side-menu-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.sidebar .side-menu .active a .side-menu-badge {
    background: var(--white-color);
    color: var(--primary);
}

.sidebar .side-menu .dropdown-menu a .submenu-icon {
    margin-right: 0;
}

.sidebar .side-menu a:hover {
    background: var(--red-06);
    color: var(--primary);
}

.sidebar .side-menu .active a {
    background: var(--primary-color);
    border-radius: 8px;
    color: var(--white-color);
    font-weight: 600;
}

.sidebar .side-menu .active a .menu-icon {
    filter: brightness(0) invert(1);
}

.sidebar .side-menu .active .dropdown-menu .active .submenu-icon {
    filter: brightness(0) invert(1);
}

.sidebar .side-menu .dropdown-toggle::after {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
    vertical-align: middle;
}

.sidebar .side-menu .dropdown-menu {
    position: relative !important;
    transform: none !important;
    box-shadow: none;
    float: none;
    background: transparent;
    margin-left: 0;
}

.sidebar .side-menu .dropdown-menu.side-submenu {
    margin-left: 16px;
    padding-left: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 0;
    margin-top: 2px;
    border-left: 2px solid var(--primary);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar .side-menu .dropdown-menu .dropdown-item {
    padding: 4px 12px;
    background: transparent !important;
}

.sidebar .side-menu .side-submenu .side_line {
    background: transparent;
    border: none;
    padding: 0;
    margin: 1px 0;
    border-radius: 0;
}

.sidebar .side-menu .side-submenu .dropdown-item {
    padding: 8px 10px;
    border-radius: 7px;
    border-bottom: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: normal;
}

.sidebar .side-menu .side-submenu .dropdown-item:hover {
    background: var(--red-06);
    color: var(--primary);
}

.sidebar .side-menu .side-submenu .submenu-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    color: inherit;
    transition: color 0.18s ease;
}

.right-content {
    margin-left: 280px;
    transition: all 0.3s;
}

.sidebar .side-menu .side-submenu a {
    color: var(--t2);
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.sidebar .side-menu .side-submenu .active {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.sidebar .side-menu .side-submenu .active .dropdown-item {
    background: var(--primary-color) !important;
    color: var(--white-color);
    border-radius: 7px;
    font-weight: 600;
}

.sidebar .side-menu .side-submenu .active .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.sidebar .side-menu .side-submenu .active .submenu-icon {
    color: var(--white-color);
}

.sidebar .side-menu .side-submenu a:hover {
    color: var(--primary);
}

.sidebar .side-menu .side-submenu .active a:hover {
    color: var(--white-color);
}

.sidebar .side-menu .side-submenu .active a {
    color: var(--white-color);
}

@media (min-width: 1680px) {
    .right-content {
        margin-left: 300px;
    }
}

.right-content.right-content-0 {
    margin-left: 80px;
}

.right-content.right-content-0 .header .title-control .side-toggle {
    display: none;
}

@keyframes saHdrEnter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes saDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    position: sticky;
    top: 0;
    background: var(--hd-bg);
    backdrop-filter: blur(8px);
    z-index: 22;
    padding: 0 24px !important;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bdr);
    box-shadow: 0 1px 8px var(--surf);
    transition: background 280ms ease, border-color 280ms ease;
    animation: saHdrEnter 0.32s var(--ease-o) both;
}

@media (min-width: 1680px) {
    .header {
        padding: 0 36px 0 25px !important;
    }
}

.header .title-control {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header .title-control .side-toggle {
    margin-right: 15px;
    display: none;
}

.header .page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    animation: mkFadeLeftRight .4s var(--ease-o) .05s both;
}

@keyframes mkFadeLeftRight {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header .input-group {
    border: 1px solid var(--assest-color);
    border-radius: 100px;
    width: 550px;
    max-width: 100%;
}

.header .input-group .input-group-text,
.header .input-group .form-control {
    background: transparent;
    border: 0;
    box-shadow: 0 0 0;
}

.header .input-group .input-group-text img,
.header .input-group .form-control img {
    width: 20px;
    margin: 0 5px;
}

.header .input-group .form-control {
    font-size: 14px;
    padding: 12px 6px;
}

.header .side-logo {
    display: none;
}

.header .head-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.header .head-control .head-btn,
.header .head-control .hdr-btn {
    appearance: none;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 10px;
    background: var(--black-004);
    border: 1px solid var(--red-08);
    color: var(--primary);
    cursor: pointer;
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.header .head-control .head-btn:hover,
.header .head-control .hdr-btn:hover {
    background: var(--red-08);
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--red-14);
    transform: translateY(-1px);
}

.header .head-control .head-btn:active,
.header .head-control .hdr-btn:active {
    transform: scale(0.96);
    box-shadow: none;
}

.header .head-control .head-btn i,
.header .head-control .hdr-btn i {
    font-size: 20px;
}

.header .head-control .show > .hdr-btn,
.header .head-control .hdr-btn[aria-expanded="true"] {
    background: var(--red-08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--red-14);
    outline: none !important;
}

.header .side-logo h3 {
    color: var(--primary-dark-color);
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.header .dropdown-menu {
    min-width: 160px;
    border: 1px solid var(--bdr);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    padding: 6px;
    margin-top: 8px !important;
    animation: saDropIn 0.18s var(--ease-o) both;
}

.header .dropdown-menu .dropdown-item,
.header .dropdown-menu .hdr-dd-item {
    border-radius: 6px;
    border-bottom: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.header .dropdown-menu .dropdown-item:hover,
.header .dropdown-menu .hdr-dd-item:hover {
    background: var(--red-08);
    color: var(--primary);
}

.header .dropdown-menu .hdr-dd-item.active {
    background: var(--red-08);
    color: var(--primary);
}

.hdr-lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--red-08);
    border: 1px solid var(--red-14);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--primary);
}

.hdr-dd-item.active .hdr-lang-badge {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.body-content {
    padding: 25px;
}

/* ── Premium table ─────────────────────────────────────────────── */
@keyframes saRowIn {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sa-row-animate {
    animation: saRowIn 0.38s var(--ease-o) both;
}

.table-responsive {
    border-radius: var(--r);
    overflow: hidden;
    animation: dbFadeUp 0.45s var(--ease-o) 0.22s both;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: var(--surf);
}

.table {
    border-color: var(--bdr);
    color: var(--body-color);
    min-width: 650px;
}

.table thead tr {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 2px solid var(--primary-dark);
}

.table thead th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 12px;
    border-top: 0;
    border-bottom: none;
    background: transparent;
    color: var(--white-color) !important;
}

.table td {
    font-size: 14px;
    padding: 12px;
    border-bottom: 1px solid var(--bdr) !important;
    border-top: 0;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.table tbody tr:hover {
    background: var(--red-06) !important;
    box-shadow: inset 3px 0 0 var(--primary);
}

.table .btn {
    padding: 2px;
    background: transparent;
    margin: 0 3px;
}

.table .btn img {
    width: 16px;
}

.table tfoot {
    background-color: var(--surf);
}

.custom-tabs {
    margin: 20px 0;
    background: var(--card-el);
    border-radius: 100px;
}

.custom-tabs li.nav-item {
    flex: 1;
    text-align: center;
}

.custom-tabs .nav-link {
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    padding: 10px;
}

.custom-tabs .nav-link.active {
    background: var(--primary-color);
}

@keyframes tabItemIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-tabs li.nav-item {
    animation: tabItemIn 0.4s var(--ease-o) both;
}

.custom-tabs li.nav-item:nth-child(1) {
    animation-delay: 0.03s;
}

.custom-tabs li.nav-item:nth-child(2) {
    animation-delay: 0.07s;
}

.custom-tabs li.nav-item:nth-child(3) {
    animation-delay: 0.11s;
}

.custom-tabs li.nav-item:nth-child(4) {
    animation-delay: 0.15s;
}

.custom-tabs li.nav-item:nth-child(5) {
    animation-delay: 0.19s;
}

.custom-tabs li.nav-item:nth-child(6) {
    animation-delay: 0.23s;
}

.custom-tabs li.nav-item:nth-child(7) {
    animation-delay: 0.27s;
}

.custom-tabs li.nav-item:nth-child(8) {
    animation-delay: 0.31s;
}

.page-search {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 7px;
    animation: dbFadeUp 0.45s var(--ease-o) 0.14s both;
}

.page-search .input-group-text,
.page-search .form-control {
    border: 0;
    color: var(--body-color);
    box-shadow: 0 0 0;
    font-size: 14px;
}

.page-search .input-group-text img,
.page-search .form-control img {
    width: 20px;
}

.page-search .sorting {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 4px 0px 4px 12px;
}

.page-search .sorting label {
    min-width: 60px;
    margin: 0;
    font-weight: 600;
}

.image-zoom {
    cursor: pointer;
}

#ImagePreviewModal .modal-body img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--r);
}

.table-image {
    border-radius: 8px;
    object-fit: cover;
    height: 55px;
    width: 55px;
    border: 1px solid var(--bdr);
    box-shadow: 0 2px 8px var(--black-004);
    transition: transform 0.2s var(--spring), box-shadow 0.2s ease;
}

.table tbody tr:hover .table-image {
    transform: scale(1.08);
    box-shadow: 0 4px 14px var(--red-14);
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 3px solid var(--bdr) !important;
    margin: 15px 0;
    transition: all 0.2s;
}

.video-card:hover {
    border: 3px solid var(--primary-color) !important;
}

.video-card:hover .overlap-control,
.video-card:hover .play-btn-top {
    display: block;
}

.video-card .card-img-top {
    border-radius: 11px 11px 0px 0px;
    height: 100px;
    object-fit: fill;
}

.video-card .card-body {
    padding: 10px 10px !important;
    position: relative;
}

.video-card .card-body .dropdown {
    position: absolute;
    right: 10px;
    top: 10px;
}

.video-card .card-body .dropdown .dropdown-menu {
    top: auto !important;
    bottom: 100%;
}

.video-card .card-body .dropdown .head-btn {
    padding: 5px;
    transform: rotate(90deg);
}

.video-card .card-body .dropdown .dropdown-item {
    font-weight: 500;
}

.video-card .card-body .dropdown .dropdown-item img {
    height: 18px;
    width: 18px;
    object-fit: contain;
    margin-right: 10px;
}

.video-card .card-body .card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px !important;
    max-height: 40px !important;
}

.table_description {
    text-align: left;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .play-btn-top {
    position: absolute;
    right: 00px;
    top: 00px;
    background: transparent;
    padding: 0;
    display: none;
}

.video-card .play-btn-top img {
    width: 45px;
}

.video-card .overlap-control {
    position: absolute;
    right: 10px;
    bottom: -5px;
    display: none;
}

.video-card .overlap-control .btn {
    background: var(--assest-color);
    padding: 2px 6px;
}

.video-card .overlap-control .btn .dot-icon {
    height: 16px;
    width: 16px;
    object-fit: contain;
    color: var(--primary-color) !important;
}

.pagination {
    padding: 5px;
    border: 1px solid var(--bdr);
    display: inline-flex;
    border-radius: 10px;
    margin: 35px auto 0;
    background-color: var(--card-bg);
}

.pagination .page-link {
    border: 0;
    height: 30px;
    width: 30px;
    background: var(--surf) !important;
    margin: 0 5px;
    border-radius: 50px !important;
    color: var(--body-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .active .page-link {
    background: var(--primary-color) !important;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--bdr);
    color: var(--body-color);
}

.modal-header,
.modal-footer {
    border-color: var(--bdr);
}

.modal-title {
    color: var(--body-color);
}

.modal .close {
    font-size: 34px;
    color: var(--body-color);
    opacity: 0.6;
    position: absolute;
    right: 5px;
    top: 0px;
    font-weight: 200;
    z-index: 22;
    outline: none;
    transition: opacity 0.15s ease;
}

.modal .close:hover {
    opacity: 1;
}

.inline-tabs {
    display: inline-flex;
    position: relative;
    z-index: 2;
}

.inline-tabs li.nav-item {
    flex: none;
}

.inline-tabs .nav-link {
    padding: 10px 35px;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-faint) 60%, transparent 100%);
}

.form-group label {
    font-weight: 500;
    color: var(--body-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.form-control {
    border: 1px solid var(--assest-color);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    height: auto !important;
}

.form-control:focus {
    box-shadow: 0 0 0;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    margin-bottom: 20px;
}

.radio-group .custom-control {
    padding-left: 0;
    margin-right: 15px;
}

.radio-group .custom-control-label {
    margin-bottom: 0;
    background: var(--card-el);
    padding: 6px 23px 6px 33px;
    border-radius: 100px;
    font-size: 16px;
}

.radio-group .custom-control-label::before,
.radio-group .custom-control-label:after {
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.radio-group .custom-control-label:after {
    display: none;
}

.radio-group .custom-control-label::before {
    background: transparent;
    border: 3px solid var(--body-color);
}

.radio-group .custom-control-input:checked~.custom-control-label {
    background: var(--primary-color);
    color: var(--white-color);
}

.radio-group .custom-control-input:checked~.custom-control-label::before {
    background: var(--primary-color);
    border-color: var(--white-color);
}

.page-title-sm {
    display: none;
}

.border-bottom {
    border-color: var(--assest-color) !important;
}

table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:before {
    content: "↑";
}

table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:after {
    content: "↓";
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg) !important;
    border: 1px solid var(--bdr);
    color: var(--body-color);
    border-radius: 8px;
    padding: 6px 18px;
    font-weight: 600;
}

div.dataTables_wrapper div.dataTables_length label .form-control,
div.dataTables_wrapper div.dataTables_filter label .form-control {
    padding: 6px 12px;
    text-align: center;
    margin: 0 13px;
    background-color: var(--surf) !important;
    color: var(--body-color);
    border-color: var(--bdr);
}

div.dataTables_wrapper div.dataTables_length label input.form-control,
div.dataTables_wrapper div.dataTables_filter label input.form-control {
    margin-right: 0;
    text-align: left;
}

div.dataTables_wrapper div.dataTables_length label select.form-control option {
    background-color: var(--card-bg);
    color: var(--body-color);
}

div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child,
div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
    overflow: auto;
}

@media (min-width: 1600px) {
    .table thead th,
    .table td {
        font-size: 16px;
    }
    .custom-tabs .nav-link {
        font-size: 16px;
    }
    .video-card .card-img-top {
        height: 250px;
    }
    .video-card .card-body .card-title {
        font-size: 16px;
    }
    .video-card .play-btn-top img {
        width: 60px;
    }
    .form-group label {
        font-size: 16px;
    }
    .custom-border-card .card-header {
        font-size: 20px;
    }
}

@media (max-width: 1280px) {
    .header .input-group {
        width: 280px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        left: -280px;
    }
    .sidebar .side-head {
        min-height: 56px;
    }
    .sidebar.hide-sidebar {
        transform: translateX(0);
        left: 0;
        z-index: 99;
        width: 280px;
    }
    .sidebar.hide-sidebar .side-toggle span:first-child {
        transform: rotate(45deg);
    }
    .sidebar.hide-sidebar .side-toggle span:nth-child(2) {
        display: none;
    }
    .sidebar.hide-sidebar .side-toggle span:last-child {
        transform: rotate(-45deg);
        margin-top: -5px;
    }
    .right-content {
        margin-left: 0 !important;
    }
    .right-content .page-title {
        display: none;
    }
    .header {
        padding: 0 16px;
        min-height: 56px;
    }
    .header .title-control .side-toggle {
        display: flex !important;
    }
    .header .side-logo {
        display: block;
        width: 160px;
    }
    .page-title-sm {
        font-size: 26px;
        font-weight: 600;
        margin: -10px 0 20px;
        display: block;
        border-bottom: 1px solid var(--assest-color);
        padding-bottom: 5px;
    }
}

@media (max-width: 767px) {
    .btn-default {
        font-size: 14px;
    }
    .header .input-group {
        height: 45px;
        width: 45px;
        border-radius: 5px;
    }
    .header .input-group .input-group-text {
        padding: 7px;
    }
    .header .input-group .form-control {
        display: none;
    }
    .table th,
    .table td {
        padding: 8px 5px;
    }
    .pagination {
        margin-top: 20px;
    }
    .inline-tabs {
        flex-wrap: nowrap;
        overflow: auto;
        margin-top: 0;
    }
    .inline-tabs::-webkit-scrollbar {
        display: none;
    }
    .inline-tabs .nav-link {
        padding: 8px 14px;
    }
    .form-group label {
        font-size: 14px;
    }
    .custom-border-card {
        padding: 16px 20px;
    }
    .custom-border-card .card-header {
        font-size: 18px;
        padding-bottom: 12px;
    }
}

@media (max-width: 567px) {
    .page-search {
        flex-direction: column;
        margin-bottom: 15px;
    }
    .page-search .sorting {
        margin-top: 8px;
    }
    div.dataTables_wrapper div.dataTables_length label,
    div.dataTables_wrapper div.dataTables_filter label {
        display: flex;
        justify-content: center;
    }
    div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child,
    div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
        padding: 0;
        overflow: auto;
    }
    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        margin-top: 15px;
    }
}

@media (max-width: 340px) {
    .header .side-logo {
        width: 120px;
    }
}

/* Image Upload Preview */
.avatar-upload {
    position: relative;
    max-width: 205px;
}

.avatar-edit {
    position: absolute;
    right: 12px;
    z-index: 1;
}

.avatar-edit input {
    display: none;
}

.avatar-edit input+label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    margin-right: 30px;
    margin-top: 125px;
    border-radius: 100%;
    background: var(--white-color);
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px var(--assest-color);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
}

.avatar-edit input+label:hover {
    background: var(--assest-color);
    border-color: var(--body-color);
}

.avatar-edit input+label:after {
    content: "\f0ee";
    font-family: 'FontAwesome';
    color: var(--body-color);
    position: absolute;
    top: 130px;
    left: 0;
    right: 30px;
    text-align: center;
    margin: auto;
}

.avatar-upload .avatar-preview {
    width: 150px;
    height: 150px;
    position: relative;
    border-radius: 10%;
}

.avatar-upload .avatar-preview>img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 10px;
}

.avatar-upload .avatar-preview>img:hover {
    transform: scale(1.05);
}

/* Image Upload Preview (Landscape) */
/* Video Ribbon */
/* Loader */
#dvloader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--core-color), 0.03);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#dvloader img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    box-shadow: 0 4px 24px var(--pink-a88);
}

/* btn Cancel */
.btn-cancel {
    background: var(--black-color);
    border-radius: 20px 0px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 2px solid transparent;
    transition: all 0.3s;
    padding: 8px 20px;
}

.btn-cancel:hover {
    color: var(--body-color);
    background: transparent;
    border-color: var(--body-color);
}

/* Edit-Delete btn */
.edit-delete-btn {
    cursor: pointer;
    outline: none;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px;
    border-radius: 10px 0px;
    border: 2px solid transparent;
}

.edit-delete-btn:hover {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.edit-delete-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Import File */
.import-file {
    background-color: var(--card-el);
    color: var(--t1);
}

.import-file::file-selector-button {
    border-radius: 4px;
    background-color: var(--surf-hv);
    color: var(--t1);
    border: 1px solid var(--bdr-md);
    height: 30px;
    cursor: pointer;
}

/* Dashboard Category */
/* Dashboard Hashtag */
/* Dashboard Artist */
/* Side Menu Partition */
.partition {
    width: 100%;
    padding: 16px 12px 4px;
    margin: 0;
    border: none;
    line-height: 1;
}

.partition span {
    display: block;
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--t3);
}

/* Demo Mode Box */
.demo-mode-box {
    background: var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    transition: all 0.3s;
    padding: 6px 18px;
}

.demo-mode-box:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

/* Installation */
.list-group-item {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    background-color: transparent;
}

.dropdown-menu,
.card {
    background-color: var(--white-color);
    border: none;
}

.form-control {
    background-color: var(--white-color);
    color: var(--title-color);
}

.install-bg-img {
    text-align: center;
}

.install-bg-img img {
    max-width: 100%;
    height: auto;
}

.install-title {
    font-size: 42px;
    font-weight: bold;
}

.install_sub_title {
    font-size: 24px;
}

.install_text {
    font-size: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.install-list li {
    font-size: 20px;
    margin-bottom: 10px;
}

.install-list li:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.install-card {
    margin-left: 100px;
    margin-right: 100px;
}

@media (max-width: 1024px) {
    .install-bg-img {
        display: none !important;
    }
}

/* btn Install */
.btn-install {
    background: var(--primary-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    transition: all 0.3s;
    padding: 10px 40px;
}

.btn-install:hover {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

/* btn Install Cancel */
.btn-install-cancel {
    background: var(--black-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    transition: all 0.3s;
    padding: 10px 40px;
}

.btn-install-cancel:hover {
    color: var(--black-color);
    background: transparent;
    border-color: var(--black-color);
}

/* Color Picker */
.colorpicker-component {
    display: flex;
    border: 1px solid var(--bdr);
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg);
}

.colorpicker {
    border: none;
    width: 50px;
    height: 45px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.hexcolor {
    border: none;
    padding: 10px;
    width: 100px;
    outline: none;
    background: var(--card-bg);
    color: var(--body-color);
}

/* Hide-Show Btn */
.show-btn,
.hide-btn,
.upload-btn {
    font-weight: bold;
    color: var(--white-color);
    padding: 6px 18px;
    outline: none;
    border-radius: 20px 0px;
    cursor: pointer;
    font-size: 14px !important;
    border: 2px solid transparent;
}

.show-btn {
    background: var(--green-color);
}

.show-btn:hover {
    background: transparent;
    border: 2px solid var(--green-color);
    color: var(--green-color);
}

.hide-btn {
    background: var(--red-color);
}

.hide-btn:hover {
    background: transparent;
    border: 2px solid var(--red-color);
    color: var(--red-color);
}

.upload-btn {
    border-radius: 10px !important;
    background: var(--primary-color) !important;
    color: var(--assest-color) !important;
}

.upload-btn:hover {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.show-btn:focus,
.hide-btn:focus,
.upload-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Custom-Card */
/* Profile-Card */
.profile-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--assest-color);
    animation: mkCardIn .5s var(--ease-o) .08s both;
}

.profile-header {
    height: 80px;
    background: linear-gradient(135deg, #DF1C5A, #7a1c37);
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 10%;
    border: 4px solid var(--white-color);
    object-fit: cover;
    margin-top: -60px;
}

.profile-details p {
    font-size: 16px;
}

/* Profile-Card - large banner variant (episode listing header) */
.profile-header-lg {
    height: 150px;
}

.profile-picture-lg {
    width: 130px;
    height: 130px;
    border-radius: 14px;
    margin-top: -110px;
}

/* Small stat tile (icon + value + label) */
/* Small solid badge (Free/Paid, approval pill) */
.mk-badge-sm {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white-color);
}

.mk-badge-sm.badge-success {
    background: var(--green-color);
}

.mk-badge-sm.badge-danger {
    background: var(--red-color);
}

.mk-badge-sm.badge-info {
    background: var(--info-color);
}

/* Bordered status box (approval status column) */
/* Media table cell (audio/video columns) */
/* Earning-Card */
/* Landscape Card */
/* BG Color Box */
.bg-color-box {
    font-weight: bold;
    border: none;
    color: var(--white-color);
    padding: 10px 15px !important;
    outline: none;
    border-radius: 5px;
}

.sortablebox {
    cursor: s-resize;
    background-color: var(--card-bg);
    color: var(--body-color);
    font-size: 14px;
    border: 1px solid var(--bdr);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 2px 4px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sortablebox:hover {
    background-color: var(--red-20);
    border-color: var(--red-35);
}

.sortablebox.ui-sortable-helper {
    box-shadow: 0 6px 18px var(--black-004);
    transform: scale(1.02);
}

.rotate {
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

.system-note {
    font-size: 16px;
}

/* ============================================================
THEME TOGGLE
============================================================ */
.mk-theme-btn {
    top: 20px;
    right: 22px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--black-004);
    color: var(--body-text);
    border: 1px solid var(--black-010);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
    user-select: none;
    outline: none !important;
    position: absolute !important;
}

.mk-theme-btn:hover {
    background: var(--red-06);
    border-color: var(--red-28);
    color: var(--primary);
    transform: scale(1.04);
}

.mk-theme-btn i {
    font-size: 12px;
    transition: transform 0.4s var(--spring);
}

.mk-theme-btn:hover i {
    transform: rotate(20deg);
}

.mk-toggle-track {
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: var(--red-15);
    border: 1px solid var(--red-25);
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}

.mk-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    transition: left 0.28s var(--spring), background 0.25s;
    box-shadow: 0 1px 4px var(--red-38);
}

[data-theme="light"] .mk-toggle-track::after {
    left: 16px;
}

/* ============================================================
VERSION PILL (inline, next to "Admin Panel" label)
============================================================ */
.mk-version-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--red-14);
    border: 1px solid var(--red-35);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ============================================================
LOGIN PAGE
============================================================ */
.mk-brand {
    position: relative;
    flex: 0 0 62%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 58px 40px 48px;
    overflow: hidden;
    background: var(--brand-bg);
    clip-path: polygon(0 0, 92% 0, 84% 100%, 0 100%);
    z-index: 2;
    transition: background 0.35s ease, clip-path 0.35s ease;
}

.mk-brand-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--red-04) 1px, transparent 1px), linear-gradient(90deg, var(--red-04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 40px 40px, 40px 40px;
    }
}

.mk-brand-glow-br {
    position: absolute;
    bottom: -140px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--red-20) 0%, transparent 65%);
    pointer-events: none;
    animation: glowBreath 5s ease-in-out infinite;
}

.mk-brand-glow-tl {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--red-20) 0%, transparent 65%);
    pointer-events: none;
    animation: glowBreath 7s ease-in-out infinite 2s;
}

@keyframes glowBreath {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.mk-wm {
    position: absolute;
    bottom: 45px;
    right: 165px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(186deg);
    font-size: 90px;
    font-weight: 800;
    color: var(--red-35);
    letter-spacing: 0.10em;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    text-transform: uppercase;
    animation: wmReveal 2.5s cubic-bezier(.22,1,.36,1) forwards, wmFloat 10s ease-in-out 2.5s infinite;
}

@keyframes wmReveal {
    0% {
        opacity: 0;
        transform: rotate(186deg) translateY(80px);
    }
    100% {
        opacity: 0.3;
        transform: rotate(186deg) translateY(0px);
    }
}

@keyframes wmFloat {
    0%,
    100% {
        opacity: 0.3;
        transform: rotate(186deg) translateY(0px) translateX(0px);
    }
    50% {
        opacity: 0.6;
        transform: rotate(186deg) translateY(-5px) translateX(2px);
    }
}

.mk-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mk-p {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: particleRise var(--dur,8s) ease-in-out infinite var(--delay,0s);
}

.mk-p:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 15%;
    --dur: 9s;
    --delay: 0s;
}

.mk-p:nth-child(2) {
    width: 3px;
    height: 3px;
    left: 28%;
    --dur: 11s;
    --delay: 1.5s;
}

.mk-p:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 42%;
    --dur: 8s;
    --delay: 3s;
}

.mk-p:nth-child(4) {
    width: 2px;
    height: 2px;
    left: 58%;
    --dur: 10s;
    --delay: 0.8s;
}

.mk-p:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 72%;
    --dur: 12s;
    --delay: 2.2s;
}

.mk-p:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 85%;
    --dur: 9s;
    --delay: 4s;
}

.mk-p:nth-child(7) {
    width: 5px;
    height: 5px;
    left: 22%;
    --dur: 14s;
    --delay: 1s;
}

.mk-p:nth-child(8) {
    width: 3px;
    height: 3px;
    left: 65%;
    --dur: 10s;
    --delay: 5s;
}

.mk-p:nth-child(9) {
    width: 5px;
    height: 5px;
    left: 38%;
    --dur: 11s;
    --delay: 2.8s;
}

.mk-p:nth-child(10) {
    width: 3px;
    height: 3px;
    left: 80%;
    --dur: 13s;
    --delay: 0.4s;
}

@keyframes particleRise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        bottom: 105%;
        opacity: 0;
        transform: translateX(20px) scale(1.2);
    }
}

.mk-brand-top {
    position: relative;
    z-index: 2;
    animation: fadeSlideDown 0.8s var(--ease-o) 0.1s both;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mk-logo-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.mk-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 var(--red-38);
    animation: livePing 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePing {
    0% {
        box-shadow: 0 0 0 0 var(--red-38);
    }
    60% {
        box-shadow: 0 0 0 9px var(--red-00);
    }
    100% {
        box-shadow: 0 0 0 0 var(--red-00);
    }
}

.mk-brand-appname {
    font-size: 11px;
    font-weight: 600;
    color: var(--wht-58);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mk-brand-mid {
    position: relative;
    z-index: 2;
}

.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    animation: fadeSlideUp 0.7s var(--ease-o) 0.25s both;
}

.mk-eyebrow-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mk-brand-title {
    font-size: clamp(28px,3.4vw,46px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--white-color);
    margin-bottom: 10px;
    animation: fadeSlideUp 0.8s var(--ease-o) 0.35s both;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.mk-brand-title .accent {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.mk-rule {
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg,var(--primary),transparent);
    border-radius: 2px;
    margin-bottom: 20px;
    animation: ruleExpand 0.8s var(--ease-o) 0.55s both;
}

@keyframes ruleExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 45%;
        opacity: 1;
    }
}

.mk-waves {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 26px;
    margin-bottom: 22px;
    animation: fadeSlideUp 0.7s var(--ease-o) 0.25s both;
}

.mk-wave-bar {
    width: 3px;
    border-radius: 3px;
    background: var(--primary);
    opacity: 0.8;
    animation: waveBar var(--wd,0.9s) ease-in-out infinite alternate var(--wo,0s);
    transform-origin: bottom;
}

.mk-wave-bar:nth-child(1) {
    height: 10px;
    --wd: 0.7s;
    --wo: 0s;
}

.mk-wave-bar:nth-child(2) {
    height: 20px;
    --wd: 0.9s;
    --wo: 0.1s;
}

.mk-wave-bar:nth-child(3) {
    height: 26px;
    --wd: 0.6s;
    --wo: 0.2s;
}

.mk-wave-bar:nth-child(4) {
    height: 16px;
    --wd: 1.1s;
    --wo: 0.15s;
}

.mk-wave-bar:nth-child(5) {
    height: 22px;
    --wd: 0.8s;
    --wo: 0.3s;
}

.mk-wave-bar:nth-child(6) {
    height: 12px;
    --wd: 0.95s;
    --wo: 0.05s;
}

.mk-wave-bar:nth-child(7) {
    height: 8px;
    --wd: 1.2s;
    --wo: 0.25s;
}

@keyframes waveBar {
    from {
        transform: scaleY(0.3);
        opacity: 0.4;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.mk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeSlideUp 0.7s var(--ease-o) 0.65s both;
}

.mk-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    background: var(--red-06);
    border: 1px solid var(--red-28);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white-color);
    transition: background 0.2s,border-color 0.2s;
}

.mk-tag:hover {
    background: var(--red-14);
    border-color: var(--red-52);
}

.mk-tag i {
    font-size: 14px;
    color: var(--primary);
}

.mk-form-side {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--form-bg);
    transition: background 0.35s ease;
}

.mk-form-side::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--red-06) 0%, transparent 65%);
    pointer-events: none;
    animation: glowBreath 6s ease-in-out infinite 1s;
}

.mk-form-side::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--red-04) 0%, transparent 65%);
    pointer-events: none;
    animation: glowBreath 8s ease-in-out infinite 3s;
}

.mk-form-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.mk-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    animation: fadeSlideUp 0.6s var(--ease-o) 0.15s both;
}

.mk-identity-logo {
    position: relative;
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-identity-logo img {
    width: 95px;
    height: 95px;
    object-fit: cover;
    mix-blend-mode: screen;
}

.mk-identity-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mk-identity-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--t1);
    transition: color 0.35s;
}

.mk-identity-name span {
    color: var(--primary);
}

.mk-form-head {
    margin-bottom: 24px;
    text-align: center;
}

.mk-form-head h2 {
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--t1);
    margin-bottom: 6px;
    animation: fadeSlideUp 0.7s var(--ease-o) 0.42s both;
    transition: color 0.35s;
}

.mk-form-head h2 .hl {
    color: var(--primary);
}

.mk-form-head p {
    font-size: 15px;
    color: var(--t2);
    line-height: 1.6;
    animation: fadeSlideUp 0.7s var(--ease-o) 0.52s both;
    transition: color 0.35s;
}

.mk-field {
    position: relative;
    margin-bottom: 18px;
}

.mk-field:nth-of-type(1) {
    animation: fadeSlideUp 0.7s var(--ease-o) 0.62s both;
}

.mk-field:nth-of-type(2) {
    animation: fadeSlideUp 0.7s var(--ease-o) 0.72s both;
}

.mk-input::placeholder {
    color: transparent;
}

.mk-input {
    width: 100%;
    background: var(--black-03);
    border-color: var(--black-14);
    border: 1.5px solid var(--black-010);
    border-radius: 12px;
    padding: 26px 44px 10px 48px;
    font-size: 15px;
    font-weight: 500;
    color: var(--t1);
    outline: none;
    caret-color: var(--primary);
    transition: border-color 0.22s, background 0.22s, color 0.35s, box-shadow 0.22s;
    appearance: none;
    box-shadow: 0 0 0 100px var(--form-bg) inset;
    -webkit-text-fill-color: var(--t1) !important;
}

[data-theme="dark"] .mk-input {
    background: var(--wht-22);
}

.mk-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--red-08);
}

.mk-ico {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--t3);
    pointer-events: none;
    transition: color 0.2s, transform 0.25s var(--spring);
}

.mk-field:focus-within .mk-ico {
    color: var(--primary);
    transform: translateY(-50%) scale(1.12);
}

.mk-label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--t-label);
    pointer-events: none;
    transition: top 0.22s var(--ease-o), font-size 0.22s var(--ease-o), color 0.22s var(--ease-o), letter-spacing 0.22s var(--ease-o), transform 0.22s var(--ease-o);
}

.mk-input:focus ~ .mk-label,
.mk-field:focus-within .mk-label {
    top: 11px;
    transform: translateY(0);
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mk-input:not(:placeholder-shown) ~ .mk-label {
    top: 11px;
    transform: translateY(0);
    font-size: 10px;
    color: var(--t2);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mk-bar {
    position: absolute;
    top: 8px;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 0 3px 3px 0;
    transition: height 0.3s var(--ease-o);
}

.mk-field:focus-within .mk-bar {
    height: calc(100% - 16px);
}

.mk-pw-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    color: var(--t3);
    transition: color 0.2s, transform 0.25s var(--spring);
    z-index: 2;
    line-height: 1;
    outline: none !important;
}

.mk-pw-btn:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.18);
}

.mk-btn-wrap {
    animation: fadeSlideUp 0.7s var(--ease-o) 0.84s both;
    margin-top: 8px;
}

.mk-submit {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    font-size: 14px;
    font-weight: 700;
    color: var(--white-color);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--red-38), 0 1px 0 var(--wht-10) inset;
    transition: box-shadow 0.25s, transform 0.15s, filter 0.25s;
    outline: none !important;
}

.mk-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--wht-18), transparent);
    transition: left 0.55s ease;
}

.mk-submit:hover::before {
    left: 160%;
}

.mk-submit:hover {
    filter: brightness(1.12);
    box-shadow: 0 8px 32px var(--red-52);
    transform: translateY(-2px);
}

.mk-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px var(--red-35);
}

.mk-ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--wht-22);
    transform: scale(0);
    animation: rippleOut 0.65s ease-out;
    pointer-events: none;
}

@keyframes rippleOut {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.mk-submit i {
    font-size: 15px;
    transition: transform 0.2s var(--spring);
}

.mk-submit:hover i {
    transform: translateX(5px);
}

.mk-demo {
    margin-top: 22px;
    padding: 11px 15px;
    background: var(--red-06);
    border: 1px solid var(--black-14);
    border-radius: 11px;
    font-size: 13px;
    color: var(--t2);
    text-align: center;
    animation: fadeSlideUp 0.7s var(--ease-o) 0.94s both;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.mk-demo i {
    color: var(--primary);
    margin-right: 5px;
}

.mk-demo a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

.mk-demo a:hover {
    text-decoration: underline;
}

.mk-foot {
    margin-top: 28px;
    font-size: 14px;
    color: var(--foot-col);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    animation: fadeIn 0.7s var(--ease-o) 1.1s both;
    transition: color 0.35s;
    justify-content: center;
}

.mk-foot-sep {
    width: 1px;
    height: 9px;
    background: var(--foot-col);
    border-radius: 2px;
    opacity: 0.5;
    transition: background 0.35s;
}

.dl-brand-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 20px 0 18px;
    animation: dl-fade-up 0.5s cubic-bezier(0.16,1,0.3,1) both;
    animation-delay: 0.1s;
}

.dl-brand-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), transparent);
}

.dl-brand-divider-icon {
    color: var(--primary-dark);
    font-size: 19px;
}

@keyframes dl-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media(max-width:1024px) {
    .mk-brand {
        clip-path: none;
        flex: 0 0 44%;
        padding: 36px 28px;
    }
    .mk-form-side {
        padding: 36px 28px;
    }
    .mk-wm {
        display: none;
    }
    .mk-brand-title {
        font-size: clamp(22px,2.8vw,36px);
    }
}

@media(max-width:768px) {
    html,
    body {
        overflow-y: auto;
    }
    .mk-page {
        height: auto;
        min-height: 100vh;
    }
    .mk-brand {
        display: none;
    }
    .mk-form-side {
        width: 100%;
        min-height: 100vh;
        padding: 48px 28px;
    }
    .mk-theme-btn {
        top: 16px;
        right: 16px;
    }
    .mk-form-box {
        max-width: 460px;
    }
}

@media(max-width:480px) {
    .mk-form-side {
        padding: 40px 20px 56px;
    }
    .mk-form-head h2 {
        font-size: 26px;
    }
    .mk-form-box {
        max-width: 100%;
    }
    .mk-theme-btn {
        top: 14px;
        right: 12px;
        padding: 6px 12px;
    }
}

/* ── Plain logo (standalone login pages without a dark brand panel) ──── */
.mk-identity-logo-plain img {
    mix-blend-mode: normal;
}

.mk-panel-badge-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--t2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
ADMIN CATEGORY PAGE
════════════════════════════════════════════════════════════════ */
/* ── Animations ────────────────────────────────────────────── */
@keyframes mkFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mkHeroIconIn {
    from {
        opacity: 0;
        transform: scale(.7) rotate(-12deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes mkCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mkFieldIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Hero ───────────────────────────────────────────────────── */
.mk-hero {
    position: relative;
    padding: 10px 28px;
    border-bottom: 1px solid var(--bdr);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    overflow: hidden;
}

.mk-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-20), transparent);
}

.mk-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.mk-hero-text {
    position: relative;
    z-index: 1;
}

.mk-hero-title {
    display: none;
}

@media (max-width: 991px) {
    .mk-hero-title {
        display: flex;
        font-size: 20px;
        font-weight: 800;
        color: var(--t1);
        margin: 0 0 3px;
        animation: mkFadeUp .4s var(--ease-o) .05s both;
    }
}

.mk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    animation: mkFadeUp .4s var(--ease-o) .15s both;
}

.mk-breadcrumb a {
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    text-decoration: none;
    transition: color .15s;
}

.mk-breadcrumb a:hover {
    color: var(--red);
}

.mk-breadcrumb-sep {
    font-size: 10px;
    color: var(--t3);
}

.mk-breadcrumb-current {
    font-size: 13px;
    font-weight: 600;
    color: var(--t3);
}

.mk-hero-right {
    position: relative;
    z-index: 1;
    animation: mkFadeUp .4s var(--ease-o) .18s both;
}

/* ── Add Category Card ──────────────────────────────────────── */
/* Card header */
/* Card body */
/* Form grid */
/* Field */
.mk-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    animation: mkFieldIn .4s var(--ease-o) .25s both;
}

.mk-field + .mk-field {
    animation-delay: .32s;
}

/* Color picker */
/* Image upload */
/* Card footer */
/* ════════════════════════════════════════════════════════════════
ADMIN — custom-border-card  (matches mk-add-card design)
════════════════════════════════════════════════════════════════ */
/* Card wrapper */
.custom-border-card {
    background: var(--card-bg);
    border: 1px solid var(--bdr) !important;
    border-radius: var(--r) !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 20px;
    animation: mkCardIn .5s var(--ease-o) .08s backwards;
    transition: box-shadow .3s;
}

/* Card header */
.custom-border-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surf) !important;
    border-bottom: 1px solid var(--bdr) !important;
    border-top-left-radius: var(--r);
    border-top-right-radius: var(--r);
    position: relative;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -.015em;
}

.custom-border-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-faint) 60%, transparent 100%);
}

/* Card body */
.custom-border-card .card-body {
    padding: 10px 20px 10px;
    background: var(--card-bg);
}

/* Bootstrap datetimepicker widget (audio/video duration) — dark mode */
[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu {
    background-color: var(--card-bg);
    color: var(--t1);
    border: 1px solid var(--bdr);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu.bottom:before {
    border-bottom-color: var(--bdr-str);
}

[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu.bottom:after {
    border-bottom-color: var(--card-bg);
}

[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu.top:before {
    border-top-color: var(--bdr-str);
}

[data-theme="dark"] .bootstrap-datetimepicker-widget.dropdown-menu.top:after {
    border-top-color: var(--card-bg);
}

[data-theme="dark"] .bootstrap-datetimepicker-widget table thead tr:first-child th:hover,
[data-theme="dark"] .bootstrap-datetimepicker-widget table td.day:hover,
[data-theme="dark"] .bootstrap-datetimepicker-widget table td span:hover {
    background: var(--surf-hv);
}

[data-theme="dark"] .bootstrap-datetimepicker-widget table td.old,
[data-theme="dark"] .bootstrap-datetimepicker-widget table td.new,
[data-theme="dark"] .bootstrap-datetimepicker-widget table td span.old,
[data-theme="dark"] .bootstrap-datetimepicker-widget table th.disabled,
[data-theme="dark"] .bootstrap-datetimepicker-widget table td.disabled,
[data-theme="dark"] .bootstrap-datetimepicker-widget table td span.disabled {
    color: var(--t3);
}

/* Form labels inside card */
.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t2);
    letter-spacing: .01em;
    margin-bottom: 6px;
}

.form-group label .text-danger,
.form-group label span.text-danger {
    color: var(--red) !important;
}

/* Form inputs inside card */
.form-control {
    background: var(--card-el);
    border: 1px solid var(--bdr-md) !important;
    border-radius: var(--r-sm) !important;
    color: var(--t1);
    font-size: 14px;
    padding: 10px 14px;
    height: auto !important;
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
}

.form-control::placeholder {
    color: var(--t3);
}

.form-control:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px var(--red-dim) !important;
    background: var(--card-bg);
    outline: none;
}

.form-control[readonly] {
    background: var(--surf);
    color: var(--t2);
    cursor: default;
}

input[type="file"].form-control::file-selector-button,
input[type="file"].form-control::-webkit-file-upload-button {
    background-color: var(--surf-hv);
    color: var(--t1);
    border: 1px solid var(--bdr-md);
    border-radius: var(--r-sm);
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

input[type="file"].form-control:hover::file-selector-button,
input[type="file"].form-control:hover::-webkit-file-upload-button {
    background-color: var(--surf-md);
}

.input-group-text {
    background: var(--card-el);
    border: 1px solid var(--bdr-md);
    color: var(--t2);
    cursor: pointer;
    transition: color .2s, background .2s;
}

.input-group-text:hover {
    color: var(--primary);
    background: var(--red-06);
}

/* Status Toggle */
.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
    vertical-align: middle;
}

.status-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--red-color);
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.status-toggle.status-on .status-toggle-track {
    background: var(--green-color);
}

.status-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white-color);
    transition: transform 0.3s ease;
}

.status-toggle.status-on .status-toggle-thumb {
    transform: translateX(20px);
}

/* SweetAlert */
.swal2-confirm:focus,
.swal2-cancel:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Section List (sc-*) */
.sc-list-wrap {
    padding: 0;
    overflow: hidden;
}

.sc-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--red-06);
    border-bottom: 1px solid var(--bdr);
}

.sc-item-group + .sc-item-group {
    border-top: 1px solid var(--bdr);
}

.sc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    flex-wrap: wrap;
    transition: background 150ms ease;
}

.sc-item:hover {
    background: var(--red-06);
}

.sc-item-num {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
}

.sc-item-main {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-item-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-item-sub {
    display: block;
    font-size: 12.5px;
    color: var(--t2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--red-06);
    border: 1px solid var(--red-20);
    flex-shrink: 0;
}

.sc-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.sc-status-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.sc-status-label {
    font-size: 11px;
    font-weight: 700;
}

.sc-status-label.text-on {
    color: var(--green-color);
}

.sc-status-label.text-off {
    color: var(--red-color);
}

@media (max-width: 575px) {
    .sc-item-main {
        flex-basis: 100%;
        order: -1;
    }
    .sc-item-actions {
        margin-left: 0;
    }
}

/* Sort Order List */
/* Select2 - Common */
.select2-container {
    font-size: 14px;
}

/* Single + Multiple Main Box */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 44px !important;
    height: auto !important;
    background: var(--card-el) !important;
    border: 1px solid var(--bdr-md) !important;
    border-radius: var(--r-sm) !important;
    color: var(--t1) !important;
    padding: 6px 10px !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Focus */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px var(--red-dim) !important;
    background: var(--card-bg) !important;
}

/* Single Text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--t1) !important;
    line-height: 30px !important;
    padding-left: 0 !important;
    padding-right: 28px !important;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: var(--t3) !important;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--t2) transparent transparent transparent !important;
}

/* Multiple Selected Tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--red-dim) !important;
    border: 1px solid rgba(223, 28, 90, 0.25) !important;
    border-radius: 999px !important;
    color: var(--red) !important;
    padding: 4px 10px !important;
    margin-top: 4px !important;
    margin-right: 6px !important;
    font-size: 13px !important;
    font-weight: 600;
}

/* Multiple Tag Remove */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--red) !important;
}

/* Multiple Search Field */
.select2-container--default .select2-search--inline .select2-search__field {
    color: var(--t1) !important;
    margin-top: 8px !important;
    font-size: 14px !important;
}

/* Dropdown Panel */
.select2-dropdown {
    background: var(--card-bg) !important;
    border: 1px solid var(--bdr-md) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.16) !important;
    overflow: hidden;
    max-width: 100vw;
    z-index: 9999;
}

/* Search Box In Dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 10px !important;
    background: var(--card-bg) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--card-el) !important;
    border: 1px solid var(--bdr-md) !important;
    border-radius: var(--r-sm) !important;
    color: var(--t1) !important;
    padding: 9px 10px !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px var(--red-dim) !important;
}

/* Options */
.select2-results__option {
    padding: 10px 12px !important;
    color: var(--t1) !important;
    background: transparent !important;
    font-size: 14px !important;
    white-space: normal;
    word-break: break-word;
}

/* Hover Option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--red-dim) !important;
    color: var(--red) !important;
}

/* Selected Option */
.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(223, 28, 90, 0.12) !important;
    color: var(--red) !important;
    font-weight: 600;
}

/* Disabled */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: var(--card-el) !important;
    opacity: .65;
    cursor: not-allowed;
}

/* Clear Button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: var(--t2) !important;
    font-size: 18px !important;
    margin-right: 28px !important;
}

/* ── Stat Cards ─────────────────────────────────────────── */
/* # sourceMappingURL=style.css.map */
/* ═══════════════════════════════════════════════════════════════
Dashboard — mk-* components
═══════════════════════════════════════════════════════════════ */
/* ── Gradient colour utilities ────────────────────────────────── */
.mk-c-primary {
    background: var(--mk-c-primary);
}

.mk-c-blue {
    background: var(--mk-c-blue);
}

.mk-c-purple {
    background: var(--mk-c-purple);
}

.mk-c-orange {
    background: var(--mk-c-orange);
}

.mk-c-teal {
    background: var(--mk-c-teal);
}

.mk-c-sky {
    background: var(--mk-c-sky);
}

.mk-c-pink {
    background: var(--mk-c-pink);
}

.mk-c-green {
    background: var(--mk-c-green);
}

.mk-c-indigo {
    background: var(--mk-c-indigo);
}

.mk-c-amber {
    background: var(--mk-c-amber);
}

.mk-c-cyan {
    background: var(--mk-c-cyan);
}

/* ── Stat Cards ───────────────────────────────────────────────── */
.mk-stat-card {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
    border: 1px solid rgba(128,128,128,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 1.25rem;
    min-height: 96px;
    animation: dbFadeUp 0.45s var(--ease-o) both;
}

.mk-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.row > div:nth-child(1) .mk-stat-card {
    animation-delay: 0.04s;
}

.row > div:nth-child(2) .mk-stat-card {
    animation-delay: 0.10s;
}

.row > div:nth-child(3) .mk-stat-card {
    animation-delay: 0.16s;
}

.row > div:nth-child(4) .mk-stat-card {
    animation-delay: 0.22s;
}

.mk-stat-card:hover .mk-stat-icon-panel i {
    transform: scale(1.1) rotate(-6deg);
}

.mk-stat-icon-panel {
    width: 88px;
    min-width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mk-stat-icon-panel::after {
    content: '';
    position: absolute;
    right: -18px;
    width: 36px;
    height: 200%;
    background: inherit;
    border-radius: 50%;
    z-index: 0;
}

.mk-stat-icon-panel i {
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s var(--spring);
}

.mk-stat-body {
    flex: 1;
    padding: 14px 18px 14px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mk-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--t2);
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: var(--body-color);
    letter-spacing: -0.5px;
}

.mk-stat-sub {
    font-size: 0.7rem;
    color: var(--t3);
    margin-top: 3px;
    font-weight: 500;
}

/* ── Earning summary cards (admin/artist split — transaction pages) ─── */
.mk-earn-body {
    padding: 14px 18px 14px 26px;
}

.mk-earn-split {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mk-earn-item {
    flex: 1;
    min-width: 0;
}

.mk-earn-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--body-color);
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-earn-caption {
    font-size: 0.72rem;
    color: var(--t2);
    margin-top: 3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-earn-divider {
    width: 1px;
    align-self: stretch;
    background: var(--bdr);
}

/* ── Panel Cards (charts / lists) ─────────────────────────────── */
.mk-panel {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(128,128,128,0.1);
    padding: 22px 24px;
    margin-bottom: 24px;
    height: calc(100% - 24px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    animation: dbFadeUp 0.5s var(--ease-o) both;
}

.mk-panel:hover {
    border-color: var(--red-14);
    box-shadow: 0 12px 32px var(--red-08), var(--card-shadow);
}

.mk-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(128,128,128,0.12);
    flex-wrap: wrap;
    gap: 8px;
}

.mk-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--body-color);
    margin: 0;
}

.mk-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.mk-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mk-panel-actions .btn {
    padding: 4px 14px;
    font-size: 13px;
}

/* ── Pill Tabs ────────────────────────────────────────────────── */
.mk-tabs {
    display: flex;
    background: rgba(128,128,128,0.08);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 18px;
    gap: 2px;
}

.mk-tabs .nav-item {
    flex: 1;
}

.mk-tabs .nav-link {
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.2s;
    display: block;
}

.mk-tabs .nav-link.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mk-tabs .nav-link:hover:not(.active) {
    color: var(--body-color);
}

/* ── Content List Items ───────────────────────────────────────── */
.mk-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128,128,128,0.08);
    transition: background 0.15s;
    border-radius: 8px;
}

.mk-list-item:last-child {
    border-bottom: none;
}

.mk-list-item:hover {
    background: rgba(128,128,128,0.04);
}

.mk-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(128,128,128,0.1);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-right: 10px;
}

.mk-rank.top1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}

.mk-rank.top2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #fff;
}

.mk-rank.top3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
}

.mk-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.mk-item-info {
    flex: 1;
    min-width: 0;
}

.mk-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-stat-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(128,128,128,0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 10px;
    white-space: nowrap;
}

/* ── Artist List Items ────────────────────────────────────────── */
.mk-artist-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128,128,128,0.08);
    transition: background 0.15s;
    border-radius: 8px;
}

.mk-artist-item:last-child {
    border-bottom: none;
}

.mk-artist-item:hover {
    background: rgba(128,128,128,0.04);
}

.mk-artist-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
    border: 2px solid rgba(128,128,128,0.15);
}

.mk-artist-info {
    flex: 1;
    min-width: 0;
}

.mk-artist-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-artist-username {
    font-size: 11px;
    color: var(--t3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-follow-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--red-08, rgba(200,16,46,0.08));
    color: var(--primary);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Empty State ──────────────────────────────────────────────── */
.mk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0;
    color: var(--t3);
    font-size: 18px;
}

.mk-empty i {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

/* =============================================================================
ADMIN DASHBOARD REDESIGN (db-*) — Content & Revenue dashboards
Dark-mode aware via existing tokens: --card-bg, --bdr, --t1, --t2, --card-shadow
============================================================================= */
@keyframes dbFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Welcome banner ───────────────────────────────────────────── */
.db-welcome {
    border-radius: var(--r-lg);
    padding: 26px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--icon-shadow);
    animation: dbFadeUp 0.5s var(--ease-o) both;
}

.db-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, var(--wht-18) 0%, transparent 60%);
    pointer-events: none;
}

.db-wel-left {
    position: relative;
    z-index: 1;
}

.db-wel-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 4px;
}

.db-wel-title {
    font-size: clamp(19px, 2.4vw, 25px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.db-wel-sub {
    font-size: 13px;
    opacity: 0.8;
}

.db-wel-icons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    font-size: 24px;
    opacity: 0.28;
    flex-wrap: wrap;
}

/* ── Donut chart wrapper ───────────────────────────────────────── */
.db-donut-wrap {
    position: relative;
    animation: dbFadeUp 0.55s var(--ease-o) 0.1s both;
}

.db-donut-wrap .apexcharts-canvas {
    margin: 0 auto;
}

.db-donut-wrap .apexcharts-pie-series path {
    transition: transform 0.2s var(--spring), filter 0.2s ease;
    transform-origin: center;
}

.db-donut-wrap .apexcharts-pie-series path:hover {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.db-donut-wrap .apexcharts-legend-text {
    color: var(--t2) !important;
}

.db-donut-wrap .apexcharts-datalabel-label,
.db-donut-wrap .apexcharts-datalabel-value {
    fill: var(--t1) !important;
}

/* ── Earning breakdown cards (Revenue dashboard) ──────────────── */
.db-earn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.db-earn-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: 22px 24px 18px;
    color: var(--white-color);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--icon-shadow);
    animation: dbFadeUp 0.5s var(--ease-o) both;
}

.db-earn-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 105% -10%, var(--wht-22) 0%, transparent 55%);
    pointer-events: none;
}

.db-earn-cols {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.db-earn-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.db-earn-lbl {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.82;
}

.db-earn-caption {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    text-align: center;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .db-earn-row {
        grid-template-columns: 1fr;
    }
    .db-welcome {
        padding: 20px;
    }
}

/* =============================================================================
ADMIN PROFILE PAGE (pro-*)
Dark-mode aware via existing tokens: --card-bg, --bdr, --t1, --t2, --t3, --card-shadow
============================================================================= */
@keyframes proCardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes avPop {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Header card ───────────────────────────────────── */
.pro-hdr-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--bdr);
    box-shadow: var(--card-shadow);
    animation: proCardIn 0.6s var(--ease-o) both;
}

.pro-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.pro-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 33px 33px;
    opacity: 0.6;
}

.pro-av-section {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 0 28px;
    margin-top: -52px;
    position: relative;
    z-index: 1;
}

.pro-av-ring {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 3px;
    box-shadow: var(--icon-shadow);
    animation: avPop 0.6s var(--spring) 0.2s both;
}

.pro-av-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-av-initial {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-av-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pro-av-actions {
    padding-bottom: 14px;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pro-av-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pro-av-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--t1);
    line-height: 1.1;
}

.pro-hdr-body {
    padding: 14px 28px 24px;
}

.pro-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 4px;
}

.pro-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
}

.pro-meta-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--red-08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pro-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--red-08);
    border: 1px solid var(--red-20);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Form cards ───────────────────────────────────── */
.pro-form-card {
    background: var(--card-bg);
    border-radius: var(--r-lg);
    border: 1px solid var(--bdr);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 20px;
    animation: proCardIn 0.6s var(--ease-o) 0.1s both;
}

.pro-form-head {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--bdr);
    background: var(--surf);
}

.pro-form-head-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: var(--red-08);
    color: var(--primary);
}

.pro-form-head-text .form-head-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
}

.pro-form-body {
    padding: 24px;
}

.pro-form-foot {
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--bdr);
}

/* ── Form fields ───────────────────────────────────── */
.pro-field {
    margin-bottom: 18px;
}

.form-row:last-child .pro-field,
.pro-form-body > .row:last-child > .pro-field {
    margin-bottom: 0;
}

.pro-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.pro-field label .req {
    color: var(--primary);
    font-size: 15px;
    line-height: 1;
}

.pro-input-wrap {
    position: relative;
}

.pro-input-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.pro-inp {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1.5px solid var(--bdr);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--t1);
    background: var(--card-bg);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
}

.pro-inp:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--red-08);
}

.pro-inp::placeholder {
    color: var(--t3);
}

.pro-inp-pw {
    padding-right: 44px;
}

.pro-inp[readonly] {
    background: var(--surf);
    color: var(--t2);
    cursor: default;
}

.pro-textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--bdr);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--t1);
    background: var(--card-bg);
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
}

.pro-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--red-08);
}

.pro-textarea::placeholder {
    color: var(--t3);
}

/* ── Password eye toggle ───────────────────────────── */
.pro-eye {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--primary);
    font-size: 14px;
    z-index: 2;
    transition: color 0.15s ease;
    outline: none !important;
}

.pro-eye:hover {
    color: var(--primary-dark);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 991px) {
    .pro-av-section {
        padding: 0 18px;
        margin-top: -44px;
        gap: 14px;
    }
    .pro-av-ring {
        width: 88px;
        height: 88px;
    }
    .pro-av-initial {
        font-size: 30px;
    }
    .pro-av-name {
        font-size: 18px;
    }
    .pro-hdr-body {
        padding: 12px 18px 20px;
    }
}

@media (max-width: 575px) {
    .pro-av-section {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -40px;
    }
    .pro-av-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0;
    }
}

/* =============================================================================
FORM ACTIONS
============================================================================= */
@keyframes sacCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 12px;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--bdr);
    animation: sacCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.card-actions .btn:nth-child(1) {
    animation: sacCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.card-actions .btn:nth-child(2) {
    animation: sacCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}

/* =============================================================================
ERROR PAGES (err-*) — 404 etc.
Dark-mode aware via existing tokens: --pg-bg, --card-bg, --bdr, --t1, --t2, --t3
============================================================================= */
@keyframes errCardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes errCodeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes errGlowBreath {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.err-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--pg-bg);
    font-family: var(--font);
    transition: background 0.4s ease;
}

.err-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--red-04) 1px, transparent 1px), linear-gradient(90deg, var(--red-04) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: gridDrift 22s linear infinite;
    pointer-events: none;
}

.err-glow-1 {
    position: absolute;
    top: -160px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--red-20) 0%, transparent 65%);
    animation: errGlowBreath 6s ease-in-out infinite;
    pointer-events: none;
}

.err-glow-2 {
    position: absolute;
    bottom: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--red-20) 0%, transparent 65%);
    animation: errGlowBreath 7s ease-in-out infinite 1.5s;
    pointer-events: none;
}

.err-tog {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 20;
}

.err-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--bdr);
    border-radius: var(--r-lg);
    box-shadow: var(--card-shadow);
    padding: 56px 44px 48px;
    animation: errCardIn 0.6s var(--ease-o) both;
}

.err-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 15px;
    font-weight: 700;
    color: var(--t2);
}

.err-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.err-code {
    font-size: clamp(80px, 16vw, 140px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: errCodeFloat 4s ease-in-out infinite;
}

.err-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: var(--red-08);
    color: var(--primary);
    font-size: 26px;
}

.err-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--t1);
    margin: 10px 0 8px;
}

.err-sub {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 30px;
}

.err-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.err-actions .btn-default,
.err-actions .btn-outline-err {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-err {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid var(--bdr);
    background: transparent;
    color: var(--t1);
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--spring);
    cursor: pointer;
}

.btn-outline-err:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .err-card {
        padding: 40px 24px 36px;
    }
}
