@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

:root {
    --font: "Rubik", sans-serif;
    --white-color: #fff;
    --black-color: #000;
    --black-50: rgba(0, 0, 0, 0.5);

    --primary-color: #1A1A2E;
    --primary-light: #1A1A2E40;
    --primary-bg: #1A1A2E1A;
    --text-primary: #2a293c;
    --body-bg-color: #1A1A2E0D;
    --assest-color: #fff;
    --text-secondary: #9096B2;
    --border-light: #ccc;

    --primary-rgb: 26 26 46;
    --white-rgb: 0 0 0;
    --black-rgb: 255 255 255;

    /* Btn & Status Badge color */
    --green-color: #058f00;
    --green-color-rgb: 5 143 0;
    --red-color: #dc3545;
    --red-color-rgb: 220 53 69;
    --gray-color: #adb5bd;
    --blue-color: #0d6efd;
    --blue-color-rgb: 13 110 253;
    --orange-color: #fd7e14;
    --orange-color-rgb: 253 126 20;

    /* Login Page Var */
    --login-surface-rgb: 255 255 255;
    --login-surface-dark-rgb: 248 250 252;
    --login-accent-rgb: 148 75 248;
    --login-accent-soft-rgb: 110 48 200;
    --login-text-rgb: 190 165 228;
    --login-icon-rgb: 175 135 250;
    --login-overlay-rgb: 4 2 14;
    --logo-color: #e87722;
    --logo-color-rgb: 232 119 34;
}

[data-theme="dark"] {

    --primary-rgb: 26 26 46;
    --white-rgb: 255 255 255;
    --black-rgb: 0 0 0;

    /* Login Page Var */
    --login-surface-rgb: 58 60 92;
    --login-surface-dark-rgb: 48 50 80;
    --login-accent-rgb: 148 75 248;
    --login-accent-soft-rgb: 110 48 200;
    --login-text-rgb: 190 165 228;
    --login-icon-rgb: 175 135 250;
    --login-overlay-rgb: 4 2 14;
    --logo-color: #e87722;
    --logo-color-rgb: 232 119 34;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background-color: var(--body-bg-color);
    font-size: 14px;
    overflow-x: hidden;
}

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

.defaultfont {
    font-family: var(--font);
}

a {
    text-decoration: none !important;
}

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

.primary-bg {
    background: var(--primary-color) !important;
}

.listitemClass {
    background-color: var(--body-bg-color);
    border: 1px solid var(--black-color);
    cursor: s-resize;
}

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

.btn:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0;
    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: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 8px 20px;
}

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

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

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

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

.btn-icon {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--primary-color);
}

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

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

.dropdown-menu {
    -webkit-box-shadow: 0 15px 35px var(--assest-color);
    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;
}

.breadcrumb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: var(--assest-color);
    border-radius: .25rem
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: bold;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: .5rem;
    padding-left: .5rem;
    /* color: var(--body-color); */
    content: "/"
}

.breadcrumb-item.active {
    color: var(--partition-color)
}

/* ─── Sidebar Toggle Button — Premium ────────────────────────────── */
.side-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid var(--primary-light);
    padding: 10px 9px;
    cursor: pointer;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.side-toggle:hover {
    background: var(--primary-bg);
    border-color: var(--primary-bg);
    transform: scale(1.06);
}

.side-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: all 0.22s ease;
}

.side-toggle:hover span {
    background: var(--text-primary);
}

.side-toggle span:nth-child(1) {
    width: 16px;
}

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

.side-toggle span:nth-child(3) {
    width: 16px;
}

.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 — Premium SaaS redesign ────────────────────────────── */
.sidebar {
    background: var(--assest-color);
    padding: 22px 14px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 280px;
    max-width: 100%;
    overflow: hidden;
    transform: translateX(0px);
    transition: all 0.3s ease;
    border-right: 1px solid rgb(var(--primary-rgb) / 0.08);
    box-shadow: 2px 0 20px rgb(var(--primary-rgb) / 0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

/* .sidebar .side-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar .side-menu::-webkit-scrollbar-thumb {
    background-color: var(--primary-light) !important;
    border-radius: 4px;
}

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

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

.sidebar.hide-sidebar {
    width: 72px;
    padding: 22px 10px 0 10px;
}

@media (min-width: 1024px) {
    .sidebar.hide-sidebar .side-menu .partition {
        display: none;
    }

    .sidebar.hide-sidebar .side-head {
        justify-content: center;
        /* margin-bottom: 14px; */
    }

    .sidebar.hide-sidebar .side-brand .side-app-name,
    .sidebar.hide-sidebar .partition,
    .sidebar.hide-sidebar .side-menu a>span {
        display: none;
    }

    .sidebar.hide-sidebar .side-brand {
        display: none;
    }

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

    .sidebar.hide-sidebar .side-menu a {
        margin: 4px auto;
        display: flex;
        padding: 11px;
        height: 44px;
        width: 44px;
        align-items: center;
        justify-content: 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-footer {
        padding: 10px 0 14px 0;
    }

    .sidebar.hide-sidebar .side-account {
        flex-direction: column;
        gap: 6px;
        padding: 4px 0;
        align-items: center;
    }

    .sidebar.hide-sidebar .side-account-info {
        display: none;
    }

    .sidebar.hide-sidebar .side-logout-icon {
        margin: 0 auto;
    }
}

/* Brand area — logo + app name */
.sidebar .side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 14px 0;
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.07);
    flex-shrink: 0;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.side-brand:hover {
    text-decoration: none;
}

.side-brand-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
}

.side-app-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--logo-color);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu list */
.sidebar .side-menu {
    padding: 0;
    list-style: none;
    margin: 12px -14px 0 0;
    padding-right: 14px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 8px;
}

/* Menu items */
.sidebar .side-menu a {
    color: var(--black-color);
    display: flex;
    align-items: center;
    padding: 9px 11px;
    position: relative;
    margin: 2px 0;
    cursor: pointer;
    /* font-size: 13.5px; */
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    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: 11px;
    width: 18px;
    font-size: 15px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.sidebar .side-menu .dropdown-menu a .submenu-icon {
    margin-right: 11px;
    width: 18px;
    font-size: 15px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.sidebar .side-menu a:hover {
    color: var(--text-primary);
    background: var(--primary-bg);
    font-weight: 600;
    text-decoration: none;
}

.sidebar .side-menu a:hover .menu-icon,
.sidebar .side-menu a:hover .submenu-icon {
    opacity: 1;
    color: var(--text-primary);
}

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

.sidebar .side-menu .side_line.active>a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    background: var(--logo-color);
    box-shadow: 1px 0 8px rgb(var(--primary-rgb) / 0.45);
}

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

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

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

.sidebar .side-menu .dropdown-toggle::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.22s ease;
    margin-top: 0;
}

.sidebar .side-menu .dropdown.show>.dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar .side-menu .dropdown-menu {
    position: relative !important;
    transform: none !important;
    box-shadow: none;
    float: none;
    background: transparent;
    margin-left: 12px;
    padding: 4px 0;
    border: none;
    border-left: 2px solid rgb(var(--primary-rgb) / 0.1);
}

.sidebar .side-menu .dropdown-menu .dropdown-item {
    padding: 9px 11px;
    background: transparent;
    border-radius: 10px;
}

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

}

/* Submenu rows — match normal menu item rhythm */
.sidebar .side-menu .side-submenu a {
    color: var(--black-color);
    display: flex;
    align-items: center;
    padding: 9px 11px;
    position: relative;
    margin: 2px 0;
    cursor: pointer;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar .side-menu .side-submenu .active {
    border-radius: 10px;
    padding: 0;
}

.sidebar .side-menu .side-submenu a:hover {
    color: var(--text-primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.sidebar .side-menu .side-submenu .active a:hover {
    color: var(--white-color);
    background: var(--primary-color);
    font-weight: 600;
}

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

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

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

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

/* ─── Sidebar Footer — Premium Account Block ──────────────────────── */
.side-footer {
    flex-shrink: 0;
    padding: 10px 0 0px 0;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.07);
}

.side-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--red-color) 10%, transparent) !important;
    transition: background 0.2s ease;
    cursor: default;
}

.side-account:hover {
    background: var(--primary-bg);
}

.side-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0;
    user-select: none;
}

.side-account-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.side-account-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.side-account-role {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: capitalize;
    display: block;
}

.side-logout-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red-color);
    background: linear-gradient(to top,
            var(--red-color) 50%,
            transparent 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    border: 1.5px solid var(--red-color);
    text-decoration: none;
    overflow: hidden;
    transition: background-position 0.3s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    /* font-size: 12px; */
}

.side-logout-icon:hover {
    background-position: 0% 100%;
    color: var(--white-color) !important;
    border-color: rgb(var(--logo-color-rgb));
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.22);
    text-decoration: none;
}

/* ─── Header — Premium SaaS redesign ─────────────────────────────────── */

.header {
    position: sticky;
    -webkit-position: -webkit-sticky;
    top: 0;
    background: var(--assest-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.07);
    box-shadow: 0 1px 24px rgb(var(--primary-rgb) / 0.07);
    z-index: 22;
    padding: 13px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.header .title-control .side-toggle {
    margin-right: 16px;
    display: none;
    flex-shrink: 0;
}

/* Title block with stacked title + subtitle */
.hdr-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.header .page-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdr-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25px;
    color: rgb(var(--white-rgb) / 0.42);
    line-height: 1;
    display: block;
    white-space: nowrap;
}

/* Keep input-group styles intact (used on some views) */
.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;
}

/* Right side container */
.header .head-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Glass pill that groups all icon actions */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 4px;
}

/* Icon action buttons */
.header .head-control .head-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    padding: 0;
    border-radius: 10px;
    overflow: visible;
    margin-left: 0;
    background: var(--primary-bg);
    border-color: rgb(var(--primary-rgb) / 0.12);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
        transform 0.15s ease, box-shadow 0.2s ease;
}

.header .head-control .head-btn:hover {
    background: var(--primary-bg);
    box-shadow: 0 4px 12px rgb(var(--primary-rgb) / 0.12);
}

.header .head-control .head-btn:active {
    transform: scale(0.95);
    box-shadow: none;
    transition: transform 0.10s ease;
}

.header .head-control .head-btn>a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Icon color inside head-btn (works with or without primary-color class) */
.header .head-control .head-btn i {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.avatar-img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.body-content {
    padding: 25px;
}

.box-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--body-color);
    padding-bottom: 10px;
    margin-top: 20px;
}

.box-title .title {
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0;
}

.avatar-control {
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.avatar-control .avatar-img {
    height: 50px;
    width: 50px;
    border-radius: 20%;
}

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

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

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

.table thead th {
    font-size: 14px;
    font-weight: 600;
    border-top: 0;
    border-bottom: 1px solid var(--body-color);
    background-color: var(--body-color);
    color: var(--black-color);
}

.table td {
    font-size: 14px;
    border-bottom: 1px solid var(--body-color);
    color: var(--black-color);
    border-top: 0;
    vertical-align: middle;
}

.table .avatar-img {
    margin-right: 10px;
}

.table .clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

.dot {
    height: 8px;
    width: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

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

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

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

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

.summary-table-card .border-card {
    padding: 10px;
    border: 2px solid var(--assest-color);
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-table-card .border-card:hover {
    border: 2px solid var(--primary-color);
}

.summary-table-card .border-card>.row {
    margin: 0;
}

.summary-table-card .border-card>.row .col,
.summary-table-card .border-card>.row .col-1,
.summary-table-card .border-card>.row .col-2,
.summary-table-card .border-card>.row .col-12 {
    padding: 0;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.summary-table-card .avatar-control {
    min-width: 120px;
    font-weight: 600;
}

.summary-table-card .avatar-control img {
    margin-right: 8px;
}

.summary-table-card .price {
    color: var(--red-color);
    font-weight: 600;
}

.artist-row {
    margin: 0 -10px;
}

.artist-row .col-6 {
    padding: 0 10px;
}

.video-box {
    padding: 25px;
    background: var(--assest-color);
}

.video-box .f600 {
    font-weight: 600;
}

.video-box .box-border-0 {
    border: 0;
    padding-bottom: 0;
}

.page-search {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--body-color);
    border-radius: 8px;
    padding: 7px;
}

.page-search .input-group-text,
.page-search .form-control {
    border: 0;
    background: transparent;
    -webkit-box-shadow: 0 0 0;
    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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 290px;
    background-color: var(--white-color);
    padding: 2px 12px;
    border-radius: 8px;
}

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

.pagination {
    padding: 5px;
    border: 1px solid var(--body-color);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    border-radius: 10px;
    margin: 35px auto 0;
}

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

.pagination .page-link .right-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.pagination .page-link .dots {
    font-weight: 600;
    margin-top: -4px;
}

.pagination .arrow-icon {
    height: 20px;
    width: 20px;
    background-image: url("../../assets/imgs/left-arrow.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 7px;
}

.pagination .arrow-icon .next-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

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

.modal .close {
    font-size: 34px;
    color: var(--white-color);
    opacity: 1;
    position: absolute;
    right: 5px;
    top: 0px;
    font-weight: 200;
    z-index: 22;
    outline: none;
}

.inline-tabs {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: relative;
    z-index: 2;
}

.inline-tabs li.nav-item {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
}

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

.app-right-btn {
    text-align: right;
    margin-top: -60px;
    margin-bottom: 30px;
}

.custom-border-card {
    background-color: var(--assest-color);
    -webkit-box-shadow: 0 15px 35px var(--assest-color);
    box-shadow: 0 15px 35px var(--assest-color);
    border: 1px solid var(--assest-color);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.custom-border-card .card-header {
    font-size: 18px;
    background: transparent;
    padding: 0;
    font-weight: 700;
    border-bottom: 2px solid var(--body-color);
    padding-bottom: 15px;
    color: var(--partition-color);
}

.custom-border-card .card-body {
    padding: 18px 0 10px;
}

.border-top {
    border-top: 1px solid var(--body-color) !important;
}

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

.form-control,
.custom-select {
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    height: auto !important;
}

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

.file-control {
    padding: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 15px;
    cursor: pointer;
}

.file-control span {
    opacity: 0.6;
    display: inline-block;
    margin-top: 10px;
}

.thumbnail-img {
    position: relative;
    border: 1px solid var(--assest-color);
    display: inline-block;
    height: 100px;
    width: 130px;
    border-radius: 10px;
    padding: 4px;
}

.thumbnail-img img {
    border-radius: 8px;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.thumbnail-img .close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--white-color);
    opacity: 1;
    font-weight: 300;
}

.radio-group {
    display: -webkit-box;
    display: -ms-flexbox;
    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(--body-bg-color);
    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(--primary-light);
}

.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: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: 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 18px;
    text-align: center;
    margin: 0 13px;
}

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.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;
}

.app-logo img {
    width: 180px;
    margin: 15px 0 20px;
}

@media (min-width: 1600px) {
    .counter-row {
        margin-bottom: 20px;
    }

    .table thead th,
    .table td {
        font-size: 16px;
    }

    .custom-tabs .nav-link,
    .summary-table-card .border-card {
        font-size: 16px;
    }

    .video-card .card-img-top {
        height: 250px;
    }

    .video-card .card-body .card-title {
        font-size: 16px;
    }

    .video-card .card-body .card-details p {
        font-size: 14px;
    }

    .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.hide-sidebar {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        left: 0;
        z-index: 99;
        width: 280px;
    }

    .sidebar.hide-sidebar .side-toggle span:first-child {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .sidebar.hide-sidebar .side-toggle span:nth-child(2) {
        display: none;
    }

    .sidebar.hide-sidebar .side-toggle span:last-child {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        margin-top: -5px;
    }

    .right-content {
        margin-left: 0 !important;
    }

    .right-content .page-title {
        display: none;
    }

    .header {
        padding: 11px 15px;
    }

    .header .title-control .side-toggle {
        display: flex !important;
    }

    .header .side-logo {
        display: block;
        width: 140px;
    }

    .hdr-title-wrap {
        display: none;
    }

    .header .mobile-close-search {
        display: none;
    }

    .counter-row .col-md {
        padding-right: 5px;
        padding-left: 5px;
    }

    .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;
    }

    .app-logo img {
        margin: 20px 0 10px;
    }
}

@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;
    }

    .box-title {
        padding-bottom: 8px;
    }

    .box-title .title {
        font-size: 18px;
    }

    .avatar-control .avatar-img {
        height: 30px;
        width: 30px;
    }

    .table th,
    .table td {
        padding: 8px 5px;
    }

    .summary-table-card .border-card {
        padding: 10px 2px;
    }

    .summary-table-card .border-card .row .col {
        text-align: left;
    }

    .summary-table-card .border-card .row .col-12 {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .summary-table-card .avatar-control {
        margin: 0 14px 10px;
    }

    .pagination {
        margin-top: 20px;
    }

    .inline-tabs {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        overflow: auto;
        margin-top: 0;
    }

    .inline-tabs::-webkit-scrollbar {
        display: none;
    }

    .inline-tabs .nav-link {
        padding: 8px 14px;
    }

    .app-right-btn {
        margin: 0 0 15px;
    }

    .form-group label {
        font-size: 14px;
    }

    .custom-border-card {
        padding: 16px 20px;
    }

    .custom-border-card .card-header {
        font-size: 18px;
        padding-bottom: 12px;
    }

    .file-control {
        padding: 16px;
    }
}

@media (max-width: 567px) {
    .page-search {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        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: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        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) */
.landscape-preview {
    width: 220px !important;
    height: 120px !important;
}

/* Image Upload Preview (Landscape) */
.avatar-upload-landscape {
    position: relative;
    max-width: 265px;
}

.avatar-edit-landscape {
    position: absolute;
    right: 0;
    bottom: -20px;
    z-index: 1;
}

.avatar-edit-landscape input {
    display: none;
}

.avatar-edit-landscape 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-landscape input+label:hover {
    background: var(--assest-color);
    border-color: var(--body-color);
}

.avatar-edit-landscape 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-landscape .avatar-preview-landscape {
    width: 220px;
    height: 120px;
    position: relative;
    border-radius: 10%;
}

.avatar-upload-landscape .avatar-preview-landscape>img {
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 10%;
    background-repeat: no-repeat;
    background-position: center;
}


/* Loader */
#dvloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white-color);
    z-index: 9999;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* --- Loader Image --- */
#dvloader img {
    width: 300px;
    height: 300px;
    max-width: 25vw;
    max-height: 25vw;
    animation: loaderSpin 1.2s linear infinite;
}

/* --- Spinner Animation --- */
@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Hide Loader (optional JS) --- */
#dvloader.hidden {
    opacity: 0;
    pointer-events: none;
}

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

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

.cart-bg {
    background-color: var(--assest-color);
}

/* Import File */
.import-file {
    background-color: var(--body-bg-color);
    color: var(--black-color);
}

.import-file::file-selector-button {
    border-radius: 4px;
    color: var(--black-color);
    background-color: var(--body-bg-color);
    border: 1px solid var(--body-bg-color);
    height: 30px;
    cursor: pointer;
}

/* Side Menu Partition — clean section labels */
.partition {
    width: 100%;
    border-bottom: none;
    line-height: 1;
    margin: 14px 0 4px 0;
    padding: 0 4px;
}

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

/* ─── Demo Mode — status pill with animated dot ───────────────────────── */
.demo-mode-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-bg);
    border-radius: 10px;
    /* font-size: 0.80rem; */
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgb(var(--primary-rgb) / 0.10);
    transition: box-shadow 0.25s ease, transform 0.15s ease, border-color 0.25s ease;
    padding: 8px 14px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: default;
    flex-shrink: 0;
}

.hdr-demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-color);
    display: inline-block;
    flex-shrink: 0;
    animation: hdrDotPulse 2.4s ease-in-out infinite;
}

@keyframes hdrDotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}


/* ─── Language trigger — icon + locale code ───────────────────────────── */
.header .head-control .hdr-lang-trigger,
.header .head-control .hdr-profile-trigger {
    width: auto;
    padding: 0 10px;
    gap: 6px;
    min-width: 38px;
}

.hdr-lang-flag {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.hdr-lang-code {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: var(--text-primary);
    line-height: 1;
}

/* ─── Thin vertical separator inside hdr-actions ─────────────────────── */
.hdr-sep {
    display: block;
    width: 1px;
    height: 20px;
    background: rgb(var(--primary-rgb) / 0.08);
    border-radius: 1px;
    flex-shrink: 0;
    margin: 0 2px;
    align-self: center;
}

/* ─── Profile trigger — avatar ring + name + chevron ─────────────────── */
.hdr-avatar-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.18);
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header .head-control .hdr-profile-trigger:hover .hdr-avatar-ring {
    border-color: rgb(var(--primary-rgb) / 0.35);
    background: var(--primary-light);
}

.hdr-profile-name {
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text-primary);
    line-height: 1;
}

.hdr-chevron {
    color: var(--text-secondary);
    transition: transform 0.22s ease, color 0.2s ease;
    flex-shrink: 0;
}

.header .head-control .hdr-profile-trigger:hover .hdr-chevron {
    color: var(--text-primary);
    transform: rotate(180deg);
}

/* ─── Premium header dropdown ─────────────────────────────────────────── */
.hdr-dropdown {
    min-width: 168px;
    border-radius: 12px !important;
    border: 1px solid rgb(var(--primary-rgb) / 0.08) !important;
    box-shadow:
        0 8px 30px rgb(var(--primary-rgb) / 0.10),
        0 2px 8px rgb(var(--primary-rgb) / 0.06) !important;
    padding: 4px !important;
    background: var(--assest-color) !important;
    overflow: hidden;
}

.hdr-lang-item,
.hdr-dd-item {
    display: flex !important;
    align-items: center;
    gap: 9px;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    border-bottom: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.hdr-lang-item:hover,
.hdr-dd-item:hover {
    background: var(--primary-bg) !important;
    color: var(--text-primary) !important;
}

/* Checkmark: hidden by default, visible on active locale */
.hdr-lang-check {
    font-size: 0.65rem;
    color: var(--text-primary);
    opacity: 0;
    flex-shrink: 0;
    width: 12px;
    transition: opacity 0.15s ease;
}

.hdr-item-active .hdr-lang-check {
    opacity: 1;
}

.hdr-item-active {
    background: var(--primary-bg) !important;
    font-weight: 600;
}

/* Logout — soft red tint on hover */
.hdr-dd-logout {
    color: var(--red-color) !important;
}

.hdr-dd-logout:hover {
    background: color-mix(in srgb, var(--red-color) 10%, transparent) !important;
    color: var(--red-color) !important;
}

/* Logout icon box button */
.header .head-control .hdr-logout-btn i {
    color: var(--red-color);
}

.header .head-control .hdr-logout-btn:hover {
    background: color-mix(in srgb, var(--red-color) 8%, var(--primary-bg));
    border-color: rgb(var(--red-color-rgb) / 0.18);
}

/* ── Breadcrumb Bar ─────────────────────────────────────────────────── */
.page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 14px;
    padding: 12px 24px;
    box-shadow: 0 2px 12px rgb(var(--primary-rgb) / 0.06);
    margin-bottom: 4px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.page-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.page-header-info {
    min-width: 0;
}

.page-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
    line-height: 1.2;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--logo-color);
    text-decoration: none !important;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.bc-link:hover {
    opacity: 1;
    color: var(--logo-color);
}

.bc-sep {
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.bc-active {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Premium Button ─────────────────────────────────────────────────── */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-position 0.3s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

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

.admin-btn:active {
    transform: scale(0.97);
}

/* Primary — bottom-to-top gradient (mirrors login-btn-primary) */
.admin-btn-primary {
    background: linear-gradient(to top,
            var(--primary-color) 50%,
            var(--primary-light) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--text-primary);
    box-shadow: 0 1px 6px rgb(var(--primary-rgb) / 0.12);
}

.admin-btn-primary:hover {
    background-position: 0% 100%;
    color: var(--white-color);
    box-shadow: 0 4px 18px rgb(var(--primary-rgb) / 0.28);
}

/* Cancel / Ghost */
.admin-btn-cancel {
    background: linear-gradient(to top,
            rgb(var(--logo-color-rgb)) 50%,
            rgb(from var(--primary-color) r g b / 0.85) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--white-color);
    box-shadow: none;
    overflow: hidden;
    transition: background-position 0.3s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-btn-cancel:hover {
    background-position: 0% 100%;
    color: var(--white-color);

}

/* ── Card ───────────────────────────────────────────────────────────── */
.module-card {
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.07);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 2px 16px rgb(var(--primary-rgb) / 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.07);
}

.module-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.module-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.module-card-body {
    padding: 20px 24px 24px;
}

/* ── Form Elements ──────────────────────────────────────────────────── */
.form-field {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.field-required {
    color: var(--red-color);
    margin-left: 2px;
}

.field-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    border-radius: 10px;
    background: var(--assest-color);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.field-input:hover {
    border-color: var(--primary-light);
}

.field-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.07);
    margin-top: 8px;
}

/* ── Password show/hide toggle ──────────────────────────────────────── */
.pw-field-wrap {
    position: relative;
}

.pw-field-wrap .field-input {
    padding-right: 50px;
}

.pw-toggle-btn {
    position: absolute;
    top: 1.5px;
    right: 1.5px;
    bottom: 1.5px;
    width: 42px;
    background: rgb(var(--primary-rgb) / 0.04);
    border: none;
    border-left: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    border-radius: 0 8.5px 8.5px 0;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pw-toggle-btn:hover {
    background: rgb(var(--primary-rgb) / 0.09);
    color: var(--primary-color);
    border-left-color: rgb(var(--primary-rgb) / 0.22);
}

.pw-field-wrap .field-input:hover~.pw-toggle-btn {
    border-left-color: var(--primary-light);
}

.pw-field-wrap .field-input:focus~.pw-toggle-btn {
    border-left-color: var(--primary-color);
    background: var(--primary-bg);
}

/* ── Dropzone ───────────────────────────────────────────────────────── */
.img-dropzone {
    width: fit-content;
}

.dropzone-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 135px;
    border: 2px dashed rgb(var(--primary-rgb) / 0.2);
    border-radius: 12px;
    background: var(--primary-bg);
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.dropzone-area:hover {
    border-color: rgb(var(--primary-rgb) / 0.4);
    background: var(--primary-light);
}

.dropzone-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    text-align: center;
}

.dropzone-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 2px;
    box-shadow: 0 1px 5px rgb(var(--primary-rgb) / 0.08);
}

.dropzone-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.dropzone-or {
    font-size: 10px;
    /* color: var(--text-secondary); */
    margin: 0;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dropzone-btn {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    transition: background 0.2s ease, border-color 0.2s ease;
}


.dropzone-hint {
    display: none;
}

/* Preview image inside dropzone */
.dropzone-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    display: none;
}

/* When image is selected, show preview and hide content */
.img-dropzone.dropzone-has-image .dropzone-content {
    display: none;
}

.img-dropzone.dropzone-has-image .dropzone-preview {
    display: block;
}

/* Edit modal dropzone — same square size */
.img-dropzone-sm .dropzone-area {
    width: 128px;
    height: 128px;
}

/* ── Search ─────────────────────────────────────────────────────────── */
.table-search-wrap {
    padding: 16px 20px 0;
}

.search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    border-radius: 10px;
    padding: 0 14px;
    height: 42px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.search-inner:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: var(--assest-color);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    font-family: var(--font);
    color: var(--text-primary);
    height: 100%;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ── Table ──────────────────────────────────────────────────────────── */
.data-table-wrap {
    padding: 16px 20px 20px;
    overflow-x: auto;
}

.data-table-wrap .table {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin: 0;
}

.data-table-wrap thead .table-head-row th {
    background: var(--primary-light) !important;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 12px 14px;
    border-bottom: 1.5px solid rgb(var(--primary-rgb) / 0.1) !important;
    border-top: none !important;
    text-transform: uppercase;
    font-size: 11.5px;
}

.data-table-wrap tbody tr td {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
    border-color: rgb(var(--primary-rgb) / 0.06) !important;
}

.data-table-wrap tbody tr {
    transition: background 0.15s ease;
}

.data-table-wrap tbody tr:nth-child(even) td {
    background: var(--primary-bg) !important;
}

.data-table-wrap tbody tr:hover td {
    background: var(--primary-bg) !important;
}

/* Table image cell */
.data-table-wrap .img-thumbnail {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-table-wrap .img-thumbnail:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgb(var(--primary-rgb) / 0.15);
}

/* ── (old .data-table-wrap .show-btn/.hide-btn removed — replaced by .status-toggle below) ── */

/* Override edit-delete-btn inside table — bottom-to-top animation like Save button */
.data-table-wrap .edit-delete-btn,
.edit-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, var(--primary-color) 50%, var(--primary-bg) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    cursor: pointer;
    overflow: hidden;
    transition: background-position 0.3s ease, color 0.25s ease,
        border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 13px;
    padding: 0;
}

.data-table-wrap .edit-delete-btn:hover,
.edit-delete-btn:hover {
    background-position: 0% 100%;
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.25);
}

.data-table-wrap .edit-delete-btn:focus,
.edit-delete-btn:focus {
    outline: none;
    box-shadow: none;
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.module-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgb(var(--primary-rgb) / 0.16);
    overflow: hidden;
    background: var(--assest-color);
}

.module-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--assest-color);
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.08) !important;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.modal-title {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 !important;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(to top,
            rgb(var(--logo-color-rgb)) 50%,
            rgb(from var(--primary-color) r g b / 0.85) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 14px;
    transition: background-position 0.3s ease, color 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.modal-close-btn:hover {
    background-position: 0% 100%;
    color: var(--white-color);
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.22);
}

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

.module-modal-body {
    padding: 22px 24px !important;
    background: var(--assest-color);
}

.module-modal-footer {
    padding: 16px 24px !important;
    background: var(--assest-color);
    border-top: 1px solid rgb(var(--primary-rgb) / 0.07) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Sort Modal ─────────────────────────────────────────────────────── */
.sort-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    padding: 8px 12px;
    background: var(--primary-bg);
    border-radius: 8px;
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
}

.sort-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sort-list .listitemClass {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--assest-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1) !important;
    border-radius: 10px;
    cursor: grab;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.sort-list .listitemClass:hover {
    border-color: rgb(var(--primary-rgb) / 0.25) !important;
    box-shadow: 0 2px 10px rgb(var(--primary-rgb) / 0.1);
    background: var(--primary-bg);
}

.sort-list .listitemClass:active {
    cursor: grabbing;
    box-shadow: 0 4px 18px rgb(var(--primary-rgb) / 0.16);
}

.drag-handle {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.5;
    flex-shrink: 0;
}

.sort-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .page-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .page-header-bar .admin-btn {
        width: 100%;
    }

    .module-card-header,
    .module-card-body,
    .table-search-wrap,
    .data-table-wrap,
    .module-modal-header,
    .module-modal-body,
    .module-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ═══════════════════════════════════════════════════════
   Roles & Permissions — page-specific styles
   ═══════════════════════════════════════════════════════ */
.role-name-cell {
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.1px;
}

/* ── Combined Filter Bar ─────────────────────────────── */
.perm-filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.07);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 2px 12px rgb(var(--primary-rgb) / 0.05);
    flex-wrap: wrap;
}

/* Left cluster: toggle + count badge */
.perm-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Thin vertical divider between toggle area and search */
.perm-filter-divider {
    width: 1px;
    height: 28px;
    background: rgb(var(--primary-rgb) / 0.10);
    flex-shrink: 0;
}

/* Select All toggle */
.sa-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.sa-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sa-toggle-track {
    position: relative;
    width: 46px;
    height: 25px;
    background: rgb(var(--primary-rgb) / 0.15);
    border-radius: 50px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.sa-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: 0 1px 4px rgb(var(--primary-rgb) / 0.28);
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-toggle-input:checked+.sa-toggle-track {
    background: var(--primary-color);
}

.sa-toggle-input:checked+.sa-toggle-track .sa-toggle-knob {
    left: 24px;
}

.sa-toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Permission count chip */
.perm-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.10);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.perm-count-sep,
.perm-count-label {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Search input — grows to fill remaining space */
.perm-search-inner {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.10);
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.perm-search-inner:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / 0.08);
    background: var(--assest-color);
}

.perm-search-icon {
    color: var(--text-secondary);
    font-size: 12px;
    flex-shrink: 0;
}

.perm-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 0;
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font);
}

.perm-search-input::placeholder {
    color: var(--text-secondary);
}

.perm-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: rgb(var(--primary-rgb) / 0.12);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 9px;
    padding: 0;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.perm-search-clear:hover {
    background: var(--primary-light);
}

/* Live result label */
.perm-search-result {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Masonry Layout ───────────────────────────────────── */
.perm-modules-masonry {
    column-count: 3;
    column-gap: 16px;
}

.perm-module-col {
    /* Prevent a card from splitting across two columns */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    /* inline-block + width:100% is the classic masonry fix */
    display: inline-block;
    width: 100%;
    vertical-align: top;
    margin-bottom: 16px;
}

/* ── Permission Module Card ───────────────────────────── */
.perm-module-card {
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.07);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgb(var(--primary-rgb) / 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.perm-module-card:hover {
    box-shadow: 0 4px 24px rgb(var(--primary-rgb) / 0.10);
    border-color: rgb(var(--primary-rgb) / 0.13);
}

.perm-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.07);
    background: var(--assest-color);
}

.perm-module-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.perm-module-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--primary-bg);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.perm-module-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.perm-module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
}

.perm-module-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Permission Item (mini toggle + label) ───────────── */
.perm-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    background: var(--body-bg-color);
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.perm-item:hover {
    background: var(--primary-bg);
    border-color: rgb(var(--primary-rgb) / 0.16);
}

.perm-item:has(.perm-item-input:checked) {
    background: var(--primary-bg);
    border-color: var(--primary-light);
}

.perm-item-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.perm-item-track {
    position: relative;
    width: 32px;
    height: 17px;
    background: rgb(var(--primary-rgb) / 0.15);
    border-radius: 50px;
    flex-shrink: 0;
    transition: background 0.22s ease;
}

.perm-item-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: 0 1px 3px rgb(var(--primary-rgb) / 0.25);
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.perm-item-input:checked+.perm-item-track {
    background: var(--primary-color);
}

.perm-item-input:checked+.perm-item-track .perm-item-knob {
    left: 17px;
}

.perm-item-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    transition: color 0.18s ease;
}

.perm-item-input:checked~.perm-item-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── No Results State ─────────────────────────────────── */
.perm-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.07);
    border-radius: 12px;
    margin-bottom: 16px;
}

.perm-no-results i {
    font-size: 18px;
    opacity: 0.5;
}

/* ── Sticky Action Footer ─────────────────────────────── */
.perm-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* buttons flush to the right */
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.07);
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgb(var(--primary-rgb) / 0.08);
    padding: 12px 20px;
    margin-bottom: 8px;
}

.perm-sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1199px) {
    .perm-modules-masonry {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .perm-modules-masonry {
        column-count: 1;
    }

    .perm-filter-bar {
        padding: 10px 14px;
        gap: 10px;
    }

    .perm-filter-divider {
        display: none;
    }

    .perm-count-badge {
        display: none;
    }

    .perm-search-result {
        display: none;
    }

    .perm-filter-left {
        width: 100%;
    }

    .perm-search-inner {
        width: 100%;
    }

    .perm-sticky-footer {
        justify-content: stretch;
    }

    .perm-sticky-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

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

.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;
    }
}

.install-footer {
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--black-color);
    background-color: var(--primary-color);
}

.install-footer a {
    color: var(--white-color);
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}

.install-footer a:hover {
    color: var(--white-color);
}

.install-social-icons {
    margin-top: 10px;
}

.install-social-icons a {
    color: var(--white-color);
    font-size: 20px;
    text-decoration: none;
}

.install-social-icons a:hover {
    color: var(--black-color);
}

.install-footer .content {
    position: relative;
    z-index: 1;
}

/* btn Install */
.btn-install {
    background: linear-gradient(to top,
            rgb(var(--logo-color-rgb)) 50%,
            rgb(from var(--primary-color) r g b / 0.85) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--white-color);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 10px 40px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.15s ease !important;

}
.btn-install:hover {
    color: var(--white-color);
    background-position: 0% 100%;
    box-shadow:
        0 0 80px rgb(var(--logo-color-rgb) / 0.25),
        0 6px 28px rgb(var(--logo-color-rgb) / 0.55),
        0 8px 32px rgb(var(--logo-color-rgb) / 0.18);
}

/* 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;
    -webkit-transition: all 0.3s;
    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;
    align-items: center;
    height: 42px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    border-radius: 10px;
    overflow: hidden;
    background: var(--assest-color);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.colorpicker-component:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.colorpicker {
    border: none;
    border-right: 1.5px solid rgb(var(--primary-rgb) / 0.10);
    width: 44px;
    height: 100%;
    cursor: pointer;
    padding: 3px 4px;
    margin: 0;
    flex-shrink: 0;
    background: transparent;
}

.hexcolor {
    border: none;
    padding: 0 12px;
    flex: 1;
    min-width: 0;
    outline: none;
    font-family: var(--font);
    color: var(--text-primary);
    background: transparent;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Hide-Show Btn */
.show-btn,
.hide-btn {
    font-weight: bold;
    font-size: 14px !important;
    padding: 6px 18px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px dashed transparent;
    outline: none;
    color: var(--white-color);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border 0.3s ease,
        box-shadow 0.3s ease;
}

/* Show Button */
.show-btn {
    background: var(--green);
}

.show-btn:hover {
    background: var(--white-color);
    color: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 12px var(--green);
}

/* Hide Button */
.hide-btn {
    background: var(--red);
}

.hide-btn:hover {
    background: var(--white-color);
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 12px var(--red);
}

/* Remove focus glow */
.show-btn:focus,
.hide-btn:focus {
    outline: none;
    box-shadow: none;
}

.show-hide {
    font-weight: bold;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border: 2px dashed transparent;
    color: var(--white-color);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border 0.3s ease,
        box-shadow 0.3s ease;
}

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

}

.btn-hide:hover {
    background-color: transparent !important;
    border: 2px dashed var(--red) !important;
    color: var(--red) !important;
    box-shadow: 0 0 12px var(--red);
}

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

.btn-show:hover {
    background-color: transparent !important;
    border: 2px dashed var(--green) !important;
    color: var(--green) !important;
    box-shadow: 0 0 12px var(--green);
}

/* ═══════════════════════════════════════════════════════════════
   Status Toggle — reusable pill switch + label component
   ═══════════════════════════════════════════════════════════════ */
.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    outline: none;
    user-select: none;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.15s ease;
}

.status-toggle:hover {
    opacity: 0.82;
}

.status-toggle:active {
    transform: scale(0.96);
    opacity: 1;
}

.status-toggle:focus {
    outline: none;
}

/* Pill track */
.status-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 50px;
    flex-shrink: 0;
    transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* White knob */
.status-toggle-switch::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Label text */
.status-toggle-label {
    /* font-size: 12px; */
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: color 0.28s ease;
}

/* Active — green, knob on the right */
.status-toggle.is-active .status-toggle-switch {
    background-color: var(--green-color);
}

.status-toggle.is-active .status-toggle-switch::after {
    left: 23px;
    /* 44px track − 18px knob − 3px gap */
}

.status-toggle.is-active .status-toggle-label {
    color: var(--green-color);
}

/* Hide — red, knob on the left */
.status-toggle.is-hide .status-toggle-switch {
    background-color: var(--red-color);
}

.status-toggle.is-hide .status-toggle-switch::after {
    left: 3px;
}

.status-toggle.is-hide .status-toggle-label {
    color: var(--red-color);
}

.upload-btn {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.upload-btn:hover {
    background: var(--body-bg-color) !important;
    border: 2px dashed var(--black-color) !important;
    color: var(--black-color) !important;
}

/* Custom-Card */
.custom-card {
    background-color: var(--assest-color);
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.custom-card .card-body h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.custom-card .card-body span {
    font-size: 1.2rem;
    color: var(--partition-color);
    font-weight: bold;
}

.custom-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.card-icon-primary {
    padding: 15px;
    border-radius: 50%;
    color: var(--assest-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color) !important;
}

.card-color-primary:hover {
    border-color: var(--primary-color);
}

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

/* Earning-Card */
.card-earning {
    background-color: var(--assest-color);
    border-radius: 10px;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    width: 100%;
}

.card-align {
    display: flex;
    justify-content: space-between;
}

.earning-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: var(--partition-color);
}

.earning-amount {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

.earning-divider {
    width: 2px;
    height: 60px;
    background-color: var(--body-color);
    margin: 0 15px;
}

/* Landscape Card */
.landscape-card {
    background-color: var(--assest-color) !important;
    padding: 8px;
    margin: 10px 0;
    border: 3px solid transparent;
}

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

.wallet-image {
    height: 180px;
    width: 180px;
    border-radius: 10px;
}

.landscape-card-title {
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landscape-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landscape-card-border {
    border-top: 2px dashed var(--primary-color) !important;
    margin: 10px 0px;
}

.landscape-card .ribbon-top-left {
    top: -3px;
    left: -3px;
}

/** Login Page - Premium Full-Screen Overlay **/

.login-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100vh;
    width: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 40px 6%;
    box-sizing: border-box;
    overflow: hidden;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgb(var(--login-overlay-rgb) / 0.46) 0%, rgb(var(--login-overlay-rgb) / 0.72) 100%);
    z-index: 0;
}

.login-brand {
    position: absolute;
    top: 38px;
    left: 44px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: contain;
    padding: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-brand-name {
    color: var(--logo-color);
    font-size: clamp(20px, 1.8vw, 36px);
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.login-brand-tagline {
    color: rgb(var(--black-rgb) / 0.72);
    font-size: 13px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-form-card {
    background: linear-gradient(180deg, rgb(var(--login-surface-rgb) / 0.92) 0%, rgb(var(--login-surface-dark-rgb) / 0.96) 100%);
    border: 1px solid rgb(var(--white-rgb) / 0.065);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 44px 40px 36px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form-card:hover {
    border-color: rgb(var(--logo-color-rgb) / 0.35);

    box-shadow:
        0 0 60px rgb(var(--logo-color-rgb) / 0.18),
        0 6px 32px rgb(var(--logo-color-rgb) / 0.08),
        0 0 25px rgb(var(--black-rgb) / 0.45);

}

.login-user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgb(var(--logo-color-rgb) / 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgb(var(--logo-color-rgb) / 0.30);
}

.login-user-avatar i {
    font-size: 1.7rem;
    color: rgb(var(--logo-color-rgb) / 0.85);
}

.login-form-card h2 {
    color: rgb(var(--white-rgb));
    text-align: center;
    font-size: 1.68rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.2px;
}

.login-subtitle {
    color: rgb(var(--white-rgb) / 0.62);
    text-align: center;
    font-size: 0.88rem;
    margin: 0 0 28px;
    line-height: 1.55;
}

.login-field {
    margin-bottom: 6px;
}

.login-field-label {
    display: block;
    color: rgb(var(--white-rgb) / 0.55);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.login-input-wrap .login-field-icon {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(var(--logo-color-rgb) / 0.08);
    border-right: 1px solid rgb(var(--logo-color-rgb) / 0.28);
    border-radius: 9px 0 0 9px;
    color: rgb(var(--logo-color-rgb) / 0.72);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.login-input-wrap:focus-within .login-field-icon {
    background: rgb(var(--logo-color-rgb) / 0.14);
    border-right-color: rgb(var(--logo-color-rgb) / 0.62);
    color: var(--logo-color);
}

.login-input-wrap input {
    width: 100%;
    height: 48px;
    border: 1px solid rgb(var(--logo-color-rgb) / 0.28);
    /* background: rgb(var(--white-rgb) / 0.05); */
    border-radius: 10px;
    color: rgb(var(--white-rgb));
    font-size: 0.93rem;
    padding: 0 46px 0 54px;
    outline: none;
    font-family: var(--font);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.22s ease;
    box-sizing: border-box;
}

.login-input-wrap input::placeholder {
    color: rgb(var(--white-rgb) / 0.38);
    font-size: 0.87rem;
}

.login-input-wrap input:focus {
    border-color: rgb(var(--logo-color-rgb) / 0.62);
    box-shadow: 0 0 0 3px rgb(var(--logo-color-rgb) / 0.12);
    background: rgb(var(--black-rgb) / 0.075);
}

.login-eye-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgb(var(--logo-color-rgb) / 0.52);
    font-size: 0.88rem;
    z-index: 1;
    transition: color 0.2s ease;
    user-select: none;
}

.login-eye-toggle:hover {
    color: var(--logo-color);
}

.login-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.login-btn-primary {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(to top,
            rgb(var(--logo-color-rgb)) 50%,
            rgb(from var(--primary-color) r g b / 0.85) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--white-color);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    overflow: hidden;
    position: relative;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.15s ease !important;
}

.login-btn-primary:hover {
    background-position: 0% 100%;
    box-shadow:
        0 0 80px rgb(var(--logo-color-rgb) / 0.25),
        0 6px 28px rgb(var(--logo-color-rgb) / 0.55),
        0 8px 32px rgb(var(--logo-color-rgb) / 0.18);
}

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

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgb(var(--white-rgb) / 0.10);
}

.login-divider span {
    color: rgb(var(--logo-color-rgb) / 0.45);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-btn-otp {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: rgb(var(--white-rgb) / 0.05);
    border: 1px solid rgb(var(--logo-color-rgb) / 0.28);
    color: rgb(var(--logo-color-rgb) / 0.80);
    font-size: 0.93rem;
    font-weight: 500;
    font-family: var(--font);
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.login-btn-otp:hover {
    background: rgb(var(--white-rgb) / 0.09);
    border-color: rgb(var(--logo-color-rgb) / 0.50);
    box-shadow: 0 0 16px rgb(var(--logo-color-rgb) / 0.15);
}

.login-btn-otp:focus {
    outline: none;
}

.login-secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.login-secure-text i {
    color: rgb(var(--logo-color-rgb) / 0.55);
    font-size: 0.78rem;
}

.login-secure-text span {
    color: rgb(var(--white-rgb) / 0.42);
    font-size: 0.76rem;
    letter-spacing: 0.2px;
}

@media (max-width: 992px) {
    .login-section {
        justify-content: center;
        padding: 120px 24px 50px;
    }

    .login-brand {
        top: 32px;
        left: 32px;
    }

    .login-form-card {
        max-width: 460px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 110px 16px 44px;
    }

    .login-brand {
        top: 24px;
        left: 24px;
        gap: 10px;
    }

    .login-brand-logo {
        width: 40px;
        height: 40px;
    }

    .login-brand-name {
        font-size: 1.2rem;
    }

    .login-form-card {
        padding: 36px 26px 30px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 98px 12px 38px;
    }

    .login-brand {
        top: 18px;
        left: 18px;
        gap: 9px;
    }

    .login-brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .login-brand-name {
        font-size: 1.1rem;
    }

    .login-brand-tagline {
        font-size: 0.62rem;
        letter-spacing: 1.2px;
    }

    .login-form-card {
        padding: 30px 18px 26px;
        border-radius: 18px;
    }

    .login-form-card h2 {
        font-size: 1.4rem;
    }
}

/* --- fade + slide up for text & headings --- */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- fade + scale for form box --- */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- optional logo bounce --- */
@keyframes logoBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* --- animation classes --- */
.animate-fadeup {
    opacity: 0;
    animation-name: fadeUp;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.animate-scale {
    opacity: 0;
    animation-name: scaleIn;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.animate-logo {
    opacity: 0;
    animation-name: logoBounce;
    animation-duration: 700ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

/* --- delay helpers --- */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-250 {
    animation-delay: 0.25s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-350 {
    animation-delay: 0.35s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-450 {
    animation-delay: 0.45s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.modal-content {
    background-color: var(--assest-color);
}

.modal-header {
    border-bottom: 2px solid var(--body-color);
}

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

.modal-footer {
    border-top: 2px solid var(--body-color);

}

.wallet-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 10px;
    background: var(--primary-bg);
    border: 1.5px solid var(--primary-light);
    box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.08);
    white-space: nowrap;
}

.wallet-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 10px;
    flex-shrink: 0;
}

.wallet-amount {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--green-color);
    letter-spacing: 0.2px;
}

.system-note {
    font-weight: 600;
    font-size: 16px;
    color: var(--partition-color);
}

.card-header.system-text {
    color: var(--primary-color);
}

.book-card {
    border: none;
    -webkit-box-shadow: 0 1px 15px var(--assest-color);
    box-shadow: 0 1px 15px var(--assest-color);
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: var(--body-color);
    align-items: center;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px;
}

.book-card:hover {
    -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.17);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.17);
}

.book-image {
    height: 150px;
    /* width: 40% !important; */
    flex-shrink: 0;
}

.book-image img {
    width: 100% !important;
    object-fit: cover;
}


.book-title {
    font-weight: 700;
    text-transform: capitalize;
    font-size: .9rem;
    min-width: 0;
    flex-shrink: 1;
    overflow-wrap: break-word;
    /* color: var(--partition-color); */
}

.book-wrap {
    padding: 0 !important;
    min-width: 0;
}

.book-labels {
    font-size: 14px !important;
    /* color: var(--partition-color); */
    font-weight: 500;
}

.book-detail {
    font-size: 14px !important;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-content:hover {
    color: var(--white-color);
    box-shadow: 0 0 12px var(--primary-color);

}

.video-card {
    border-radius: 15px;
    border: 3px solid var(--assest-color);
    margin: 15px 0;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.video-card:hover {
    border: 2px solid var(--primary-color);
    -webkit-box-shadow: 0 15px 30px var(--primary-color);
    box-shadow: 0 5px 10px var(--primary-color);
}

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

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

.video-card .play-btn {
    background: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: none;
}

.video-card .card-body {
    padding: 10px 10px !important;
    position: relative;
    background: var(--body-color);
}

.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;
    -webkit-transform: rotate(90deg);
    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;
    -o-object-fit: contain;
    object-fit: contain;
    margin-right: 10px;
}

.video-card .card-body .card-title {
    color: var(--black-color);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .card-body .card-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.video-card .card-body .card-details p {
    margin: 0;
    font-weight: 500;
    color: var(--assest-color);
}

.video-card .card-body .card-details p.tag {
    color: var(--body-color);
}

.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;
    /* border-radius: 10px; */
}

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

.limit-text {
    width: 40ch;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/** Schedule-Timing **/
.schedule-group {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--white-color);
    overflow: hidden;
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--assest-color);
    padding: 15px 20px;
    cursor: pointer;
}

.schedule-header label {
    color: var(--partition-color);
}

.slot-card label {
    color: var(--black-color);
}

.schedule-header input[type="date"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.remove-date-btn {
    background-color: var(--red-color);
    color: var(--white-color);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.schedule-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px;
}

.schedule-body.open {
    padding-top: 20px;
    padding-bottom: 20px;
    max-height: 1000px;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot-card {
    background: var(--white-color);
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.remove-slot-btn {
    background-color: var(--red-color);
    color: var(--white-color);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.add-slot-btn,
.add-date-btn {
    background-color: var(--green-color);
    color: var(--white-color);
    padding: 6px 10px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;

}

.slot-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.slot-times .badge {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 7px 11px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .slot-card {
        flex-direction: column;
    }
}

.appointment-card {
    background: var(--assest-color);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
}

.appointment-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.appointment-label {
    width: 200px;
    font-weight: 600;
    color: var(--partition-color);
}

.appointment-value {
    flex: 1;
    color: var(--partition-color);
}

.appointment-left {
    flex: 2;
}

.appointment-left h5 {
    color: var(--partition-color);
}

.attachments .file {
    display: inline-block;
    background: var(--body-bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 5px 8px 5px 0;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.attachments a {
    color: var(--text-dark);
    font-weight: 500;
}

.attachments .file:hover {
    background: var(--border-light);
}

.note-box {
    background: var(--body-bg-color);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--black-color);
    font-size: 15px;
    line-height: 1.6;
}

.price-box {
    background: var(--body-bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.price-title {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.instructor-img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;

}

.card-user {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: var(--assest-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: stretch;
}

.card-user .avatar {
    flex-shrink: 0;
    width: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--border-light);
    display: flex;
}

.card-user .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-user .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-user .info .name {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--partition-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-user .info .meta {
    font-size: 13px;
    color: var(--muted-color);
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-user .info .meta .full-name strong {
    font-size: 14px;
    color: var(--black-50);
    font-weight: 600;
}

.card-user .info .meta .email,
.fullname {
    font-size: 14px;
    color: var(--black-50);
    word-break: break-all;
}

.card-user .info .meta .joined {
    font-size: 13.5px;
    color: var(--black-50);
}

.flow-sort-order-card {
    background-color: var(--body-color) !important;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 24px;
}

.quiz-badge {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 6px 12px;
    margin-right: 10px;
    font-size: 12px;
    display: inline-block;
}

/* Tablet size */
@media (min-width: 768px) {
    .quiz-badge {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* Desktop size */
@media (min-width: 1200px) {
    .quiz-badge {
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* Large desktop */
@media (min-width: 1600px) {
    .quiz-badge {
        padding: 15px 55px;
        font-size: 18px;
    }
}

.user-truncate-text {
    display: inline-block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.doctor-card {
    background-color: var(--assest-color);
    border-radius: 16px;
    transition: 0.3s ease;
    min-height: 140px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.doctor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Left Image Section */
.avatar-wrapper {
    flex: 0 0 40%;
    height: auto;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.doctor-card {
    background-color: var(--assest-color);
    border-radius: 16px;
    transition: 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    /* gap: 16px; */
    width: 100%;
}

.doctor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.avatar-wrapper {
    flex-shrink: 0;
}

.avatar-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    /* border: 3px solid var(--border-default); */
}

.doctor-details {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-size: 16px;
    font-weight: bold;
    word-break: break-word;
    color: var(--partition-color);
}

.doctor-fullname {
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    color: var(--partition-color);
}


/* ── Textarea override for field-input ─────────────────────────────── */
textarea.field-input {
    height: auto;
    min-height: 82px;
    padding: 10px 14px;
    resize: vertical;
}

/* # sourceMappingURL=style.css.map */

/* ══════════════════════════════════════════════════════════════════════
   USER MODULE — Premium design (shares Category Module design system)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Export + Notes bar ─────────────────────────────────────────────── */
.user-export-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.user-notes-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 10px;
    flex: 1;
    min-width: 0;
}

.user-notes-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--assest-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgb(var(--primary-rgb) / 0.1);
}

.user-notes-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.user-export-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.user-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    background: var(--assest-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-primary);
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

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

.user-export-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
    box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.1);
}

.export-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--primary-bg);
    transition: background 0.22s ease;
}

.user-export-excel .export-btn-icon {
    color: var(--green-color);
}

.user-export-csv .export-btn-icon {
    color: var(--primary-color);
}

.user-export-pdf .export-btn-icon {
    color: var(--red-color);
}

.user-export-excel:hover .export-btn-icon {
    background: var(--primary-light);
}

.user-export-csv:hover .export-btn-icon {
    background: var(--primary-light);
}

.user-export-pdf:hover .export-btn-icon {
    background: var(--primary-light);
}

/* ── Premium Filter Bar (search + dropdowns) ─────────────────────────── */
.user-filter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}

.user-search-inner {
    flex: 1;
    min-width: 180px;
}

.user-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Custom styled select wrapper */
.user-filter-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    border-radius: 10px;
    padding: 0 10px 0 12px;
    height: 42px;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.user-filter-select-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: var(--assest-color);
}

.user-filter-icon {
    color: var(--text-secondary);
    font-size: 12px;
    flex-shrink: 0;
}

.user-filter-select {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text-primary);
    font-weight: 600;
    height: 100%;
    padding-right: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 100px;
}

.user-filter-caret {
    font-size: 9px;
    color: var(--text-secondary);
    flex-shrink: 0;
    pointer-events: none;
}

/* ── User Type Badges (icon chips) ──────────────────────────────────── */
.user-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 5px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1.5px solid transparent;
    line-height: 1;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

/* Solid icon circle inside every badge */
.user-type-badge .type-icon-wrap {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* font-size: 9px; */
    flex-shrink: 0;
    color: var(--white-color);
}

/* OTP / Mobile — primary navy theme */
.user-type-badge.badge-mobile {
    background: color-mix(in srgb, var(--blue-color) 11%, var(--assest-color));
    color: var(--blue-color);
    border-color: color-mix(in srgb, var(--blue-color) 28%, transparent);
}

.user-type-badge.badge-mobile .type-icon-wrap {
    background: var(--blue-color);
}

/* Gmail / Google — red theme */
.user-type-badge.badge-google {
    background: color-mix(in srgb, var(--red-color) 11%, var(--assest-color));
    color: var(--red-color);
    border-color: color-mix(in srgb, var(--red-color) 28%, transparent);
}

.user-type-badge.badge-google .type-icon-wrap {
    background: var(--red-color);
}

/* Apple — dark/charcoal theme */
.user-type-badge.badge-apple {
    background: color-mix(in srgb, var(--black-color) 8%, var(--assest-color));
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--black-color) 22%, transparent);
}

.user-type-badge.badge-apple .type-icon-wrap {
    background: var(--text-primary);
}

/* Normal — green/verified theme */
.user-type-badge.badge-normal {
    background: color-mix(in srgb, var(--green-color) 11%, var(--assest-color));
    color: var(--green-color);
    border-color: color-mix(in srgb, var(--green-color) 28%, transparent);
}

.user-type-badge.badge-normal .type-icon-wrap {
    background: var(--green-color);
}

/* ── User avatar in table ────────────────────────────────────────────── */
.user-avatar {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgb(var(--primary-rgb) / 0.15);
}

/* ── Name + username cell ────────────────────────────────────────────── */
.user-name-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.user-full-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.user-username {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Contact cell ────────────────────────────────────────────────────── */
.user-contact-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.user-contact-mobile {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.user-contact-email {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .user-export-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-notes-box {
        width: 100%;
    }

    .user-export-btns {
        width: 100%;
        justify-content: flex-start;
    }

    .user-filter-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .user-filter-group {
        flex-direction: column;
        width: 100%;
    }

    .user-filter-select-wrap {
        width: 100%;
    }

    .user-filter-select {
        width: 100%;
    }
}

/* ── Verification column: custom dropdown ───────────────────────── */
.vst-wrap {
    position: relative;
    display: inline-block;
}

.vst-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    background: var(--primary-bg);
    transition: all 0.18s ease;
    white-space: nowrap;
    line-height: 1;
}

.vst-btn:focus {
    outline: none;
}

.vst-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    filter: saturate(0.7);
}

.vst-lock {
    font-size: 9px;
    opacity: 0.5;
    margin-left: 2px;
}

.vst-btn.vst-pending {
    color: var(--orange-color);
    border-color: color-mix(in srgb, var(--orange-color) 35%, transparent);
    background: color-mix(in srgb, var(--orange-color) 8%, var(--primary-bg));
}

.vst-btn.vst-approved {
    color: var(--green-color);
    border-color: color-mix(in srgb, var(--green-color) 35%, transparent);
    background: color-mix(in srgb, var(--green-color) 8%, var(--primary-bg));
}

.vst-btn.vst-rejected {
    color: var(--red-color);
    border-color: color-mix(in srgb, var(--red-color) 35%, transparent);
    background: color-mix(in srgb, var(--red-color) 8%, var(--primary-bg));
}

.vst-btn .vst-caret {
    font-size: 9px;
    opacity: 0.65;
    transition: transform 0.2s;
    margin-left: 2px;
}

.vst-btn.open .vst-caret {
    transform: rotate(180deg);
}

/* Panel — fixed-positioned to escape DataTable overflow clipping */
.vst-panel {
    position: fixed;
    z-index: 9999;
    min-width: 148px;
    background: var(--white-color);
    border: 1.5px solid var(--primary-light);
    border-radius: 10px;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text-primary) 14%, transparent);
    padding: 5px;
    display: none;
}

.vst-panel.open {
    display: block;
}

.vst-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.14s ease;
    color: var(--text-primary);
}

.vst-option:hover {
    background: color-mix(in srgb, var(--primary-color) 6%, var(--primary-bg));
}

.vst-option.vst-opt-sel {
    font-weight: 700;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--primary-bg));
}

.vst-opt-pending {
    color: var(--orange-color);
}

.vst-opt-approved {
    color: var(--green-color);
}

.vst-opt-rejected {
    color: var(--red-color);
}

.vst-opt-approved:focus,
.vst-opt-approved:focus-visible,
.vst-opt-approved:active,
.vst-opt-rejected:focus,
.vst-opt-rejected:focus-visible,
.vst-opt-rejected:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* ══════════════════════════════════════════════════════════════════════
   SELECT2 — Premium override (used by Blog, Add, Edit pages)
   ══════════════════════════════════════════════════════════════════════ */
.select2-container--default .select2-selection--single {
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    background: var(--assest-color);
    display: flex;
    align-items: center;
    font-family: var(--font);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: var(--font);
    line-height: 40px;
    padding-left: 14px;
    padding-right: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    width: 36px;
    right: 2px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-secondary) transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-top: -3px;
}

.select2-container--default.select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent var(--primary-color) transparent;
    border-width: 0 4px 5px 4px;
}

/* Dropdown panel */
.select2-dropdown {
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgb(var(--primary-rgb) / 0.14);
    background: var(--assest-color);
    overflow: hidden;
    font-family: var(--font);
}

.select2-container--default .select2-search--dropdown {
    padding: 10px 10px 6px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--primary-bg);
    outline: none;
    transition: border-color 0.22s ease;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-color);
}

.select2-results__option {
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--text-primary);
    font-family: var(--font);
    transition: background 0.14s ease, color 0.14s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary-bg);
    color: var(--primary-color);
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}

/* ══════════════════════════════════════════════════════════════════════
   BLOG MODULE — Premium CMS Grid Card Styles
   ══════════════════════════════════════════════════════════════════════ */

/* ── Filter Bar ─────────────────────────────────────────────────────── */
.blog-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 12px;
    flex-wrap: wrap;
}

.blog-search-inner {
    flex: 1;
    min-width: 200px;
}

.blog-tutor-filter {
    width: 260px;
    flex-shrink: 0;
}

.blog-tutor-filter .field-input {
    height: 42px;
}

/* Force Select2 container to fill its wrapper width */
.blog-tutor-filter .select2-container {
    width: 100% !important;
}

/* ── Blog Grid — 5 cols desktop, responsive down ────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    padding: 16px 20px 20px;
}

/* ── Blog Card ──────────────────────────────────────────────────────── */
.blog-card {
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    box-shadow: 0 2px 10px rgb(var(--primary-rgb) / 0.06);
    animation: blogCardIn 0.3s ease both;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgb(var(--primary-rgb) / 0.15);
    border-color: rgb(var(--primary-rgb) / 0.18);
}

@keyframes blogCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cover image */
.blog-card-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-bg);
}

.blog-card-cover>a {
    display: block;
    height: 100%;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease;
    display: block;
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.06);
}

/* Card body */
.blog-card-body {
    padding: 16px 18px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
}

.blog-card-author-avatar-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 12px;
}

.blog-card-author-info {
    min-width: 0;
    flex: 1;
}

.blog-card-author-name {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-author-username {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 12px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
    background: var(--primary-bg);
    flex-shrink: 0;
}

.blog-card-footer-left {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.blog-card-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.blog-card-footer .d-flex {
    gap: 6px;
    justify-content: flex-end !important;
    width: auto;
}

.blog-card-footer .edit-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, var(--primary-color) 50%, var(--primary-bg) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    cursor: pointer;
    overflow: hidden;
    transition: background-position 0.3s ease, color 0.25s ease,
        border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 12px;
    padding: 0;
}

.blog-card-footer .edit-delete-btn:hover {
    background-position: 0% 100%;
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.25);
}

.blog-card-footer form {
    margin: 0;
}

/* Status toggle inside card footer — compact variant */
.blog-card-footer .status-toggle {
    gap: 6px;
    padding: 1px 0;
}

.blog-card-footer .status-toggle-switch {
    width: 36px;
    height: 20px;
}

.blog-card-footer .status-toggle-switch::after {
    width: 14px;
    height: 14px;
}

.blog-card-footer .status-toggle.is-active .status-toggle-switch::after {
    left: 19px;
}

.blog-card-footer .status-toggle.is-hide .status-toggle-switch::after {
    left: 3px;
}

.blog-card-footer .status-toggle-label {
    /* font-size: 11.5px; */
    font-weight: 700;
}

/* Empty / Loading states */
.blog-no-results,
.blog-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.blog-no-results i,
.blog-loading i {
    font-size: 36px;
    opacity: 0.3;
    color: var(--primary-color);
}

.blog-no-results p,
.blog-loading span {
    margin: 0;
    opacity: 0.6;
}

/* ── DataTable section: hide table, show pagination only ─────────────── */
#blog-dt-section table.dataTable,
#blog-dt-section .dataTables_length,
#blog-dt-section .dataTables_filter {
    display: none !important;
}

#blog-dt-section .blog-dt-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px 16px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
}

#blog-dt-section .dataTables_info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ── Blog Cover Upload (wider dropzone) ─────────────────────────────── */
.img-dropzone-cover .dropzone-area {
    width: 200px;
    height: 140px;
}

/* ── Blog Grid responsive breakpoints ───────────────────────────────── */
@media (max-width: 1399px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-tutor-filter {
        max-width: 100%;
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .img-dropzone-cover .dropzone-area {
        width: 100%;
        max-width: 300px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION MODULE — Premium Card List Design
   ══════════════════════════════════════════════════════════════════════ */

/* ── Plain select override (non-select2 fields) ─────────────────────── */
select.section-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239096B2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ── Section Card Header ─────────────────────────────────────────────── */
.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.07);
    flex-wrap: wrap;
}

.section-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.section-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    flex-shrink: 0;
}

.section-card-info {
    min-width: 0;
}

.section-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.section-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Section Info Body ──────────────────────────────────────────────── */
.section-card-body {
    padding: 16px 20px;
}

.section-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.section-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 9px;
    padding: 8px 14px;
    min-width: 130px;
}

.section-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.section-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Section Course Tags ─────────────────────────────────────────────── */
.section-course-wrap {
    margin-top: 12px;
}

.section-course-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.section-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.section-course-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.section-course-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ── Section Badge Row ───────────────────────────────────────────────── */
.section-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.section-type-badge,
.section-layout-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.section-type-badge {
    border: 1.5px solid currentColor;
    background: var(--primary-bg);
    color: var(--primary-color);
}

.section-type-badge.type-instructor {
    color: var(--green-color);
    background: transparent;
}

.section-type-badge.type-category {
    color: var(--blue-color);
    background: transparent;
}

.section-type-badge.type-language {
    color: var(--orange-color);
    background: transparent;
}

.section-type-badge.type-blog {
    color: var(--text-secondary);
    background: transparent;
}

.section-type-badge.type-book {
    color: var(--logo-color);
    background: transparent;
}

.section-type-badge.type-liveclass {
    color: #0ea5e9;
    background: transparent;
}

.section-type-badge.type-recording {
    color: #a855f7;
    background: transparent;
}

.lcs-status-badge {
    background: var(--primary-bg) !important;
    color: var(--primary-color) !important;
    border-color: rgb(var(--primary-rgb) / 0.18) !important;
}

.section-layout-badge {
    background: var(--body-bg-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
    color: var(--text-secondary);
}

/* Section list card — hover elevation + entry animation */
.section-list-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    animation: sectionCardIn 0.35s ease both;
}

.section-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgb(var(--primary-rgb) / 0.12);
    border-color: rgb(var(--primary-rgb) / 0.14);
}

@keyframes sectionCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section Card Footer ─────────────────────────────────────────────── */
.section-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.07);
    flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .section-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .section-card-actions {
        width: 100%;
    }

    .section-card-body {
        padding: 12px 14px;
    }

    .section-card-footer {
        padding: 10px 14px;
        justify-content: stretch;
    }

    .section-card-footer .admin-btn {
        flex: 1;
        justify-content: center;
    }

    .section-info-item {
        flex: 1;
        min-width: calc(50% - 5px);
    }

    .section-badge-row {
        gap: 6px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION LIST — Unified container with list rows (v2)
   ══════════════════════════════════════════════════════════════════════ */

/* Count pill in the card header */
.section-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    border-radius: 50px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 8px;
    flex-shrink: 0;
}

/* Container card has no extra padding — rows own their spacing */
.section-list-container {
    overflow: hidden;
    /* background-color: var(--primary-bg); */
}

.section-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    background-color: var(--primary-bg);

}

/* ── Each list row — mini card ───────────────────────────────────────── */
.section-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 12px;
    transition: background 0.18s ease, border-color 0.2s ease;
    opacity: 0;
    animation: sectionRowIn 0.32s ease forwards;
}

.section-row:hover {
    background: var(--primary-bg);
    border-color: rgb(var(--primary-rgb) / 0.16);
}

@keyframes sectionRowIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order number badge */
.section-row-order {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--body-bg-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    font-family: var(--font);
}

/* Row icon */
.section-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

/* Main content — grows to fill available space */
.section-row-main {
    flex: 1;
    min-width: 0;
}

.section-row-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font);
}

.section-row-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.section-row-sort {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.section-row-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

/* ── Actions — badges + divider + status + buttons, one line ────────── */
.section-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Thin vertical separator between badges and action buttons */
.section-action-divider {
    width: 1px;
    height: 20px;
    background: rgb(var(--primary-rgb) / 0.12);
    flex-shrink: 0;
}

/* Compact icon-only action buttons */
.section-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.22s ease, color 0.22s ease,
        border-color 0.22s ease, box-shadow 0.22s ease,
        transform 0.14s ease;
}

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

.section-action-btn:active {
    transform: scale(0.92);
}

.section-action-btn-edit {
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
}

.section-action-btn-edit:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgb(var(--primary-rgb) / 0.26);
}

.section-action-btn-delete {
    background: var(--body-bg-color);
    color: var(--red-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.09);
}

.section-action-btn-delete:hover {
    background: var(--red-color);
    color: var(--white-color);
    border-color: var(--red-color);
    box-shadow: 0 4px 12px rgb(var(--primary-rgb) / 0.16);
}

/* Sort order badge inside the sortable modal */
.sort-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    font-family: var(--font);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .section-list-wrap {
        padding: 12px 16px;
        gap: 8px;
    }

    .section-row {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }

    .section-row-order {
        order: 0;
        align-self: center;
    }

    .section-row-main {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .section-row-actions {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .section-action-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-list-wrap {
        padding: 10px 12px;
    }

    .section-row {
        padding: 11px 14px;
        gap: 10px;
    }

    .section-row-order {
        display: none;
    }

    .section-row-actions {
        gap: 6px;
    }
}

/* ── Section action buttons — exact Category Module edit-delete-btn ──── */
.section-list-container .edit-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, var(--primary-color) 50%, var(--primary-bg) 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    cursor: pointer;
    overflow: hidden;
    transition: background-position 0.3s ease, color 0.25s ease,
        border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 17px;
    padding: 0;
}

.section-list-container .edit-delete-btn:hover {
    background-position: 0% 100%;
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.25);
}

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

/* Sort title — secondary line under main title */
.section-row-sort-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 1px 0 5px;
    font-family: var(--font);
}

/* ── Course Chip List ────────────────────────────────────────────────── */
.section-courses-meta {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
}

.section-courses-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.section-courses-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.section-course-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--body-bg-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.10);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    transition: background 0.16s ease, border-color 0.16s ease;
    font-family: var(--font);
}

.section-course-chip::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.55;
    flex-shrink: 0;
}

.section-course-chip:hover {
    background: var(--primary-bg);
    border-color: rgb(var(--primary-rgb) / 0.18);
}

/* ══════════════════════════════════════════════════════════════════════
   SEGMENTED CONTROL — Premium radio replacement (Section Module)
   ══════════════════════════════════════════════════════════════════════ */

.seg-ctrl {
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    background: var(--body-bg-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.seg-ctrl-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.seg-ctrl-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    user-select: none;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.seg-ctrl-opt:hover {
    color: var(--text-primary);
    background: var(--assest-color);
}

.seg-ctrl-input:checked+.seg-ctrl-opt {
    background: var(--primary-light);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.2);
}

/* ══════════════════════════════════════════════════════════════════════
   BOOK MODULE INDEX — Premium SaaS Grid Card Redesign
   ══════════════════════════════════════════════════════════════════════ */

/* ── Filter Rows ────────────────────────────────────────────────────── */
.book-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.book-search-inner {
    flex: 3;
    min-width: 220px;
}

.book-filter-sel {
    flex: 1;
    min-width: 140px;
}

.book-filter-sel2 {
    flex: 1;
    min-width: 160px;
}

.book-filter-row .field-input {
    height: 42px;
    width: 100%;
}

.book-filter-row .select2-container {
    width: 100% !important;
}

.book-filter-btn {
    flex-shrink: 0;
}

.book-count-badge {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 50px;
    background: var(--primary-bg);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgb(var(--primary-rgb) / 0.12);
}

/* ── Book Grid ──────────────────────────────────────────────────────── */
.book-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 24px 24px;
}

/* ── Book Grid Card ─────────────────────────────────────────────────── */
.book-grid-card {
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 195px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 2px 10px rgb(var(--primary-rgb) / 0.06);
    animation: bookCardIn 0.32s ease both;
}

.book-grid-card:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 18px 44px rgb(var(--primary-rgb) / 0.14);
    border-color: rgb(var(--primary-rgb) / 0.18);
}

@keyframes bookCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cover — left sidebar, portrait */
.book-grid-card-cover {
    position: relative;
    width: 185px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--primary-bg);
}

.book-grid-card-cover>a {
    display: block;
    height: 100%;
}

.book-grid-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
    display: block;
}

.book-grid-card:hover .book-grid-card-cover img {
    transform: scale(1.07);
}

/* Right-side content wrapper */
.book-grid-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* Price badge */
.book-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.3);
    white-space: nowrap;
}

.book-price-badge.is-free {
    background: var(--green-color);
}

/* Card body */
.book-grid-card-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.book-grid-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-grid-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
}

.book-grid-card-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
}

.book-meta-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 10px;
}

.book-meta-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-meta-icon-free {
    color: var(--green-color);
}

.book-meta-free {
    color: var(--green-color);
    font-weight: 700;
    font-size: 12.5px;
}

.book-meta-paid {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12.5px;
}

.book-free-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 50px;
    background: var(--green-color);
    color: var(--white-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Card footer */
.book-grid-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 12px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
    background: var(--primary-bg);
    flex-shrink: 0;
}

.book-grid-card-footer-left {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.book-grid-card-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.book-grid-card-footer form {
    margin: 0;
}

.book-grid-card-footer .status-toggle {
    gap: 6px;
}

.book-grid-card-footer .status-toggle-switch {
    width: 36px;
    height: 20px;
}

.book-grid-card-footer .status-toggle-switch::after {
    width: 14px;
    height: 14px;
}

.book-grid-card-footer .status-toggle.is-active .status-toggle-switch::after {
    left: 19px;
}

.book-grid-card-footer .status-toggle.is-hide .status-toggle-switch::after {
    left: 3px;
}

/* Empty state */
.book-no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
}

.book-no-results i {
    font-size: 42px;
    color: var(--primary-light);
    opacity: 0.7;
}

.book-no-results p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Pagination */
.book-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgb(var(--primary-rgb) / 0.06);
    flex-wrap: wrap;
}

.book-pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.book-pagination-links {
    display: flex;
    align-items: center;
}

.book-pagination-links .pagination {
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .book-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-filter-row {
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .book-filter-row {
        flex-wrap: wrap;
    }

    .book-search-inner,
    .book-filter-sel,
    .book-filter-sel2 {
        min-width: 100%;
        flex-basis: 100%;
    }

    .book-filter-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .book-grid-view {
        grid-template-columns: 1fr;
    }

    /* Revert to vertical stack on small screens */
    .book-grid-card {
        flex-direction: column;
        min-height: unset;
    }

    .book-grid-card-cover {
        width: 100%;
        height: 180px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BOOK ADD / EDIT — Compact Upload Component
   ══════════════════════════════════════════════════════════════ */

.bk-uploader {
    border: 1.5px solid rgba(var(--primary-rgb), 0.16);
    border-radius: 10px;
    background: var(--primary-bg);
    overflow: hidden;
    transition: border-color 0.18s ease;
}

.bk-uploader:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
}

/* Single row: icon · choose · upload */
.bk-uploader-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

/* Small icon pill */
.bk-uploader-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    flex-shrink: 0;
}

/* "Choose File" button */
.bk-uploader-pick {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: var(--white-color);
    color: var(--text-secondary);
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.bk-uploader-pick:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.04);
}

.bk-uploader-pick:focus,
.bk-uploader-pick:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Suppress focus outline on plupload's injected invisible file input */
#container_book input[type="file"] {
    outline: none !important;
    box-shadow: none !important;
}

/* "Upload File" start button — match row height */
.bk-uploader-start.admin-btn {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    white-space: nowrap;
}

/* Plupload progress — hidden until plupload writes content */
.bk-uploader-progress {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: none;
}

.bk-uploader-progress:not(:empty) {
    display: block;
    padding: 6px 10px 8px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
}

/* Style plupload-injected file rows */
.bk-uploader-progress div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.bk-uploader-progress div b span {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Current file strip (edit page) */
.bk-uploader-current {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px 8px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    background: rgba(var(--primary-rgb), 0.03);
}

.bk-uploader-current i {
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
}

.bk-uploader-current a {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.bk-uploader-current a:hover {
    text-decoration: underline;
}

/* Mobile: wrap to two lines */
@media (max-width: 480px) {
    .bk-uploader-row {
        flex-wrap: wrap;
    }

    .bk-uploader-pick {
        flex: 1 1 calc(100% - 42px - 8px);
    }

    .bk-uploader-start.admin-btn {
        flex-shrink: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   COURSE MODULE INDEX — Premium SaaS redesign
   ══════════════════════════════════════════════════════════════ */

/* ── Filter Rows ────────────────────────────────────────────── */
.course-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.course-search-inner {
    flex: 4;
    min-width: 220px;
}

.course-filter-sel {
    flex: 1;
    min-width: 140px;
}

.course-filter-sel2 {
    flex: 1;
    min-width: 180px;
}

.course-filter-row .field-input {
    height: 42px;
    width: 100%;
}

.course-filter-row .select2-container {
    width: 100% !important;
}

/* ── Course Info Cell (thumbnail + title combined) ──────────── */
.course-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.course-thumb-link {
    flex-shrink: 0;
    display: block;
}

.course-thumb-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    transition: transform 0.2s ease;
    display: block;
}

.course-thumb-img:hover {
    transform: scale(1.06);
}

.course-info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* max-width: 210px; */
}

/* ── Instructor / Tutor Cell ────────────────────────────────── */
.course-tutor-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.course-tutor-username {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.course-tutor-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Meta Cell (category + language) ───────────────────────── */
.course-meta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* text-align: left; */
}

.course-meta-text span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* ── Is Paid — Price Cell ───────────────────────────────────── */
.course-price-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shared pill badge base */
.course-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    transition: box-shadow 0.15s ease;
}

/* Free — green gift pill */
.course-price-free {
    background: color-mix(in srgb, var(--green-color) 10%, var(--primary-bg));
    color: var(--green-color);
    border-color: color-mix(in srgb, var(--green-color) 30%, transparent);
}

/* Paid — title outside + price inside its own box */
.course-paid-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.course-paid-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-color);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
}

.course-paid-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--primary-bg));
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
}

.course-paid-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price.course-paid-price {
    color: var(--logo-color) !important;
    font-size: 16.5px;
}

/* ── Chapter Link Button ────────────────────────────────────── */
.course-chapter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    background-size: 200% 100%;
    background-position: right bottom;
    background-image: linear-gradient(to left, var(--primary-bg) 50%, var(--primary-color) 50%);
}

.course-chapter-btn:hover {
    background-position: left bottom;
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.25);
    text-decoration: none;
}

/* ── Course VST Btn — Draft/Published/Archived (mirror Instructor palette) */
.vst-btn.vst-crs-draft {
    color: var(--orange-color);
    border-color: color-mix(in srgb, var(--orange-color) 35%, transparent);
    background: color-mix(in srgb, var(--orange-color) 8%, var(--primary-bg));
}

.vst-btn.vst-crs-published {
    color: var(--green-color);
    border-color: color-mix(in srgb, var(--green-color) 35%, transparent);
    background: color-mix(in srgb, var(--green-color) 8%, var(--primary-bg));
}

.vst-btn.vst-crs-archived {
    color: var(--red-color);
    border-color: color-mix(in srgb, var(--red-color) 35%, transparent);
    background: color-mix(in srgb, var(--red-color) 8%, var(--primary-bg));
}

/* ── Course VST Option Colors ───────────────────────────────── */
.vst-opt-crs-draft {
    color: var(--orange-color);
}

.vst-opt-crs-published {
    color: var(--green-color);
}

.vst-opt-crs-archived {
    color: var(--red-color);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .course-filter-row {
        gap: 10px;
    }

    .course-info-title {
        max-width: 160px;
    }
}

@media (max-width: 767px) {

    .course-search-inner,
    .course-filter-sel,
    .course-filter-sel2 {
        min-width: 100%;
        flex-basis: 100%;
    }
}

/* ── Banner Row List ─────────────────────────────────────────────── */
.lcb-list-wrap {
    padding: 4px 0;
}

.lcb-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    transition: background 0.15s ease;
}

.lcb-row:hover {
    background: var(--primary-bg);
}

.lcb-row-sep {
    border-bottom: 1px solid rgb(var(--primary-rgb) / 0.07);
}

/* Serial */
.lcb-serial {
    flex-shrink: 0;
    width: 26px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

/* Landscape image */
.lcb-img-wrap {
    flex-shrink: 0;
    width: 140px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.1);
}

.lcb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title */
.lcb-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sort order display */
.lcb-sort-order {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lcb-sort-icon {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.lcb-sort-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: center;
}

/* Actions */
.lcb-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .lcb-img-wrap {
        width: 100px;
        height: 40px;
    }

    .lcb-sort-order {
        display: none;
    }
}

@media (max-width: 576px) {
    .lcb-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }

    .lcb-img-wrap {
        width: 100%;
        height: 60px;
    }

    .lcb-name {
        width: 100%;
    }
}

/* ── Course Tab Nav ───────────────────────────────────────────── */
.crs-tab-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--assest-color);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 20px;
    margin-top: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.crs-tab-nav::-webkit-scrollbar {
    display: none;
}

.crs-tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: transparent;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}

.crs-tab-item:hover {
    background: var(--primary-bg);
    color: var(--primary-color);
    text-decoration: none;
}

.crs-tab-item.active {
    background: var(--primary-light);
    color: var(--text-primary);
}

.crs-tab-item i {
    font-size: 13px;
}

.crs-tab-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    background: var(--primary-bg);
    color: var(--primary-color);
    margin-left: 2px;
}

.crs-tab-item.active .crs-tab-badge {
    background: var(--primary-light);
    color: var(--white-color);
}

/* ── Dynamic Field Rows ───────────────────────────────────────── */
.crs-field-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crs-field-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--body-bg-color);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.18s;
}

.crs-field-row:hover {
    border-color: var(--primary-light);
}

.crs-field-row .crs-field-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.crs-field-row textarea.field-input {
    flex: 1;
    resize: vertical;
    min-height: 64px;
}

.crs-field-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.crs-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1px dashed var(--primary-light);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    width: fit-content;
    margin-top: 8px;
}

.crs-add-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.crs-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--red-color);
    color: var(--red-color);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.18s, color 0.18s;
}

.crs-remove-btn:hover {
    background: var(--red-color);
    color: var(--white-color);
}

/* ── Tab Footer (Prev / Next / Save) ─────────────────────────── */
.crs-tab-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    margin-top: 4px;
}

.crs-remove-btn:focus,
.crs-remove-btn:active,
.crs-remove-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* ── Price field hidden by default ───────────────────────────── */
.price {
    display: none;
}

/* Play overlay on blog-card-cover */
.vi-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 0.28);
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.22s ease;
    padding: 0;
    z-index: 2;
}

.blog-card:hover .vi-play-overlay {
    opacity: 1;
}

.vi-play-overlay i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding-left: 3px;
    box-shadow: 0 4px 18px rgb(0 0 0 / 0.28);
    transition: transform 0.18s ease;
}

.vi-play-overlay:hover i {
    transform: scale(1.1);
}

/* Video play modal close button */
#videoModal .vi-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
    transition: background 0.18s ease, color 0.18s ease;
    opacity: 1;
}

#videoModal .vi-modal-close:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.video-grid {
    padding: 14px 0px 20px;
}

/* ── Answer Picker ──────────────────────────────────────────────── */
.que-answer-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.que-answer-opt {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px 10px 10px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    border-radius: 10px;
    background: var(--primary-bg);
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.que-answer-opt:hover {
    border-color: var(--primary-bg);
    background: var(--primary-bg);
    box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.1);
}

.que-answer-opt:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.que-answer-opt.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 3px 12px rgb(var(--primary-rgb) / 0.28);
}

.que-answer-badge {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--assest-color);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgb(var(--primary-rgb) / 0.1);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.que-answer-opt.selected .que-answer-badge {
    /* background: rgb(var(--white-rgb) / 0.15); */
    color: var(--text-primary);
    border-color: transparent;
}

.que-answer-text {
    font-size: 13px;
    font-weight: 600;
}

.que-ans-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--logo-color) 11%, var(--assest-color));
    color: var(--logo-color);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--logo-color) 28%, transparent);
    white-space: nowrap;
    margin-right: 4px;
}

@media (max-width: 576px) {
    .que-answer-picker {
        gap: 8px;
    }

    .que-answer-opt {
        padding: 8px 12px 8px 8px;
        font-size: 12.5px;
    }
}

/* ── CSV Upload Zone ────────────────────────────────────────────── */
.que-csv-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 5px 0 0;
    opacity: 0.75;
    letter-spacing: 0.2px;
}

.que-csv-selected-state {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--primary-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.que-csv-selected-state.visible {
    display: flex;
}

.que-csv-sel-icon {
    font-size: 38px;
    color: var(--green-color);
}

.que-csv-sel-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
    max-width: 100%;
}

.que-csv-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--red-color);
    color: var(--white-color);
    border: none;
    border-radius: 7px;
    padding: 5px 14px;
    font-size: 12px;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    margin-top: 2px;
    transition: opacity 0.2s ease;
}

.que-csv-clear-btn:hover {
    opacity: 0.85;
}

/* ── Notes List ──────────────────────────────────────────────── */
.que-notes-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.que-note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.que-note-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.que-note-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ── Purchase Stats Grid ─────────────────────────────── */
.purchase-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.purchase-stat-card {
    background: var(--assest-color);
    border-radius: 16px;
    padding: 15px 18px 0px;
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    box-shadow: 0 2px 16px rgb(var(--primary-rgb) / 0.05);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.purchase-stat-card:hover {
    box-shadow: 0 6px 28px rgb(var(--primary-rgb) / 0.1);
    transform: translateY(-2px);
}

.purchase-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
}

.purchase-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.purchase-stat-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    flex-shrink: 0;
}

.purchase-stat-period {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.purchase-stat-metrics {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
}

.purchase-stat-metric {
    text-align: center;
    padding: 0 6px;
}

.purchase-stat-divider {
    width: 1px;
    height: 38px;
    background: rgb(var(--primary-rgb) / 0.1);
}

.purchase-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 3px;
    line-height: 1.2;
    white-space: nowrap;
}

.purchase-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Purchase Filter Bar ─────────────────────────────── */
.purchase-filter-wrap {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 20px 20px 0;
    flex-wrap: wrap;
}

.purchase-filter-search {
    flex: 2;
    min-width: 200px;
}

.purchase-filter-item {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.purchase-filter-item label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.purchase-filter-date {
    flex: 0 0 160px;
}

/* ── Payable Amount Cell ─────────────────────────────── */
.payable-amount-cell {
    /* background: var(--primary-bg); */
    border-radius: 10px;
    /* padding: 10px 13px; */
    text-align: left;
    min-width: 185px;
}

.payable-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 12.5px;
}

.payable-row-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.payable-row-value {
    font-weight: 600;
    color: var(--text-primary);
}

.payable-total-row {
    border-top: 1px dashed rgb(var(--primary-rgb) / 0.2);
    margin-top: 6px;
    padding-top: 6px;
}

.payable-total-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
}

.payable-total-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

/* ── Order ID badge ──────────────────────────────────── */
.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ── Counter Color Themes ────────────────────────────── */

/* Today → Blue */
.purchase-stat-card.stat-today {
    border-color: color-mix(in srgb, var(--blue-color) 22%, transparent);
}

.purchase-stat-card.stat-today::before {
    background: var(--blue-color);
}

.purchase-stat-card.stat-today .purchase-stat-icon {
    background: color-mix(in srgb, var(--blue-color) 12%, transparent);
    color: var(--blue-color);
}

.purchase-stat-card.stat-today .purchase-stat-value {
    color: var(--blue-color);
}

.purchase-stat-card.stat-today .purchase-stat-divider {
    background: color-mix(in srgb, var(--blue-color) 18%, transparent);
}

.purchase-stat-card.stat-today:hover {
    box-shadow: 0 6px 28px color-mix(in srgb, var(--blue-color) 14%, transparent);
}

/* Month → Orange */
.purchase-stat-card.stat-month {
    border-color: rgb(var(--logo-color-rgb) / 0.22);
}

.purchase-stat-card.stat-month::before {
    background: var(--logo-color);
}

.purchase-stat-card.stat-month .purchase-stat-icon {
    background: rgb(var(--logo-color-rgb) / 0.12);
    color: var(--logo-color);
}

.purchase-stat-card.stat-month .purchase-stat-value {
    color: var(--logo-color);
}

.purchase-stat-card.stat-month .purchase-stat-divider {
    background: rgb(var(--logo-color-rgb) / 0.18);
}

.purchase-stat-card.stat-month:hover {
    box-shadow: 0 6px 28px rgb(var(--logo-color-rgb) / 0.14);
}

/* Year → Green */
.purchase-stat-card.stat-year {
    border-color: color-mix(in srgb, var(--green-color) 22%, transparent);
}

.purchase-stat-card.stat-year::before {
    background: var(--green-color);
}

.purchase-stat-card.stat-year .purchase-stat-icon {
    background: color-mix(in srgb, var(--green-color) 12%, transparent);
    color: var(--green-color);
}

.purchase-stat-card.stat-year .purchase-stat-value {
    color: var(--green-color);
}

.purchase-stat-card.stat-year .purchase-stat-divider {
    background: color-mix(in srgb, var(--green-color) 18%, transparent);
}

.purchase-stat-card.stat-year:hover {
    box-shadow: 0 6px 28px color-mix(in srgb, var(--green-color) 14%, transparent);
}

@media (max-width: 991px) {
    .purchase-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .purchase-stats-grid {
        grid-template-columns: 1fr;
    }

    .purchase-filter-wrap {
        flex-direction: column;
    }
}

/* ── Payable Amount Cell ─────────────────────────────── */
.payable-amount-single {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 700;
}

/* ── Earning Info Cell ───────────────────────────────── */
.earning-info-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
    text-align: left;
}

.earning-info-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 8px;
    padding: 6px 7px;
}

.earning-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.earning-info-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* ── Payment Info Cell ───────────────────────────────── */
.payment-info-cell {
    min-width: 170px;
    text-align: left;
}

.payment-info-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
}

.payment-info-row+.payment-info-row {
    border-top: 1px dashed rgb(var(--primary-rgb) / 0.12);
}

.payment-info-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.payment-info-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* ── Course Purchase Detail Page (pcd-*) ─────────────────── */
.pcd-meta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pcd-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 12px;
    padding: 14px 18px;
}

.pcd-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgb(var(--primary-rgb) / 0.15);
}

.pcd-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pcd-user-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pcd-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.pcd-user-meta {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pcd-payable-highlight {
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.15);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.pcd-payable-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pcd-payable-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.pcd-discount-val {
    color: var(--red-color) !important;
}

.pcd-price-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.pcd-tutor-earn-val {
    color: var(--green-color) !important;
}

/* ── User cell ─────────────────────────────────────────────── */
.disc-user-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.disc-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.disc-fullname {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── Replies badge ─────────────────────────────────────────── */
.disc-replies-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.disc-replies-badge i {
    font-size: 11px;
    opacity: 0.75;
}

/* ── Votes cell ────────────────────────────────────────────── */
.disc-votes-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.disc-vote-up,
.disc-vote-down {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid;
}

.disc-vote-up {
    color: var(--green-color);
    background: #e6f9e6;
    border-color: #b3e5b3;
}

.disc-vote-down {
    color: var(--red-color);
    background: #fdecea;
    border-color: #f5bcbc;
}

.disc-vote-up i,
.disc-vote-down i {
    font-size: 15px;
}

/* ── Reply content cell ────────────────────────────────────── */
.disc-reply-cell {
    text-align: left;
    max-width: 400px;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.55;
    font-size: 13.5px;
    color: var(--text-primary);
    padding: 2px 0;
}

/* ── Discussion Filter Bar ─────────────────────────────────── */
.disc-filter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}

.disc-search-inner {
    flex: 1;
    min-width: 180px;
}

.disc-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Report type badge ─────────────────────────────────────── */
.disc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.disc-type-discussion {
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.18);
}

.disc-type-reply {
    background: #f0f4ff;
    color: #3a5bbf;
    border: 1.5px solid #bfcfee;
}

/* ── Content snippet ───────────────────────────────────────── */
.disc-content-snippet {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: var(--text-primary);
    max-width: 200px;
    text-align: left;
    line-height: 1.45;
}

/* ── Content column: snippet left, delete right ───────────── */
.disc-action-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.disc-instruction-wrap {
    justify-content: space-between;
    gap: 12px;
    min-width: 180px;
}

.disc-instruction-wrap .disc-content-snippet {
    flex: 1;
    max-width: none;
}

/* ── Action column: vst dropdown + delete side by side ─────── */
.disc-rpt-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .disc-filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .disc-filter-group {
        width: 100%;
    }

    .disc-search-inner {
        min-width: unset;
    }
}

/* ── Live Class Module — scoped UI additions ──────────────── */
.lc-session-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.lc-session-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc-session-icon {
    color: var(--text-secondary);
    width: 14px;
    flex-shrink: 0;
}

.lc-session-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.lc-session-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.lc-link-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease,
        border-color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    line-height: 1;
}

.lc-copy-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgb(var(--primary-rgb) / 0.25);
}

.lc-tutor-img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    flex-shrink: 0;
    display: block;
}

/* ── Status Badges ────────────────────────────────────────── */
.lc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.35px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgb(var(--primary-rgb) / 0.08);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.lc-status-badge:hover {
    box-shadow: 0 4px 14px rgb(var(--primary-rgb) / 0.16);
    transform: translateY(-1px);
}

.lc-status-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* Upcoming — blue */
.lc-status-upcoming {
    background: color-mix(in srgb, var(--blue-color) 11%, var(--primary-bg));
    color: color-mix(in srgb, var(--blue-color) 80%, black);
    border: 1.5px solid color-mix(in srgb, var(--blue-color) 30%, transparent);
}

.lc-status-upcoming .lc-status-icon {
    color: var(--blue-color);
}

/* Ongoing — green with live pulse dot */
.lc-status-ongoing {
    background: color-mix(in srgb, var(--green-color) 11%, var(--primary-bg));
    color: color-mix(in srgb, var(--green-color) 80%, black);
    border: 1.5px solid color-mix(in srgb, var(--green-color) 30%, transparent);
}

.lc-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-color);
    flex-shrink: 0;
    animation: lc-pulse-anim 1.5s ease-in-out infinite;
}

.lc-status-completed {
    background: color-mix(in srgb, var(--green-color) 11%, var(--primary-bg));
    color: color-mix(in srgb, var(--green-color) 80%, black);
    border: 1.5px solid color-mix(in srgb, var(--green-color) 30%, transparent);
}

.lc-status-completed .lc-status-icon {
    color: var(--green-color);
}

/* Cancelled — red */
.lc-status-cancelled {
    background: color-mix(in srgb, var(--red-color) 11%, var(--primary-bg));
    color: color-mix(in srgb, var(--red-color) 80%, black);
    border: 1.5px solid color-mix(in srgb, var(--red-color) 30%, transparent);
}

.lc-status-cancelled .lc-status-icon {
    color: var(--red-color);
}

@keyframes lc-pulse-anim {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.65);
    }
}

.lct-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--orange-color);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.lct-refund-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    padding: 5px 7px;
    text-align: left;
}

.lct-refunded {
    color: var(--green-color);
}

.lct-refunded i {
    font-size: 14px;
    flex-shrink: 0;
}

.lct-refund-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lct-refund-label {
    font-size: 12px;
    font-weight: 700;
}

.lct-refund-amount {
    font-size: 13px;
    font-weight: 600;
}

.lct-no-refund {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 300;
}

.lct-total-td {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px !important;
    background: var(--primary-bg);
}

.lct-total-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 12px 14px !important;
    background: var(--primary-bg);
}

/* ── Join Users — Empty State ───────────────────────────────────────── */
.ju-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.ju-empty-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 34px;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgb(var(--primary-rgb) / 0.12);
}

.ju-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.ju-empty-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Recording Modal — TimePicker (#tp-field-wrap, position:relative) ────── */

/* Allow picker to overflow modal boundaries without being clipped */
#EditModel,
#EditModel .modal-dialog,
#EditModel .modal-content.module-modal-content,
#EditModel .modal-body.module-modal-body {
    overflow: visible !important;
}

/* ── Schedule page scoped styles ───────────────────────── */
.sched-dates-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.sched-date-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sched-date-col>label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sched-date-input {
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--white-color);
    min-width: 175px;
    transition: border-color 0.2s;
    cursor: pointer;
}

.sched-date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 69, 184, 0.08);
}

.sched-date-input:disabled {
    background: var(--assest-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.sched-end-date-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sched-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sched-chevron {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    border-radius: 50%;
    transition: background 0.2s;
    pointer-events: none;
}

.sched-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1.5px solid var(--red-color);
    color: var(--red-color);
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.sched-remove-btn:hover {
    background: var(--red-color);
    color: #fff;
}

/* Slot card premium redesign */
.slot-card {
    background: var(--assest-color) !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 10px !important;
    padding: 18px 16px 14px !important;
    transition: border-color 0.2s;
}

.slot-card:hover {
    border-color: var(--primary-color) !important;
}

.slot-card .form-group {
    margin-bottom: 0;
}

.slot-card .form-group>label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.slot-card .field-input,
.slot-card select.field-input {
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    font-size: 14px;
    padding: 0 12px;
    background: var(--white-color);
    color: var(--text-primary);
    width: 100%;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.slot-card .field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 69, 184, 0.08);
}

.sched-remove-slot-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1.5px solid var(--red-color);
    color: var(--red-color);
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    margin-top: 23px;
}

.sched-remove-slot-btn:hover {
    background: var(--red-color);
    color: #fff;
}

/* Add-slot button override */
.add-slot-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: 1.5px solid var(--green-color) !important;
    color: var(--green-color) !important;
    padding: 7px 14px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 12px !important;
    transition: all 0.18s !important;
}

.add-slot-btn:hover {
    background: var(--green-color) !important;
    color: #fff !important;
}

/* Generated time chips */
.slot-time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.slot-time-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(78, 69, 184, 0.09);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 500;
}

.slot-time-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 8px 0 4px;
}

/* Slots container gap */
.slots-container {
    gap: 12px !important;
}

/* Always-open body height */
.schedule-body.open {
    max-height: 9999px !important;
}

/* is-new group accent */
.schedule-group.is-new {
    border-color: var(--primary-color) !important;
}

.schedule-group.is-new .schedule-header {
    background: rgba(78, 69, 184, 0.05) !important;
}

/* Date-slot sections (generated per date inside a range group) */
.date-slot-section {
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 14px 16px 10px;
    margin-bottom: 14px;
    background: var(--white-color);
}

.date-slot-section:last-child {
    margin-bottom: 0;
}

.date-slot-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1.5px solid var(--border-light);
}

/* ── Clean focus state: no black browser outline anywhere ── */
.sched-remove-btn:focus,
.sched-remove-btn:focus-visible,
.sched-remove-slot-btn:focus,
.sched-remove-slot-btn:focus-visible,
.add-slot-btn:focus,
.add-slot-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Premium focus ring only on the primary "remove" btn when focused via keyboard */
.sched-remove-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--red-rgb, 220, 53, 69), 0.20) !important;
}

.sched-remove-slot-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--red-rgb, 220, 53, 69), 0.20) !important;
}

.add-slot-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--green-rgb, 40, 167, 69), 0.20) !important;
}

/* Clean focus on all inputs and selects inside slot cards */
.slot-card input:focus,
.slot-card select:focus,
.slot-card button:focus,
.slot-card button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.slot-card .field-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(78, 69, 184, 0.08) !important;
}

/* Clean focus on schedule header date inputs */
.schedule-header input:focus,
.schedule-header button:focus,
.schedule-header button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Appointment number ─────────────────────────────────── */
.appt-no {
    font-size: 13px;
    font-weight: 700;
    color: var(--logo-color);
    letter-spacing: .4px;
}

/* ── Display-only status badges ─────────────────────────── */
.appt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 20px;
    /* font-size: 12px; */
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
}

.appt-status-rejected {
    background: rgba(220, 53, 69, .12);
    color: #dc3545;
}

.appt-status-cancel {
    background: rgba(253, 126, 20, .12);
    color: #fd7e14;
}

.appt-status-completed {
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
}

/* ── Tab count badge ────────────────────────────────────── */
.crs-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .12);
    font-size: 13px;
    font-weight: 700;
    margin-left: 5px;
}

/* ── VST dropdown: remove black outline on focus/click ──── */
.vst-btn:focus,
.vst-btn:active,
.vst-btn:focus-visible,
.vst-option:focus,
.vst-option:active,
.vst-option:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Meeting cell — compact, aligned ────────────────────── */
.appt-meeting-info {
    text-align: left;
}

.appt-meeting-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #6c757d;
    margin-bottom: 2px;
}

.appt-meeting-row .appt-ml {
    color: #aaa;
    white-space: nowrap;
}

.appt-meeting-row strong {
    color: #444;
    font-weight: 600;
}

.appt-meeting-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-top: 4px;
    max-width: 160px;
    word-break: break-word;
}

/* ── Status counter cards ───────────────────────────────── */
.appt-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.appt-counter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 13px 16px;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .04);
    border-left: 3px solid transparent;
    transition: box-shadow .18s;
}

.appt-counter-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.appt-counter-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.appt-counter-val {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.appt-counter-lbl {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: .2px;
}

.appt-counter-total {
    border-left-color: var(--logo-color);
}

.appt-counter-total .appt-counter-icon {
    background: rgba(99, 102, 241, .1);
    color: var(--logo-color);
}

.appt-counter-total .appt-counter-val {
    color: var(--logo-color);
}

.appt-counter-draft {
    border-left-color: #f59e0b;
}

.appt-counter-draft .appt-counter-icon {
    background: rgba(245, 158, 11, .1);
    color: #f59e0b;
}

.appt-counter-draft .appt-counter-val {
    color: #f59e0b;
}

.appt-counter-approved {
    border-left-color: #10b981;
}

.appt-counter-approved .appt-counter-icon {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.appt-counter-approved .appt-counter-val {
    color: #10b981;
}

.appt-counter-rejected {
    border-left-color: #ef4444;
}

.appt-counter-rejected .appt-counter-icon {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.appt-counter-rejected .appt-counter-val {
    color: #ef4444;
}

.appt-counter-cancel {
    border-left-color: #f97316;
}

.appt-counter-cancel .appt-counter-icon {
    background: rgba(249, 115, 22, .1);
    color: #f97316;
}

.appt-counter-cancel .appt-counter-val {
    color: #f97316;
}

.appt-counter-completed {
    border-left-color: #3b82f6;
}

.appt-counter-completed .appt-counter-icon {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
}

.appt-counter-completed .appt-counter-val {
    color: #3b82f6;
}

@media (max-width: 767px) {
    .appt-counter-card {
        min-width: calc(50% - 5px);
        flex: none;
    }
}

@media (max-width: 480px) {
    .appt-counter-card {
        min-width: 100%;
        flex: none;
    }
}

/* ── Two-column layout ────────────────────────────────────── */
.appt-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 991px) {
    .appt-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Header hero card ─────────────────────────────────────── */
.appt-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .07), 0 0 0 1px rgba(0, 0, 0, .04);
}

.appt-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.appt-hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    flex-shrink: 0;
    background: rgba(99, 102, 241, .1);
    color: var(--logo-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.appt-hero-no {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.appt-hero-meta {
    font-size: 12.5px;
    color: #888;
    margin-top: 4px;
}

.appt-hero-meta i {
    margin-right: 4px;
    color: var(--logo-color);
}

/* ── Status badge (detail variant) ───────────────────────── */
.appt-ds {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
}

.appt-ds-draft {
    background: rgba(245, 158, 11, .12);
    color: #f59e0b;
}

.appt-ds-approved {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
}

.appt-ds-rejected {
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
}

.appt-ds-cancel {
    background: rgba(249, 115, 22, .12);
    color: #f97316;
}

.appt-ds-completed {
    background: rgba(59, 130, 246, .12);
    color: #3b82f6;
}

/* ── Info grid inside cards ───────────────────────────────── */
.appt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 575px) {
    .appt-info-grid {
        grid-template-columns: 1fr;
    }
}

.appt-info-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f4f4f6;
}

.appt-info-item:nth-child(odd) {
    border-right: 1px solid #f4f4f6;
}

.appt-info-item.appt-span-full {
    grid-column: 1 / -1;
    border-right: none;
}

.appt-info-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 5px;
}

.appt-info-val {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.appt-info-val.dim {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.appt-info-val a {
    color: var(--logo-color);
    word-break: break-all;
    font-size: 13px;
}

.appt-info-val a:hover {
    text-decoration: underline;
}

.appt-info-icon {
    color: var(--logo-color);
    margin-right: 5px;
    font-size: 13px;
}

/* ── Refund badge ─────────────────────────────────────────── */
.appt-refund-yes {
    color: #10b981;
    font-weight: 600;
}

.appt-refund-no {
    color: #aaa;
}

.appt-refund-amt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, .1);
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
}

/* ── Person row (instructor) ──────────────────────────────── */
.appt-person-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.appt-person-img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.appt-person-un {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.appt-person-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ── Course row ───────────────────────────────────────────── */
.appt-course-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.appt-course-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ececec;
}

.appt-course-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.45;
}

/* ── Attachments ──────────────────────────────────────────── */
.appt-attach-wrap {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.appt-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 8px;
    background: rgba(99, 102, 241, .07);
    color: var(--logo-color);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, .18);
    transition: background .15s;
}

.appt-file-chip:hover {
    background: rgba(99, 102, 241, .15);
    color: var(--logo-color);
    text-decoration: none;
}

/* ── Notes ────────────────────────────────────────────────── */
.appt-notes-box {
    margin: 14px 20px 20px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid var(--logo-color);
    font-size: 13.5px;
    color: #555;
    line-height: 1.75;
}

/* ── Payment summary ──────────────────────────────────────── */
.appt-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f4f4f6;
}

.appt-pay-row:last-of-type {
    border-bottom: none;
}

.appt-pay-lbl {
    font-size: 13.5px;
    color: #666;
}

.appt-pay-val {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.appt-pay-discount {
    color: #ef4444;
}

.appt-pay-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 14px 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(59, 130, 246, .08));
    border-radius: 11px;
    border: 1px solid rgba(99, 102, 241, .18);
}

.appt-pay-total-lbl {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.appt-pay-total-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--logo-color);
}

/* ═══════════════════════════════════════════════════════════
   Quiz Leaderboard Module
   ═══════════════════════════════════════════════════════════ */

/* ── Image + text row wrapper (shared by user & course cells) */
.ldb-cell-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ── Pass / Fail status badges ───────────────────────────── */
.appt-status-pass {
    background: rgba(16, 185, 129, .12);
    color: var(--green-color);
}

.appt-status-fail {
    background: rgba(220, 53, 69, .12);
    color: var(--red-color);
}

/* ── Percentage badge ────────────────────────────────────── */
.ldb-percent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: .4px;
}

.ldb-pct-high {
    color: var(--green-color);
}

.ldb-pct-mid {
    color: var(--orange-color);
}

.ldb-pct-low {
    color: var(--red-color);
}

/* ── Question stats cell ─────────────────────────────────── */
.ldb-stat-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.ldb-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
}

.ldb-stat-lbl {
    color: var(--text-secondary);
    white-space: nowrap;
}

.ldb-stat-val {
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Course thumbnail cell ───────────────────────────────── */
.ldb-course-thumb {
    width: 52px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.1);
    display: block;
    transition: transform .2s ease;
}

.ldb-course-thumb:hover {
    transform: scale(1.08);
}

.ldb-course-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    min-width: 0;
}

.ldb-course-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ldb-chapter-text {
    color: var(--text-secondary);
}

/* ── Promo Radio Group ──────────────────────────────────────────────── */
.promo-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.promo-radio-opt {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.promo-radio-opt input[type="radio"] {
    display: none;
}

.promo-radio-inner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px 7px 10px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    border-radius: 8px;
    background: var(--assest-color);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.18s ease;
    user-select: none;
    white-space: nowrap;
}

.promo-radio-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgb(var(--primary-rgb) / 0.3);
    background: transparent;
    flex-shrink: 0;
    transition: all 0.18s ease;
    position: relative;
}

.promo-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: transform 0.18s ease;
}

.promo-radio-opt input[type="radio"]:checked+.promo-radio-inner {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.promo-radio-opt input[type="radio"]:checked+.promo-radio-inner .promo-radio-dot {
    border-color: var(--primary-color);
}

.promo-radio-opt input[type="radio"]:checked+.promo-radio-inner .promo-radio-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

.promo-radio-opt:hover .promo-radio-inner {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

/* ── Promo Select ──────────────────────────────────────────────────── */
.promo-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.promo-select {
    width: 100%;
    height: 42px;
    padding: 0 32px 0 14px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    border-radius: 10px;
    background: var(--assest-color);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.promo-select:hover {
    border-color: var(--primary-light);
}

.promo-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.promo-select-caret {
    position: absolute;
    right: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ── Promo Code Badge (Unique ID column) ─────────────────────────── */
.promo-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 6px;
    color: var(--logo-color);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* ── Table item name ─────────────────────────────────────────────── */
.table-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    display: block;
}

/* ── DataTable Badges ────────────────────────────────────────────── */
.dt-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--font);
    white-space: nowrap;
    border: 1.5px solid transparent;
}


/* ── Date Range (valid_date column) ─────────────────────────────── */
.dt-date-range {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    min-width: 145px;
}

.dt-date-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dt-date-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.dt-date-start {
    background: #d1e7dd;
    color: var(--green-color);
}

.dt-date-end {
    background: #f8d7da;
    color: var(--red-color);
}

.dt-date-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Amount display ──────────────────────────────────────────────── */
.dt-amount {
    font-size: 16px;
    font-weight: 900;
    color: var(--logo-color);
}

.alert-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
}

.alert-info-icon {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-info-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════
           pkg-txn-stats — compact counters, scoped to Package Transaction
        ══════════════════════════════════════════════════════════════════ */

.pkg-txn-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.pkg-txn-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 6px rgb(var(--primary-rgb) / 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pkg-txn-stat-card:hover {
    box-shadow: 0 4px 18px rgb(var(--primary-rgb) / 0.09);
    transform: translateY(-1px);
}

.pkg-txn-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
}

/* Left: icon + period label stacked */
.pkg-txn-left {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pkg-txn-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: var(--primary-bg);
}

.pkg-txn-period {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
    line-height: 1;
    white-space: nowrap;
}

/* Right: two metrics side by side */
.pkg-txn-metrics {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.pkg-txn-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.pkg-txn-metric-val {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.pkg-txn-metric-lbl {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pkg-txn-divider {
    width: 1px;
    height: 28px;
    background: rgb(var(--primary-rgb) / 0.1);
    flex-shrink: 0;
}

/* colour variants — CSS variables only */
.pkg-txn-today::before {
    background: var(--green-color);
}

.pkg-txn-today .pkg-txn-icon {
    color: var(--green-color);
}

.pkg-txn-today .pkg-txn-period {
    color: var(--green-color);
}

.pkg-txn-today .pkg-txn-metric-val {
    color: var(--green-color);
}

.pkg-txn-month::before {
    background: var(--primary-color);
}

.pkg-txn-month .pkg-txn-icon {
    color: var(--primary-color);
}

.pkg-txn-month .pkg-txn-period {
    color: var(--primary-color);
}

.pkg-txn-month .pkg-txn-metric-val {
    color: var(--primary-color);
}

.pkg-txn-year::before {
    background: var(--logo-color);
}

.pkg-txn-year .pkg-txn-icon {
    color: var(--logo-color);
}

.pkg-txn-year .pkg-txn-period {
    color: var(--logo-color);
}

.pkg-txn-year .pkg-txn-metric-val {
    color: var(--logo-color);
}

@media (max-width: 768px) {
    .pkg-txn-stats {
        grid-template-columns: 1fr;
    }

    .pkg-txn-metric {
        align-items: flex-end;
    }
}

/* Master toggle area — right-side of module-card-header */
.nconf-card-header {
    flex-wrap: wrap;
    gap: 12px;
}

.nconf-master-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nconf-master-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Compact status-toggle for table cells */
.nconf-row-toggle .status-toggle-switch {
    width: 38px;
    height: 21px;
}

.nconf-row-toggle .status-toggle-switch::after {
    width: 15px;
    height: 15px;
}

.nconf-row-toggle.is-active .status-toggle-switch::after {
    left: 20px;
}

.nconf-row-toggle.is-hide .status-toggle-switch::after {
    left: 3px;
}

.nconf-row-toggle[data-disabled="1"] {
    opacity: 0.40;
    cursor: not-allowed;
}

/* ── System Setting Grid ──────────────────────────────────────────────────────── */
.sys-grid {
    row-gap: 20px;
}

/* ── Card shell ────────────────────────────────────────────────── */
.sys-card {
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgb(var(--primary-rgb) / 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.18s ease;
}

.sys-card:hover {
    box-shadow: 0 6px 28px rgb(var(--primary-rgb) / 0.11);
    transform: translateY(-2px);
}

/* ── Card header (icon + title + desc) ─────────────────────────── */
.sys-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 16px;
    flex: 1;
}

/* ── Icon badge ────────────────────────────────────────────────── */
.sys-card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sys-icon-cache {
    color: var(--primary-color);
    background: var(--primary-bg);
}

.sys-icon-db {
    color: var(--green-color);
    background: color-mix(in srgb, var(--green-color) 12%, transparent);
}

.sys-icon-clean {
    color: var(--red-color);
    background: color-mix(in srgb, var(--red-color) 12%, transparent);
}

/* ── Text block ────────────────────────────────────────────────── */
.sys-card-meta {
    min-width: 0;
    padding-top: 2px;
}

.sys-card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.3;
}

.sys-card-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ── Footer (action button) ────────────────────────────────────── */
.sys-card-footer {
    padding: 0 24px 24px;
    border-top: none;
}

.sys-action-btn {
    width: 100%;
    justify-content: center;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sys-grid {
        row-gap: 16px;
    }

    .sys-card-header {
        padding: 20px 20px 12px;
    }

    .sys-card-footer {
        padding: 0 20px 20px;
    }
}

.bb-coin-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--logo-color);
}

/* ── App Settings: Left-nav layout ───────────────────────────────── */
.as-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 16px;
}

.as-nav {
    flex-shrink: 0;
    flex-direction: column;
    width: 215px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.07);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 2px 16px rgb(var(--primary-rgb) / 0.06);
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.as-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 2px;
    white-space: nowrap;
}

.as-nav .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.as-nav .nav-link:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.as-nav .nav-link.active {
    background: var(--primary-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.as-nav .nav-link.active i {
    color: var(--primary-color);
}

.as-content {
    flex: 1;
    min-width: 0;
}

/* ── API copy row ─────────────────────────────────────────────────── */
.as-api-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.as-api-row .field-input {
    flex: 1;
}

.as-copy-btn {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.14);
    background: var(--primary-bg);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.as-copy-btn:hover {
    background: var(--primary-color);
    color: var(--assest-color);
    border-color: var(--primary-color);
}

/* ── Add-More Rows (Social / Onboarding) ─────────────────────────── */
.as-add-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 14px 16px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.as-add-row .form-field {
    margin-bottom: 0;
    min-width: 130px;
    flex: 1;
}

.as-add-row-url {
    flex: 2 !important;
}

.as-add-row-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.as-row-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
}

.as-add-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-bottom: 2px;
}

/* Remove button variant */
.as-btn-remove {
    background: linear-gradient(to top,
            var(--red-color) 50%,
            transparent 50%) !important;
    background-size: 100% 200% !important;
    background-position: 0% 0% !important;
    color: var(--red-color) !important;
    border: 1.5px solid var(--red-color) !important;
    box-shadow: none !important;
}

.as-btn-remove:hover {
    background-position: 0% 100% !important;
    color: var(--white-color) !important;
}

/* ── SMTP hint text ───────────────────────────────────────────────── */
.as-field-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.as-hint-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ── Quiz: scrollbar on nav ───────────────────────────────────────── */
.as-nav::-webkit-scrollbar {
    width: 3px;
}

.as-nav::-webkit-scrollbar-track {
    background: transparent;
}

.as-nav::-webkit-scrollbar-thumb {
    background: rgb(var(--primary-rgb) / 0.15);
    border-radius: 10px;
}

/* ── Quiz: Stats Grid ─────────────────────────────────────────────── */
.qz-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.qz-stat-card {
    background: var(--primary-bg);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qz-stat-card:hover {
    border-color: rgb(var(--primary-rgb) / 0.22);
    box-shadow: 0 4px 16px rgb(var(--primary-rgb) / 0.07);
}

.qz-stat-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qz-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--assest-color);
    border: 1px solid rgb(var(--primary-rgb) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgb(var(--primary-rgb) / 0.08);
}

.qz-stat-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.qz-stat-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.qz-stat-unit {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.qz-stat-input {
    background: var(--assest-color) !important;
}

/* ── Quiz: Coin Input with icon ───────────────────────────────────── */
.qz-coin-input-wrap {
    position: relative;
}

.qz-coin-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 14px;
    pointer-events: none;
}

.qz-coin-input {
    padding-left: 38px !important;
}

/* ── Quiz: Reward two-panel layout ────────────────────────────────── */
.qz-reward-panel {
    display: flex;
    align-items: stretch;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}

.qz-reward-left {
    width: 220px;
    flex-shrink: 0;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qz-reward-sep {
    width: 1px;
    background: rgb(var(--primary-rgb) / 0.07);
    flex-shrink: 0;
    align-self: stretch;
}

.qz-reward-right {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.qz-reward-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qz-reward-label i {
    color: var(--primary-color);
    font-size: 12px;
}

.qz-reward-input-area {
    flex: 1;
    display: flex;
    align-items: center;
}

.qz-reward-right .qz-type-options {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .qz-reward-panel {
        flex-direction: column;
    }

    .qz-reward-left {
        width: 100%;
    }

    .qz-reward-sep {
        width: 100%;
        height: 1px;
    }

    .qz-reward-right .qz-type-options {
        flex-wrap: wrap;
    }
}

/* ── Quiz: Type Option Cards ──────────────────────────────────────── */
.qz-type-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qz-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
    padding: 13px 16px;
    background: var(--assest-color);
    border: 1.5px solid rgb(var(--primary-rgb) / 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
}

.qz-type-card:hover {
    border-color: rgb(var(--primary-rgb) / 0.3);
    background: var(--primary-bg);
}

.qz-type-card-selected {
    border-color: var(--primary-color) !important;
    background: var(--primary-bg) !important;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Hide the raw radio input visually, keep it accessible */
.qz-type-radio {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

.qz-type-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-bg);
    border: 1px solid rgb(var(--primary-rgb) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.qz-type-card-selected .qz-type-card-icon {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.qz-type-card-body {
    flex: 1;
    min-width: 0;
}

.qz-type-card-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.qz-type-card-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgb(var(--primary-rgb) / 0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.qz-type-card-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.qz-type-card-selected .qz-type-card-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.qz-type-card-selected .qz-type-card-dot::after {
    opacity: 1;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .as-layout {
        flex-direction: column;
    }

    .as-nav {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px;
    }

    .as-nav .nav-link {
        flex: 1 1 auto;
        min-width: 110px;
        justify-content: center;
        padding: 9px 10px;
        font-size: 14.5px;
        margin-bottom: 0;
    }

    .qz-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qz-flow-track {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .qz-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Bootstrap row / col gap helpers ──────────────────────────── */
.dash-row-gap {
    margin-bottom: 20px;
}

.dash-col-gap {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .dash-col-gap {
        margin-bottom: 0;
    }
}


/* ── Counter Cards (dbc-*) — Premium Split-Panel Cards ─────────
   Layout: soft accent icon column (left) | label + value (right)
   Icon color: existing btn/badge vars  |  BG: same color at 10% */

/* Default fallback (primary theme) */
.dbc-card {
    --dbc-ic: var(--primary-color);
    --dbc-ic-rgb: var(--primary-rgb);
}

/* Color modifiers — maps to existing Button/Status Badge vars */
.dbc-c-blue {
    --dbc-ic: var(--blue-color);
    --dbc-ic-rgb: var(--blue-color-rgb);
}

.dbc-c-green {
    --dbc-ic: var(--green-color);
    --dbc-ic-rgb: var(--green-color-rgb);
}

.dbc-c-red {
    --dbc-ic: var(--red-color);
    --dbc-ic-rgb: var(--red-color-rgb);
}

.dbc-c-orange {
    --dbc-ic: var(--orange-color);
    --dbc-ic-rgb: var(--orange-color-rgb);
}

.dbc-c-logo {
    --dbc-ic: var(--logo-color);
    --dbc-ic-rgb: var(--logo-color-rgb);
}

.dbc-c-primary {
    --dbc-ic: var(--primary-color);
    --dbc-ic-rgb: var(--primary-rgb);
}

.dbc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Card shell */
.dbc-card {
    display: flex;
    align-items: stretch;
    background: var(--assest-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(var(--primary-rgb) / 0.08);
    box-shadow:
        0 1px 3px rgb(var(--primary-rgb) / 0.05),
        0 4px 14px rgb(var(--primary-rgb) / 0.06);
    cursor: default;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dbc-card:hover {
    box-shadow:
        0 6px 22px rgb(var(--dbc-ic-rgb) / 0.13),
        0 14px 36px rgb(var(--primary-rgb) / 0.07);
}

/* Left — soft icon panel using existing btn/badge color at 10% */
.dbc-icon-col {
    width: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(var(--dbc-ic-rgb) / 0.10);
    color: var(--dbc-ic);
    font-size: 30px;
    transition: background 0.25s ease, color 0.25s ease;
}

/* Right — text info column */
.dbc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    min-width: 0;
    gap: 5px;
    text-align: right;
}

.dbc-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dbc-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.22s ease;
}

/* Counter value picks up the card's accent color on hover */
.dbc-card:hover .dbc-num {
    color: var(--dbc-ic);
}


/* ── Section Cards shared ──────────────────────────────────────── */
.dash-section-card {
    background: var(--assest-color);
    border: 1px solid var(--primary-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgb(var(--primary-rgb) / 0.05);
    overflow: hidden;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--primary-bg);
    flex-wrap: wrap;
}

.dash-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dash-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
}

.dash-section-title>span {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.dash-section-body {
    padding: 16px 18px 18px;
}


/* ── Chart toggle buttons & view-all link ──────────────────────── */
.dash-chart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-toggle-btn {
    height: 30px;
    padding: 0 13px;
    border-radius: 7px;
    border: 1px solid var(--primary-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dash-toggle-btn:hover,
.dash-toggle-btn.dash-toggle-active {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.dash-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--logo-color);
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.dash-view-all-link:hover {
    opacity: 0.75;
    color: var(--logo-color);
}


/* ── Content Tabs + Rows (Most Viewed) ─────────────────────────── */
.dash-content-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dash-content-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-content-tabs .nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary-color);
}

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

.dash-content-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-content-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--primary-bg);
    transition: background 0.2s ease;
}

.dash-content-row:last-child {
    border-bottom: none;
}

.dash-content-row:hover {
    background: var(--primary-bg);
}

/* Rank badge — uniform orange across all ranks */
.dash-rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--logo-color);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-content-thumb {
    width: 50px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--primary-bg);
}

.dash-content-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-view-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-bg);
    color: var(--logo-color);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--primary-light);
    letter-spacing: 0.2px;
}


/* ── Best Categories (dcat-*) ──────────────────────────────────── */
.dcat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dcat-tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: default;
    background: var(--primary-bg);
}

.dcat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dcat-tile:hover .dcat-img {
    transform: scale(1.07);
}

.dcat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary-color) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 8px 9px;
    opacity: 0.9;
}

.dcat-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--white-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ── Popular Instructors (dins-*) ──────────────────────────────── */
.dins-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.dins-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 11px;
    border: 1px solid var(--primary-bg);
    background: var(--assest-color);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    cursor: default;
    min-width: 0;
}

.dins-card:hover {
    box-shadow: 0 6px 22px rgb(var(--primary-rgb) / 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.dins-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.dins-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--primary-bg);
    transition: border-color 0.25s ease;
}

.dins-card:hover .dins-avatar {
    border-color: var(--primary-light);
}

.dins-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-color);
    border: 2px solid var(--assest-color);
}

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

.dins-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dins-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dins-chip {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.dins-card:hover .dins-chip {
    background: var(--primary-color);
    color: var(--white-color);
}


/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .dbc-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .dins-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .dbc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dbc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dbc-card {
        border-radius: 12px;
    }

    .dbc-icon-col {
        width: 60px;
        font-size: 20px;
    }

    .dbc-num {
        font-size: 1.6rem;
    }

    .dbc-label {
        font-size: 10px;
    }

    .dins-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .dcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Analytics Dashboard ─────────────────────────────────────────
   Section headings and 2-column counter grid override             */
.adbc-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 14px;
}

.adbc-section-head-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.adbc-grid-2col {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-bottom: 0;
}

.adbc-grid-5col {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1400px) {
    .adbc-grid-5col {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .adbc-grid-5col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .adbc-grid-2col {
        grid-template-columns: 1fr !important;
    }

    .adbc-grid-5col {
        grid-template-columns: 1fr !important;
    }
}

/* ── Login Left-Side Hero Content ──────────────────────────────── */
.login-hero {
    position: absolute;
    left: 6%;
    top: 55%;
    transform: translateY(-50%);
    z-index: 2;
}

.login-hero-heading {
    margin: 0 0 22px;
    line-height: 1.1;
}

.login-hero-line1 {
    display: block;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    font-weight: bold;
    color: rgb(var(--black-rgb));
    font-family: "Fraunces", serif;
    text-shadow: 0 2px 20px rgb(var(--white-rgb) / 0.55);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.login-hero-line2 {
    display: block;
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 3.7vw, 3.7rem);
    font-weight: 900;
    color: var(--logo-color);
    text-shadow: 0 0 24px rgb(var(--logo-color-rgb) / 0.3),
        0 2px 12px rgb(var(--black-rgb) / 0.35);
    letter-spacing: -0.5px;
    line-height: 1.25;
    max-width: 9.8em;
}

@media (max-width: 1100px) {
    .login-hero {
        display: none;
    }
}

/* ── Login Hero Description ─────────────────────────────────────────── */
.login-hero-desc {
    color: rgb(var(--black-rgb) / 0.75);
    font-size: clamp(0.82rem, 1.05vw, 0.95rem);
    font-weight: 500;
    margin: 0 0 22px;
    max-width: 480px;
    line-height: 1.65;
    letter-spacing: 0.15px;
}

/* ── Login Feature Chips ─────────────────────────────────────────────── */
.login-feat-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.login-feat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: rgb(var(--black-rgb) / 0.13);
    border: 1px solid rgb(var(--black-rgb) / 0.24);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgb(var(--black-rgb) / 0.92);
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
    margin-top: 20px;
}

.login-feat-chip i {
    font-size: 12.5px;
    color: var(--logo-color);
    flex-shrink: 0;
}

.login-feat-chip:hover {
    background: rgb(var(--logo-color-rgb) / 0.22);
    border-color: rgb(var(--logo-color-rgb) / 0.52);
    transform: translateY(-1px);
}