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

:root {
    /* cpre colors  */
    --font: "Rubik", sans-serif;
    --body-color: #1b1b1b;
    --white-color: #ffffff;
    --black-color: #000;
    --black-50-color: rgba(0, 0, 0, 0.4);
    --primary-color: #5b5bd6;
    --dark-color: rgba(0, 0, 0, 0.08);
    --light-color: #f5f5f5;
    --assest-color: #e9ecef;
    --light-gray: #818181;
    --green-color: #058f00;
    --red-color: #ff000d;
    --warning-color: #e7ae03;
    --light-green: rgba(86, 163, 86, 0.195);
    --light-red: rgba(172, 81, 81, 0.195);
    --light-warning: rgba(161, 161, 63, 0.195);
    --white-alpha-1: rgba(255, 255, 255, 0.12);
    --white-alpha-2: rgba(255, 255, 255, 0.4);
    --white-alpha-3: rgba(255, 255, 255, 0.72);
    --border-color: #e5e7eb;
    --primary-light: rgba(91, 91, 214, 0.09);
    --text-muted: #6b7280;
    --file-btn-bg: #969a9e;
    --black-alpha-1: rgba(0, 0, 0, 0.7);
    --black-alpha-06: rgba(0, 0, 0, 0.06);
    --black-alpha-10: rgba(0, 0, 0, 0.1);
    --green-alpha-12: rgba(5, 143, 0, 0.12);
    --card-header-bg: #fafafa;
    --primary-gradient: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        color-mix(in srgb, var(--primary-color) 65%, black) 100%
    );
    /* Charts (ApexCharts theme tokens) */
    --chart-series-1: var(--primary-color);
    --chart-series-2: #e53935;
    --chart-series-3: #f7971e;
    --chart-series-4: #53989e;
    --chart-series-5: var(--primary-gradient);
    --chart-series-6: #16a34a;
    --chart-series-7: #2563eb;
    --chart-grid-line: #eceff3;
    --chart-axis-label: var(--text-muted);

    /* Login page */
    --lp-text: #4b5563;
    --lp-card-bg: rgba(255, 255, 255, 0.85);
    --lp-border-hover: #cbd5e1;
    --lp-gray-label: #374151;
    --lp-gray-input: #1f2937;
    --lp-shadow: rgba(91, 91, 214, 0.25);
    --lp-shadow-soft: rgba(91, 91, 214, 0.2);
    --lp-focus-ring: rgba(91, 91, 214, 0.15);
    --lp-glow: rgba(91, 91, 214, 0.3);
    --lp-glow-heavy: rgba(91, 91, 214, 0.45);
    /* Login page dark theme */
    --primary-rgb: 91, 91, 214;
    --lp-accent-rgb: 91, 91, 214;
    --lp-bg-dark: #171736;
    --lp-accent: #5b5bd6;
    --lp-accent-hover: #4d4db6;
    --lp-accent-active: #404096;
    --lp-input-bg: #101027;
    --lp-input-bg-hover: #0b0b1a;
    --lp-input-bg-focus: #070711;
    /* Table */
    --table-head-bg: #f8fafc;
    --table-stripe-bg: rgba(249, 250, 251, 0.7);
    /* Global */
    --primary-overlay: rgba(40, 62, 80, 0.7);
    --shadow-xxs: rgba(0, 0, 0, 0.04);
    --shadow-xs: rgba(0, 0, 0, 0.06);
    --shadow-navy: rgba(15, 23, 42, 0.06);
    --assigned-badge-bg: rgba(220, 38, 38, 0.88);
    --light-red-border: rgba(172, 81, 81, 0.18);
    /* HSC KPIs extra colors */
    --color-blue: #2563eb;
    --color-teal: #0d9488;
    --color-indigo: #6366f1;
    --primary-alpha-3: rgba(40, 62, 80, 0.15);
    --color-blue-alpha: rgba(37, 99, 235, 0.12);
    --color-teal-alpha: rgba(13, 148, 136, 0.12);

    /* App (mobile) brand colors — exact values from the Flutter app's own
       lib/utils/color.dart, used only inside the section-builder's device
       preview (public/assets/css/style.css .sb-* preview-content rules) so
       it visually matches the real app; not used for this admin panel's own
       chrome, which keeps its own --primary-color etc. */
    --app-color-primary: #5b5bd6;
    --app-color-secondary: #7c4dff;
    --app-color-accent: #e5941c;
    --app-color-success: #00b894;
    --app-color-success-dark: #1f8a5b;
    --app-color-info: #3498db;
    --app-color-error: #e74c3c;
    --app-color-bookmark: #ff5a7a;
    --app-color-pink: #d9538c;
    /* Sampled directly off a real device screenshot: the scaffold/page
       background is this faint off-white (#f6f7fb), NOT pure white - cards
       and inputs like the search bar/notification button sit ON TOP of it
       in pure --white-color, one shade lighter, not the other way round. */
    --app-surface-2: #f1f2f8;
    --app-text-muted: #71718a;
    /* Card borders in the app are Theme.dividerColor, which this app's theme
       sets to lightTextMuted (#71718A) - not a faint hairline, a distinctly
       visible muted-gray border. */
    --app-border: #71718a;
    --app-gradient-primary: linear-gradient(
        135deg,
        var(--app-color-primary) 0%,
        var(--app-color-secondary) 100%
    );
    --app-overlay-black-40: rgba(0, 0, 0, 0.4);
    --app-overlay-black-50: rgba(0, 0, 0, 0.5);
    --app-overlay-black-55: rgba(0, 0, 0, 0.55);
    --app-overlay-white-16: rgba(255, 255, 255, 0.16);
    --app-overlay-white-22: rgba(255, 255, 255, 0.22);
    --app-overlay-white-90: rgba(255, 255, 255, 0.9);
    --app-overlay-white-92: rgba(255, 255, 255, 0.92);
    --app-overlay-white-95: rgba(255, 255, 255, 0.95);
    /* Card shadows — exact blur/offset/alpha from the app's card styles */
    --app-shadow-sm: 0 6px 12px rgba(0, 0, 0, 0.06);
    --app-shadow-card: 0 8px 16px rgba(0, 0, 0, 0.06);
    --app-shadow-cover: 0 10px 20px rgba(0, 0, 0, 0.12);
    --app-shadow-row: 0 8px 18px rgba(0, 0, 0, 0.08);
    /* Placeholder-cover palette rotation (chips, and any missing-image
       fallback) - the app's _palette(i) rotates 8 base colors, each paired
       with itself darkened 35% toward black (Color.lerp(c, black, 0.35),
       i.e. each channel * 0.65 - computed exactly, not guessed). */
    --app-palette-1: linear-gradient(
        135deg,
        var(--app-color-primary) 0%,
        #3b3b8b 100%
    );
    --app-palette-2: linear-gradient(
        135deg,
        var(--app-color-success) 0%,
        #007860 100%
    );
    --app-palette-3: linear-gradient(
        135deg,
        var(--app-color-accent) 0%,
        #956012 100%
    );
    --app-palette-4: linear-gradient(
        135deg,
        var(--app-color-error) 0%,
        #963127 100%
    );
    --app-palette-5: linear-gradient(
        135deg,
        var(--app-color-info) 0%,
        #22638e 100%
    );
    --app-palette-6: linear-gradient(
        135deg,
        var(--app-color-secondary) 0%,
        #5132a6 100%
    );
    --app-palette-7: linear-gradient(
        135deg,
        var(--app-color-success-dark) 0%,
        #145a3b 100%
    );
    --app-palette-8: linear-gradient(
        135deg,
        var(--app-color-pink) 0%,
        #8d365b 100%
    );
    /* Section builder device screen height - also used to cap the right
       form panel's own height so it lines up with the device preview. */
    --sb-device-height: 750px;
    /* Fake OS status bar (time + signal/wifi/battery) drawn above the app
       chrome so the device frame reads like a real screenshot, not just the
       in-app UI - also carved out of --sb-device-height. */
    --sb-app-statusbar-height: 30px;
}

html {
    height: 100%;
}

body {
    height: 100%;
    /* overflow-y intentionally left off html above - html is the browser's
       actual root scrolling element, so giving it an explicit overflow too
       (as this used to) turns it into a second, independent scroll
       container alongside body's, producing two stacked scrollbars on any
       page whose content grows past one viewport. body alone is enough. */
    overflow-y: auto;
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--body-color);
    background-color: var(--light-color);
    font-size: 14px;
    overflow-x: hidden;
}

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

a {
    text-decoration: none !important;
}

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

.text-gray {
    color: var(--body-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-link.small {
    font-size: 12px;
    margin-left: 3px;
}

.btn-default {
    background: var(--primary-gradient);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    padding: 8px 18px;
}

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

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

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

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

.size-55 {
    height: 55px;
    width: 55px;
}

.size-40 {
    height: 40px;
    width: 40px;
}

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

.br-10 {
    border-radius: 10px;
}

.f-14 {
    font-size: 14px;
}

.f-18 {
    font-size: 18px;
}

.mt-12 {
    margin-top: 12px;
}

.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(--dark-color);
    box-shadow: 0 15px 35px var(--dark-color);
    padding: 4px;
    border: 0;
    border-radius: 12px;
}

.dropdown-menu .dropdown-item {
    font-weight: 500;
    border-bottom: 1px solid var(--light-color);
    padding: 7px 11px;
    font-size: 14px;
    outline: none;
}

.dropdown-menu .dropdown-item:focus {
    background-color: transparent;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--light-color) !important;
}

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

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

.cursor {
    background-color: var(--assest-color);
    border: 1px solid var(--black-color);
    cursor: grab;
}

.side-toggle {
    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;
    background: transparent;
    padding: 0;
}

.side-toggle span {
    background: var(--text-muted);
    width: 20px;
    height: 2px;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.25s ease;
    display: block;
}

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

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

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

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

.sidebar {
    background: var(--white-color);
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 260px;
    max-width: 100%;
    overflow: hidden;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
    -webkit-transition:
        width 0.3s ease,
        -webkit-transform 0.3s ease;
    transition:
        width 0.3s ease,
        transform 0.3s ease;
    border-right: 1px solid var(--assest-color);
    z-index: 100;
}

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

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

@media (min-width: 1024px) {
    .sidebar.hide-sidebar .side-menu .side-submenu a.dropdown-item {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        margin: 4px 10px;
        border-radius: 10px;
    }

    .hide-sidebar .side-menu .side-submenu a.dropdown-item {
        height: 35px;
        margin-left: 15px !important;
    }

    .sidebar.hide-sidebar .side-menu .partition {
        display: none;
    }

    .sidebar.hide-sidebar .side-head {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 15px 12px;
    }

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

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

    .sidebar.hide-sidebar .side-menu a {
        margin: 2px auto;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding: 7px;
        height: 44px;
        width: 44px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        border-radius: 10px;
    }

    .sidebar.hide-sidebar .side-menu a .menu-icon {
        margin-right: 0;
        width: 30px;
        height: 30px;
        font-size: 14px !important;
    }

    .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;
        border-left: none;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu a {
        padding: 0;
        margin: 2px auto;
        width: 44px;
        height: 44px;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu .active {
        padding: 0;
        margin: 0px;
    }

    .sidebar.hide-sidebar .side-menu .dropdown-menu a svg {
        margin-right: 0;
    }

    .sidebar.hide-sidebar .side-menu .side-submenu .submenu-icon {
        margin: 0;
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}

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

.sidebar .side-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 20px;
    height: 64px;
    border-bottom: 1px solid var(--assest-color);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: var(--white-color);
    z-index: 10000;
}

.sidebar .side-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    width: auto;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar .side-logo:hover {
    color: var(--primary-color);
    opacity: 0.85;
}

.sidebar .side-menu {
    display: flex;
    flex-direction: column;
    /* Logout sits at the very bottom via the .side-menu-divider's
       margin-top:auto above (a flex sticky-footer: it eats all the
       leftover height so Logout lands flush against this padding rather
       than floating mid-sidebar with a dead gap under it). That makes
       this bottom padding the ENTIRE visible gap below Logout, so it's
       kept small - 28px read as a big empty strip once Logout is already
       pinned down here. */
    padding: 8px 0 10px;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 64px);
}

.sidebar .side-menu > li,
.sidebar .side-menu > .partition {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

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

.sidebar .side-menu::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

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

.sidebar .side-menu a {
    color: var(--text-muted);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 6px 12px;
    margin: 2px 10px;
    position: relative;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    -webkit-transition:
        background 0.18s ease,
        color 0.18s ease;
    transition:
        background 0.18s ease,
        color 0.18s ease;
    white-space: nowrap;
}

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

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

.sidebar .side-menu a i {
    font-size: 15px !important;
}

.sidebar .side-menu a .menu-icon {
    margin-right:3px;
    width: 30px;
    height: 30px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: var(--text-muted);
    -webkit-transition: color 0.18s ease;
    transition: color 0.18s ease;
}

.sidebar .side-menu .dropdown-menu a i {
    font-size: 13px !important;
}

.sidebar .side-menu .dropdown-menu a .submenu-icon {
    margin-right: 3px;
    width: 26px;
    height: 26px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 7px;
    background: transparent;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: var(--text-muted);
    -webkit-transition: color 0.18s ease;
    transition: color 0.18s ease;
}

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

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

.sidebar .side-menu .active > a {
    background: var(--primary-gradient);
    color: var(--white-color);
    font-weight: 600;
    box-shadow:
        0 2px 4px var(--shadow-xxs),
        0 8px 16px var(--shadow-xs);
}

.sidebar .side-menu .active > a .menu-icon {
    -webkit-filter: none;
    filter: none;
    background: transparent;
    color: var(--white-color);
}

.sidebar .side-menu .dropdown-menu .active > a .submenu-icon {
    -webkit-filter: none;
    filter: none;
    background: transparent;
    color: var(--white-color);
}

.sidebar .side-menu .dropdown-toggle::after {
    position: absolute;
    right: 14px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
}

.sidebar .side-menu .dropdown-menu {
    position: relative !important;
    /* Bootstrap's base .dropdown-menu rule sets top:100% for its normal
       position:absolute popup positioning. Once we force position:relative
       above (so the submenu lays out inline in the sidebar instead of
       floating), that leftover top:100% is reinterpreted as "offset down by
       100% of the containing <li>'s height" - which, once the <li> is
       tall enough to include this very submenu, pushes the whole open
       submenu down by roughly its own height, landing on top of whatever
       sidebar content comes after it. Pinning top/left back to 0 neutralizes
       that leftover offset so the submenu stays right where it renders. */
    top: 0 !important;
    left: 0 !important;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    float: none;
    background: transparent;
    margin-left: 35px;
    padding: 2px 0 2px 0px;
    border-left: 2px solid var(--primary-color);
    border-radius: 0;
}

.sidebar .side-menu .dropdown-menu .dropdown-item {
    padding: 7px 12px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    border-bottom: none;
    border-radius: 10px;
    margin: 1px 10px 1px 4px;
    width: auto;
    box-shadow: none;
}

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

.sidebar .side-menu .side-submenu a {
    color: var(--text-muted);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 6px 12px;
    position: relative;
    margin: 2px 4px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    -webkit-transition:
        background 0.18s ease,
        color 0.18s ease;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

/* A nested item that itself expands a deeper submenu (e.g. "Novels" inside
   "Content Library") only carries .side-submenu-toggle, never .dropdown-item
   - so it fell back to the 4px right margin above instead of the 10px right
   margin every other nested row gets from the .dropdown-item rule below,
   making it stick out further than its parent and its own children. Bump
   just its right margin back to 10px so every nesting level's pill ends at
   the same right edge. */
.sidebar .side-menu .side-submenu-toggle {
    margin-right: 10px !important;
}

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

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

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

.sidebar .side-menu .side-submenu .active > a {
    color: var(--white-color);
    background: var(--primary-gradient);
    font-weight: 600;
    box-shadow:
        0 2px 4px var(--shadow-xxs),
        0 8px 16px var(--shadow-xs);
}

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

.header {
    position: sticky;
    -webkit-position: -webkit-sticky;
    top: 0;
    background: var(--white-color);
    z-index: 22;
    height: 64px;
    padding: 14px 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-color);
    box-shadow: 0 2px 12px var(--dark-color);
}

@media (min-width: 1680px) {
    .header {
        padding: 18px 32px;
    }
}

.header .title-control {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    gap: 14px;
}

.header .title-control .side-toggle {
    margin-right: 0;
    display: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.header .page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--body-color);
    letter-spacing: -0.2px;
}

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

.header .input-group .form-control {
    background: transparent;
    border: 0;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
    font-size: 14px;
    padding: 12px 6px;
}

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

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

.header .head-control {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.header .head-control .head-btn {
    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;
    height: 38px;
    width: 38px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--assest-color);
    border: 1px solid var(--assest-color);
    -webkit-transition: all 0.15s;
    transition: all 0.15s;
}

.header .head-control .head-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-gradient);
}

.header .head-control .head-btn:hover i {
    color: var(--white-color) !important;
}

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

.body-content {
    padding: 25px;
}

.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: 40px;
    width: 40px;
    border-radius: 50%;
}

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

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

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

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

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

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

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

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

.summary-table-card .border-card {
    padding: 10px 14px;
    border: 1px solid var(--light-color);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    background: var(--white-color);
    transition:
        box-shadow 0.2s ease,
        background 0.2s ease;
}

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

.summary-table-card .border-card > .row .col-1,
.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;
}

.artist-grid-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100% - 20px);
    padding: 26px 16px 20px;
    background: var(--white-color);
    border: 1px solid var(--assest-color);
    border-radius: 16px;
    margin: 20px 0 0;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 1px 2px var(--dark-color),
        0 4px 12px var(--dark-color);
    transition:
        box-shadow 0.26s ease,
        border-color 0.26s ease,
        transform 0.26s ease;
}

.artist-grid-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.artist-grid-card:hover {
    border-color: var(--primary-color);
    box-shadow:
        0 2px 4px var(--dark-color),
        0 8px 20px var(--dark-color);
    transform: translateY(-4px);
}

.artist-grid-card:hover::before {
    opacity: 1;
}

.artist-grid-card .name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.1px;
    margin: 14px 0 6px;
    color: var(--body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.artist-grid-card .details {
    display: inline-flex;
    max-width: 100%;
    font-size: 11px;
    font-weight: 600;
    color: var(--light-gray);
    background: var(--light-color);
    margin: 0;
    padding: 3px 12px;
    border-radius: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-video-btn {
    height: calc(100% - 30px);
    background: var(--white-color);
    border: 1px solid var(--light-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;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 15px 0;
    width: 100%;
    border-radius: 15px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    padding: 25px;
    color: var(--body-color) !important;
}

.add-video-btn .icon {
    margin-bottom: 15px;
}

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

.video-card:hover {
    -webkit-box-shadow: 0 15px 35px var(--dark-color);
    box-shadow: 0 15px 35px var(--dark-color);
}

.video-card:hover .overlap-control {
    display: block;
}

.video-card .card-img-top {
    border-radius: 15px;
    height: 160px;
    -o-object-fit: cover;
    object-fit: cover;
}

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

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

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

.video-card .card-body .dropdown .head-btn {
    padding: 5px;
    -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 {
    padding-right: 10px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.modal .close {
    outline: none;
}

.custom-border-card {
    border: 1px solid var(--assest-color);
    -webkit-box-shadow: 0 2px 10px var(--dark-color);
    box-shadow: 0 2px 10px var(--dark-color);
    padding: 22px 26px;
    border-radius: 16px;
    margin-bottom: 22px;
    background: var(--white-color);
}

.custom-border-card .card-header {
    font-size: 15px;
    background: var(--card-header-bg);
    margin: -22px -26px 20px;
    padding: 0px 26px;
    min-height: 50px;
    font-weight: 600;
    border-bottom: 1px solid var(--assest-color);
    letter-spacing: 0.01em;
    color: var(--body-color);
    border-radius: 16px 16px 0 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.custom-border-card .card-header > span {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.custom-border-card .card-header i {
    color: var(--primary-color);
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.custom-border-card .card-header .btn-link {
    font-size: 13px;
    padding: 0;
    font-weight: 500;
    white-space: nowrap;
}

.custom-border-card.h-100 {
    margin-bottom: 0;
}

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

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

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

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

.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(--primary-light);
    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(--light-gray);
}

.radio-group .custom-control-input:checked ~ .custom-control-label {
    background: var(--primary-gradient);
    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(--light-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(--assest-color);
    border-radius: 8px;
    padding: 6px 18px;
    font-weight: 600;
}

div.dataTables_wrapper div.dataTables_length label .form-control,
div.dataTables_wrapper div.dataTables_filter label .form-control {
    padding: 6px 12px;
    text-align: center;
    margin: 0 13px;
}

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

/* =================================================
   LOGIN PAGE v3 — Curved/Slanted Premium Split Card
   ================================================= */

/* ─── Page shell — position:fixed keeps body scroll-free ─── */
.lp-root {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(14px, 2vh, 32px) clamp(16px, 2vw, 36px);
    box-sizing: border-box;
    background: linear-gradient(
        135deg,
        var(--lp-bg-dark) 0%,
        var(--lp-bg-dark) 45%,
        var(--primary-color) 100%
    );
}

/* Subtle depth layer using primary-color tones */
.lp-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 15% 15%,
            var(--lp-glow-heavy) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse at 85% 85%,
            var(--lp-glow-heavy) 0%,
            transparent 55%
        ),
        linear-gradient(
            200deg,
            var(--black-50-color) 0%,
            var(--lp-shadow-soft) 100%
        );
    z-index: 1;
}

/* ─── dd wrapper — compact auto-height card ─── */
.lp-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: clamp(760px, 80vw, 1020px);
    display: flex;
    align-items: stretch;
}

/* ─── Main unified card ─── */
.lp-main-card {
    width: 100%;
    min-height: clamp(540px, 75vh, 640px);
    /* Force card to stretch to taller height directly */
    display: flex;
    overflow: hidden;
    background: transparent;
    /* Transparent to show the main page background image */
    padding: 0;
    border-radius: 36px;
    box-shadow:
        0 30px 60px var(--dark-color),
        0 12px 24px var(--dark-color),
        0 0 0 1px var(--white-alpha-1);
    /* Brighter border outline */
    animation: lp-scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ═══════════════════════════════════════════
   LEFT SIDE — Branding & Features (White background)
   ═══════════════════════════════════════════ */
.lp-card-left {
    flex: 0 0 50%;
    padding: clamp(36px, 5vh, 52px) clamp(36px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: var(--white-color);
    /* Solid white left panel */
    z-index: 2;
    clip-path: url(#lp-curve-clip);
    /* Curves the right boundary */
}

/* ── Bubble animations ── */
@keyframes lp-float-a {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes lp-float-b {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes lp-blob-drift {
    0%,
    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate(-50%, -50%);
    }

    50% {
        border-radius: 60% 40% 38% 62% / 55% 65% 35% 45%;
        transform: translate(-52%, -52%);
    }
}

/* Decorative background blob */
.lp-left-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(
        135deg,
        rgba(var(--lp-accent-rgb), 0.05) 0%,
        rgba(var(--primary-rgb), 0.05) 50%,
        rgba(var(--lp-accent-rgb), 0.02) 100%
    );
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(35px);
    pointer-events: none;
    animation: lp-blob-drift 14s ease-in-out infinite;
}

/* Floating filled circles */
.lp-left-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Large – top-right */
.lp-lc-1 {
    width: 76px;
    height: 76px;
    top: 8%;
    right: 12%;
    background: linear-gradient(
        135deg,
        rgba(var(--lp-accent-rgb), 0.08) 0%,
        rgba(var(--primary-rgb), 0.03) 100%
    );
    border: 1px solid rgba(var(--lp-accent-rgb), 0.15);
    box-shadow:
        0 8px 32px 0 rgba(var(--primary-rgb), 0.02),
        inset 0 4px 12px rgba(255, 255, 255, 0.25);
    animation: lp-float-a 8s ease-in-out infinite;
}

/* Medium – positioned to the right of the feature list */
.lp-lc-2 {
    width: 48px;
    height: 48px;
    bottom: 22%;
    right: 16%;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.02) 0%,
        rgba(var(--lp-accent-rgb), 0.08) 100%
    );
    border: 1px solid rgba(var(--lp-accent-rgb), 0.12);
    box-shadow:
        0 8px 32px 0 rgba(var(--primary-rgb), 0.02),
        inset 0 4px 12px rgba(255, 255, 255, 0.25);
    animation: lp-float-b 7s ease-in-out infinite 1s;
}

/* Small – positioned to the right of the headline area */
.lp-lc-3 {
    width: 28px;
    height: 28px;
    top: 32%;
    right: 22%;
    background: linear-gradient(
        135deg,
        rgba(var(--lp-accent-rgb), 0.1) 0%,
        rgba(var(--primary-rgb), 0.03) 100%
    );
    border: 1px solid rgba(var(--lp-accent-rgb), 0.18);
    box-shadow:
        0 4px 16px 0 rgba(var(--primary-rgb), 0.02),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    animation: lp-float-a 6s ease-in-out infinite 0.6s;
}

/* Ensure content sits on top of background shapes */
.lp-brand,
.lp-headline,
.lp-features,
.lp-copyright-left {
    position: relative;
    z-index: 2;
}

/* ─── Brand block ─── */
.lp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.lp-brand-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--dark-color);
}

.lp-brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.lp-brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.1;
    color: var(--primary-color);
}

.lp-brand-tagline {
    font-size: 10px;
    color: var(--lp-glow-heavy);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ─── Headline ─── */
.lp-headline {
    margin-top: auto;
    margin-bottom: auto;
    padding-right: 12%;
}

.lp-hl-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.lp-hl-desc {
    font-size: clamp(12.5px, 1.5vh, 13.5px);
    color: var(--lp-glow-heavy);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* ─── Feature list ─── */
.lp-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 12%;
}

.lp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-fi {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 13px;
}

.lp-ft {
    font-size: 13px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════
   RIGHT SIDE — Login Form (Dark blue background)
   ═══════════════════════════════════════════ */
.lp-card-right {
    flex: 1;
    background: transparent;
    padding: clamp(36px, 5vh, 52px) clamp(36px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* ─── Auth header ─── */
.lp-auth-header {
    margin-bottom: 28px;
    text-align: center;
    /* Center aligned */
}

/* Auth badge pill */
.lp-auth-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--white-color);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--white-alpha-1);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--white-alpha-2);
    animation: lp-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.28s;
}

/* Mobile-only/responsive logo icon */
.lp-auth-mark {
    display: none !important;
    /* Hidden on desktop, matching reference */
}

.lp-auth-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.lp-auth-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--white-color);
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.lp-auth-subtitle {
    font-size: 13.5px;
    color: var(--white-alpha-3);
    margin: 0;
    line-height: 1.5;
}

.lp-auth-subtitle .subtitle-bold {
    font-weight: 700;
    color: var(--white-color);
}

/* ─── Form fields ─── */
.lp-field {
    margin-bottom: 22px;
}

.lp-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--white-alpha-3);
    margin-bottom: 8px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}

.lp-input-wrap {
    position: relative;
    width: 100%;
}

.lp-left-icon {
    display: flex !important;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-alpha-2);
    font-size: 15px;
    pointer-events: none;
    z-index: 5;
}

.lp-right-icon {
    display: flex !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-alpha-2);
    font-size: 15px;
    pointer-events: none;
    z-index: 5;
}

.lp-input-wrap .form-control.lp-input {
    height: 48px !important;
    padding: 0 44px 0 48px !important;
    background: var(--lp-input-bg) !important;
    border: 1px solid var(--white-alpha-1);
    border-radius: 100px !important;
    /* Pill-shaped inputs */
    font-size: 14px !important;
    color: var(--white-color) !important;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: none;
}

.lp-input-wrap .form-control.lp-input::placeholder {
    color: var(--white-alpha-2) !important;
}

.lp-input-wrap .form-control.lp-input:hover {
    border-color: var(--white-alpha-1);
    background: var(--lp-input-bg-hover) !important;
}

.lp-input-wrap .form-control.lp-input:focus {
    border-color: var(--lp-accent) !important;
    background: var(--lp-input-bg-focus) !important;
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

/* Password toggle */
.lp-pwd-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 4px;
    cursor: pointer;
    color: var(--white-alpha-2);
    font-size: 15px;
    z-index: 6;
    line-height: 1;
    transition: color 0.2s;
}

.lp-pwd-toggle:hover {
    color: var(--white-color);
}

.lp-pwd-toggle:focus {
    outline: none;
}

/* General password toggle for admin/author/installation */
.pwd-wrapper {
    position: relative;
}
.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #6c757d;
    font-size: 15px;
    z-index: 6;
    line-height: 1;
    transition: color 0.2s;
}
.pwd-toggle:hover {
    color: #343a40;
}
.pwd-toggle:focus {
    outline: none;
}

/* ─── Submit button ─── */
.lp-btn-row {
    margin-top: 28px;
    margin-bottom: 16px;
}

.lp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 100px !important;
    /* Pill-shaped button */
    background: var(--lp-accent);
    color: var(--white-color);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px var(--dark-color);
}

.lp-btn span {
    margin: 0 auto;
    padding-left: 0;
    /* Centered without left shift */
}

.lp-btn-arrow-circle {
    display: flex !important;
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white-alpha-1);
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.lp-btn-arrow-circle i {
    color: var(--white-color);
    font-size: 11px;
    transition: transform 0.2s;
}

.lp-btn:hover:not(:disabled) {
    background: var(--lp-accent-hover);
    box-shadow: 0 6px 18px var(--dark-color);
}

.lp-btn:hover:not(:disabled) .lp-btn-arrow-circle i {
    transform: translateX(2px);
}

.lp-btn:active:not(:disabled) {
    background: var(--lp-accent-active);
}

.lp-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

/* ─── Demo hint ─── */
.lp-demo-hint {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--white-alpha-1);
    font-size: 12.5px;
    color: var(--white-alpha-2);
    text-align: center;
    line-height: 1.6;
}

.lp-demo-hint a {
    color: var(--lp-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

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

/* ─── Social Icons ─── */
.lp-social-icons {
    display: none !important;
}

/* ─── Copyright placement ─── */
.lp-copyright {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

/* Left panel copyright (Desktop) */
.lp-copyright-left {
    display: none !important;
}

/* Right panel copyright (Desktop & Mobile) */
.lp-copyright-right {
    display: block !important;
    position: absolute;
    bottom: clamp(16px, 3vh, 24px);
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white-alpha-2);
}

.lp-copyright-right .brand-text {
    color: var(--white-color);
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Large desktop 1441–1919px */
@media (min-width: 1441px) {
    .lp-wrap {
        max-width: 1040px;
    }
}

/* Medium/Small laptop 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .lp-wrap {
        max-width: 92vw;
    }

    .lp-card-left {
        flex: 0 0 52%;
        padding: 40px 36px;
    }

    .lp-card-right {
        padding: 40px 44px;
    }
}

/* Small mobile ≤480px */
@media (max-width: 480px) {
    .lp-root {
        padding: 12px;
    }

    .lp-main-card {
        border-radius: 20px;
    }

    .lp-card-left {
        padding: 24px 16px 16px 16px;
    }

    .lp-card-right {
        padding: 28px 16px 20px 16px;
    }

    .lp-hl-title {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   ═══════════════════════════════════════════ */
@keyframes lp-scale-in {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }

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

.lp-brand,
.lp-headline,
.lp-features,
.lp-auth-mark,
.lp-auth-title,
.lp-auth-subtitle,
.lp-field,
.lp-btn-row,
.lp-demo-hint,
.lp-social-icons,
.lp-copyright {
    animation: lp-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lp-fade-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.lp-brand {
    animation-delay: 0.1s;
}

.lp-headline {
    animation-delay: 0.15s;
}

.lp-features {
    animation-delay: 0.2s;
}

.lp-auth-mark {
    animation-delay: 0.25s;
}

.lp-auth-title {
    animation-delay: 0.3s;
}

.lp-auth-subtitle {
    animation-delay: 0.35s;
}

.lp-field-1 {
    animation-delay: 0.4s;
}

.lp-field-2 {
    animation-delay: 0.45s;
}

.lp-btn-row {
    animation-delay: 0.5s;
}

.lp-demo-hint {
    animation-delay: 0.55s;
}

.lp-social-icons {
    animation-delay: 0.6s;
}

.lp-copyright {
    animation-delay: 0.65s;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .lp-main-card,
    .lp-brand,
    .lp-headline,
    .lp-features,
    .lp-auth-mark,
    .lp-auth-title,
    .lp-auth-subtitle,
    .lp-field,
    .lp-btn-row,
    .lp-demo-hint,
    .lp-social-icons,
    .lp-copyright {
        animation: none;
    }
}

/* END: Login Page Reference Design */

@media (min-width: 1600px) {
    .table thead th,
    .table td {
        font-size: 16px;
    }

    .summary-table-card .border-card {
        font-size: 16px;
    }

    .artist-grid-card {
        padding: 30px 20px 24px;
    }

    .artist-grid-card .name {
        font-size: 16px;
    }

    .artist-grid-card .details {
        font-size: 12px;
        padding: 4px 14px;
    }

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

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

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

    .custom-border-card .card-header {
        font-size: 17px;
    }
}

@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;
        box-shadow: 8px 0 32px var(--dark-color);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        overflow: hidden;
    }

    .sidebar.hide-sidebar .side-head {
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .sidebar.hide-sidebar .side-menu {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

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

    .sidebar.hide-sidebar .side-menu::-webkit-scrollbar-thumb {
        background-color: var(--white-color);
    }

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

    .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: 12px 16px;
    }

    .header .page-title {
        font-size: 17px;
    }

    .header .title-control .side-toggle {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        background-color: var(--light-color);
    }

    .header .title-control .side-toggle span {
        background-color: var(--black-color);
    }

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

    .page-title-sm {
        font-size: 26px;
        font-weight: 600;
        margin: -10px 0 20px;
        display: block;
        border-bottom: 1px solid var(--light-color);
        padding-bottom: 5px;
    }
}

@media (max-width: 767px) {
    .btn-default {
        font-size: 14px;
    }

    .header .input-group {
        height: 45px;
        width: 45px;
        border-radius: 5px;
    }

    .header .input-group .form-control {
        display: none;
    }

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

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

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

    .custom-border-card .card-header {
        font-size: 15px;
        margin: -16px -20px 16px;
        padding: 12px 20px;
        min-height: 60px;
    }
}

@media (max-width: 567px) {
    .artist-grid-card .name {
        font-size: 13px;
    }

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

/* Loader */
#dvloader {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    background-color: var(--black-alpha-1);
    z-index: 9999;
    text-align: center;
}

#dvloader img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    height: 150px;
}

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

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

/* btn Install / btn Install Cancel — see INSTALLATION WIZARD section */

/* ── Edit / Delete action buttons ── */
.edit-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid transparent;
    font-size: 14px;
    line-height: 1;
    transition:
        background 0.17s ease,
        border-color 0.17s ease,
        box-shadow 0.17s ease,
        transform 0.14s ease;
    cursor: pointer;
    text-decoration: none !important;
    outline: none !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.edit-delete-btn i {
    font-size: 14px !important;
    pointer-events: none;
}

/* Edit — <a class="edit-delete-btn"> */
a.edit-delete-btn {
    background: rgba(40, 62, 80, 0.09);
    border-color: rgba(40, 62, 80, 0.14);
    color: var(--primary-color) !important;
}

a.edit-delete-btn:hover {
    background: rgba(40, 62, 80, 0.16);
    border-color: var(--lp-glow);
    color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(40, 62, 80, 0.18);
    transform: translateY(-1px);
}

/* Delete — <button class="edit-delete-btn"> (row form and bulk toolbar) */
form .edit-delete-btn,
button.edit-delete-btn {
    background: rgba(255, 0, 13, 0.08);
    border-color: rgba(255, 0, 13, 0.14);
    color: var(--red-color) !important;
}

form .edit-delete-btn:hover,
button.edit-delete-btn:hover {
    background: rgba(255, 0, 13, 0.15);
    border-color: rgba(255, 0, 13, 0.28);
    color: var(--red-color) !important;
    box-shadow: 0 2px 8px rgba(255, 0, 13, 0.16);
    transform: translateY(-1px);
}

/* Import File */
.import-file {
    background-color: var(--primary-light) !important;
    color: var(--black-color);
}

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

.lang-file-row {
    border: 1px solid var(--light-color) !important;
    border-radius: 8px !important;
}

.lang-upload-btn {
    height: 36px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 19px;
}

/* Select2 DropDown */
.select2-container .select2-selection--single {
    border: 1px solid var(--border-color) !important;
    background: var(--white-color);
    border-radius: 8px !important;
    padding: 8px;
    font-size: 14px;
    height: auto !important;
}

.select2-container .select2-selection--multiple {
    border: 1px solid var(--light-color) !important;
    background: var(--white-color);
    border-radius: 8px !important;
    padding: 6px;
    font-size: 14px;
    height: auto !important;
}

.filter-item .select2-selection--single,
.filter-item .select2-selection--multiple {
    border: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus
    .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open
    .select2-selection--multiple {
    border-color: var(--primary-color) !important;
    background: var(--white-color);
    -webkit-box-shadow: 0 0 0 3px var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100% !important;
    right: 5px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    transform: translate(-50%, -50%);
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--primary-light) !important;
}
.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}
/* Author avatar in artist-grid-card */
.author-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-color);
    border: 3px solid var(--white-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-3);
    transition:
        box-shadow 0.26s ease,
        transform 0.26s ease;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.artist-grid-card:hover .author-image {
    box-shadow: 0 0 0 4px var(--primary-alpha-3);
    transform: scale(1.05);
}

/* Side Menu Partition */
.partition {
    width: 100%;
    border-bottom: none;
    line-height: 1;
    margin: 20px 0 4px;
    padding: 0 12px;
}

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

.partition.side-menu-divider {
    border-top: 1px solid var(--border-color);
    margin: auto 12px 10px;
    padding: 0;
}

.sidebar .side-menu .side-menu-logout > a {
    color: var(--red-color);
}

.sidebar .side-menu .side-menu-logout > a .menu-icon {
    color: var(--red-color);
}

.sidebar .side-menu .side-menu-logout > a:hover {
    background: var(--light-red);
    color: var(--red-color);
}

.sidebar .side-menu .side-menu-logout > a:hover .menu-icon {
    color: var(--red-color);
}

/* Demo Mode Box */
.demo-mode-box {
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    padding: 8px 14px;
    letter-spacing: 0.02em;
}

.demo-mode-box span {
    white-space: nowrap;
}

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

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

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

.hexcolor {
    border: none;
    padding: 10px;
    width: 100px;
    outline: none;
}

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

/* Installation wizard classes moved to the dedicated
   "INSTALLATION WIZARD" section near the end of this file. */

.pointer {
    cursor: pointer !important;
}

/* Hide-Show Btn */
.show-btn,
.hide-btn,
.upcoming-btn,
.primary-btn {
    font-weight: bold;
    border: none;
    padding: 7px 20px;
    outline: none;
    border-radius: 50px;
    box-sizing: border-box;
    font-size: 12px !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cursor-pointer {
    cursor: pointer;
}

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

.primary-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

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

.upcoming-btn {
    background-color: var(--light-warning);
    color: var(--warning-color);
}

a.primary-btn:hover {
    background: var(--primary-gradient);
    color: var(--white-color);
    text-decoration: none;
}

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

/* Earning-Card */
.card-earning {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 20px 20px 18px;
    width: 100%;
    border: 1px solid var(--assest-color);
    -webkit-box-shadow: 0 1px 4px var(--dark-color);
    box-shadow: 0 1px 4px var(--dark-color);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card-earning::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 12px 12px 0 0;
}

.card-earning:hover {
    -webkit-box-shadow: 0 6px 20px rgba(40, 62, 80, 0.12);
    box-shadow: 0 6px 20px rgba(40, 62, 80, 0.12);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.card-align {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    min-height: 44px;
}

.earning-title {
    font-size: clamp(9px, 0.65vw, 10px);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 14px;
    text-align: center;
}

.earning-amount {
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--body-color);
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.earning-divider {
    width: 1px;
    height: 52px;
    background-color: var(--assest-color);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Custom-Card */

.custom-card {
    background-color: var(--white-color);
    border: 1px solid var(--assest-color);
    border-radius: 12px;
    -webkit-box-shadow: 0 1px 4px var(--dark-color);
    box-shadow: 0 1px 4px var(--dark-color);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    overflow: hidden;
}

.custom-card .card-body h3 {
    margin: 0 0 3px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--body-color);
}

.custom-card .card-body span {
    font-size: 11px;
    color: var(--light-gray);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
}

.custom-card .card-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 18px;
    gap: 12px;
}

.card-icon-primary {
    padding: 0;
    border-radius: 10px;
    color: var(--primary-color);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: var(--primary-light);
    width: 52px;
    height: 52px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.card-color-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform-origin: left;
    transform-origin: left;
}

.card-icon-primary i {
    font-size: 17px !important;
}

.card-color-primary:hover {
    border-color: var(--primary-color);
    -webkit-box-shadow: 0 4px 20px var(--primary-alpha-1);
    box-shadow: 0 4px 20px var(--primary-alpha-1);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.card-color-primary:hover:after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

.card-color-primary:hover .card-icon-primary {
    color: var(--white-color);
    background-color: var(--primary-color);
}

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

/* Video Ribbon */
.ribbon {
    width: 125px;
    height: 111px;
    overflow: hidden;
    position: absolute;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 200px;
    padding: 5px 0;
    background: var(--primary-gradient);
    box-shadow: 0 5px 10px var(--rebbin-color);
    color: var(--white-color);
    font:
        700 18px/1 "Lato",
        sans-serif;
    text-shadow: 0 1px 1px var(--rebbin-text);
    text-transform: uppercase;
    text-align: center;
}

.ribbon-top-left {
    top: -4px;
    left: -4px;
}

.ribbon-top-left::before {
    top: 0;
    right: 0;
}

.ribbon-top-left::after {
    bottom: 0;
    left: 0;
}

.ribbon-top-left span {
    right: -25px;
    top: 30px;
    transform: rotate(-45deg);
}

/* checkbox  */
.email-checkbox,
.notification-checkbox {
    height: 20px;
    width: 20px;
    accent-color: var(--primary-color);
}

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

/* ============================================================
   TOGGLE — Enhanced Premium Switch
   ============================================================ */
.switch {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.switch label {
    position: relative;
    width: 38px;
    height: 21px;
    border-radius: 21px;
    background: var(--red-color);
    cursor: pointer;
    margin: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-shadow:
        inset 0 1px 3px var(--dark-color),
        0 0 0 3px var(--light-red);
    box-shadow:
        inset 0 1px 3px var(--black-alpha-1),
        0 0 0 3px var(--light-red);
    -webkit-transition:
        background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transition:
        background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch:hover label {
    background: var(--red-color);
}

.switch label:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--white-color);
    -webkit-box-shadow:
        0 1px 4px var(--dark-color),
        0 0 0 0.5px var(--dark-color);
    box-shadow:
        0 1px 4px var(--black-alpha-1),
        0 0 0 0.5px var(--dark-color);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition:
        -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.12s ease;
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.12s ease;
    will-change: transform;
}

.switch label:active:after {
    width: 18px;
}

.switch input[type="checkbox"]:checked + label {
    background: var(--green-color);
    -webkit-box-shadow:
        inset 0 1px 3px var(--dark-color),
        0 0 0 3px var(--light-green);
    box-shadow:
        inset 0 1px 3px var(--black-alpha-1),
        0 0 0 3px var(--light-green);
}

.switch:hover input[type="checkbox"]:checked + label {
    background: var(--green-color);
}

.switch input[type="checkbox"]:checked + label:after {
    -webkit-transform: translateY(-50%) translateX(17px);
    transform: translateY(-50%) translateX(17px);
}

.status-checkbox {
    display: none;
}

.switch input:not(:checked) ~ .toggle-text::after {
    content: attr(data-off);
    color: var(--red-color);
}

.switch input:checked ~ .toggle-text::after {
    content: attr(data-on);
    color: var(--green-color);
}

.toggle-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
    line-height: 1;
    color: var(--black-color);
}

/* user dropdown in section module  */
#search_user + .select2-container .select2-selection--single {
    background: var(--primary-gradient) !important;
}

#search_user
    + .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    color: var(--white-color) !important;
}

/* ============================================================
   Modal Header — matches custom-border-card header style
   ============================================================ */
.modal-content {
    border: 1px solid var(--assest-color);
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: var(--card-header-bg);
    border-bottom: 1px solid var(--assest-color);
    padding: 14px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--body-color);
    letter-spacing: 0.01em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-title i {
    color: var(--primary-color);
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.modal-header .close {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--light-gray);
    opacity: 0.65;
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition:
        opacity 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
    transition:
        opacity 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--body-color);
    background: var(--assest-color);
}

/* ============================================================
   Invoice Modal UI
   ============================================================ */
.invoice-modal .modal-dialog {
    max-width: 780px;
}

.invoice-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--dark-color);
}

.invoice-modal .modal-body {
    padding: 0;
}

/* Document wrapper */
.inv-doc {
    background: var(--white-color);
    font-family: var(--font);
    color: var(--body-color);
}

/* ---- Header ---- */
.inv-header {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 26px 36px 20px;
}

.inv-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.inv-app-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.2;
}

.inv-receipt-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.72;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.inv-meta {
    text-align: right;
}

.inv-invoice-no {
    font-size: 20px;
    font-weight: 700;
}

.inv-receipt-no {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 6px;
}

.inv-date-text {
    font-size: 12px;
    opacity: 0.72;
    margin-top: 4px;
}

/* Meta strip (period / date / reading time) */
.inv-meta-strip {
    display: flex;
    background: var(--light-color);
    border-bottom: 1px solid var(--assest-color);
}

.inv-meta-item {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-right: 1px dashed var(--assest-color);
}

.inv-meta-item:last-child {
    border-right: none;
}

.inv-meta-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-gray);
    margin-bottom: 4px;
}

.inv-meta-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--body-color);
}

/* Purchase type badges */
.inv-purchase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-purchase-badge.badge-single {
    background: var(--light-color);
    color: var(--black-color);
    border: 1px solid var(--light-color);
}

.inv-purchase-badge.badge-bundle {
    background: var(--green-color);
    color: var(--white-color);
    border: 1px solid var(--green-color);
}

.inv-purchase-badge.badge-hold {
    background: var(--warning-color);
    color: var(--white-color);
    border: 1px solid var(--warning-color);
}

/* ---- Body ---- */
.inv-body {
    padding: 24px 36px;
}

/* Parties */
.inv-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.inv-party-card {
    background: var(--light-color);
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid var(--primary-color);
}

.inv-party-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color);
    margin-bottom: 7px;
}

.inv-party-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--body-color);
}

.inv-party-detail {
    font-size: 12px;
    color: var(--light-gray);
    margin-bottom: 2px;
    line-height: 1.5;
    word-break: break-word;
}

/* Section title */
.inv-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--light-gray);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--assest-color);
}

/* Content */
.inv-content-section {
    margin-bottom: 22px;
}

.inv-content-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px dashed var(--assest-color);
}

.inv-content-item:last-child {
    border-bottom: none;
}

.inv-content-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--body-color);
    margin-bottom: 5px;
}

.inv-content-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--assest-color);
}

.inv-type-novel {
    color: var(--primary-color);
}

.inv-type-audiobook {
    color: var(--red-color);
}

.inv-type-magazine {
    color: var(--warning-color);
}

.inv-type-bundle {
    color: var(--green-color);
}

.inv-content-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    padding-left: 14px;
}

.inv-bundle-items {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inv-bundle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--assest-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--body-color);
}

/* Pricing */
.inv-pricing {
    margin-bottom: 0;
}

.inv-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
    color: var(--body-color);
}

.inv-row-discount {
    color: var(--green-color);
    font-weight: 500;
}

.inv-row-tax {
    color: var(--light-gray);
    font-size: 12px;
}

.inv-pricing-divider {
    border: none;
    border-top: 2px solid var(--assest-color);
    margin: 10px 0 12px;
}

/* Highlighted "your earnings" box */
.inv-earnings-box {
    background: rgba(5, 143, 0, 0.06);
    border: 1px solid rgba(5, 143, 0, 0.22);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.inv-earnings-box .inv-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
    color: var(--green-color);
}

.inv-earnings-box .inv-pricing-row {
    color: var(--body-color);
}

.inv-earnings-box .inv-pricing-row span:last-child {
    color: var(--green-color);
    font-weight: 700;
}

.inv-total-row {
    background: var(--primary-gradient);
    color: var(--white-color);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-total-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.inv-total-amount {
    font-size: 22px;
    font-weight: 700;
}

/* Footer */
.inv-footer {
    border-top: 1px solid var(--assest-color);
    padding: 14px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--assest-color);
}

.inv-payment-info {
    font-size: 12px;
    color: var(--light-gray);
}

.inv-payment-info span {
    font-weight: 600;
    color: var(--body-color);
}

.inv-thank-you {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    font-style: italic;
}

.inv-fine-print {
    text-align: center;
    padding: 10px 24px 16px;
    font-size: 10px;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Action bar */
.inv-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--assest-color);
    background: var(--white-color);
}

/* Responsive */
@media (max-width: 600px) {
    .invoice-modal .modal-dialog {
        margin: 10px;
    }

    .inv-parties {
        grid-template-columns: 1fr;
    }

    .inv-header,
    .inv-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .inv-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 14px 18px;
    }

    .inv-invoice-no {
        font-size: 17px;
    }

    .inv-total-amount {
        font-size: 18px;
    }

    .inv-meta-strip {
        flex-direction: column;
    }

    .inv-meta-item {
        border-right: none;
        border-bottom: 1px dashed var(--assest-color);
    }

    .inv-meta-item:last-child {
        border-bottom: none;
    }
}

@media print {
    .inv-action-bar {
        display: none !important;
    }
}

/* --- Content List Items --- */
.summary-table-card .border-card:hover {
    box-shadow: 0 3px 14px var(--dark-color);
    background: var(--assest-color);
    border: 1px solid var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .custom-card .card-body {
        padding: 16px;
        gap: 14px;
    }

    .custom-card .card-body h3 {
        font-size: 1rem;
    }

    .custom-card .card-body span {
        font-size: 0.65rem;
    }

    .card-icon-primary {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .author-image {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 1600px) {
    .custom-card .card-body h3 {
        font-size: 1.2rem;
    }

    .card-icon-primary {
        width: 62px;
        height: 62px;
        min-width: 62px;
        font-size: 1.25rem;
    }
}

/* =====================================================
   SIDEBAR & HEADER REDESIGN — Global Layout Enhancements
   ===================================================== */

/* Header title area separator (hamburger + divider + title) */
.header .title-control .side-toggle:hover {
    background: var(--assest-color);
}

/* Header dropdown menus - polished */
.header .head-control .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 28px var(--dark-color);
    padding: 6px;
    min-width: 160px;
    margin-top: 6px !important;
}

.header .head-control .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.header .head-control .dropdown-menu .dropdown-item:hover {
    background: var(--assest-color);
}

.header .head-control .dropdown-menu .dropdown-item.active {
    background: var(--primary-gradient) !important;
    color: var(--white-color) !important;
}

.header .head-control .dropdown-menu .dropdown-user-info {
    padding: 6px 10px 8px;
}

.header .head-control .dropdown-menu .dropdown-user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .head-control .dropdown-menu .dropdown-user-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Header global search */
.header .global-search {
    position: relative;
    flex: 0 1 280px;
    width: 100%;
    max-width: 280px;
}

.header .global-search .dropdown-menu {
    display: none;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 28px var(--dark-color);
    padding: 6px;
    margin-top: 6px !important;
    right: 0;
    left: auto;
}

.header .global-search .dropdown-menu.show {
    display: block;
}

.header .global-search .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
}

.header .global-search .dropdown-item i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.header .global-search .dropdown-item:hover {
    background: transparent !important;
}

.header .global-search .dropdown-item.active {
    background: var(--primary-gradient) !important;
    color: var(--white-color);
}

.header .global-search .dropdown-item.active i {
    color: var(--white-color);
}

.header .global-search .search-empty {
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .header .global-search {
        display: none;
    }
}

/* =====================================================
   GLOBAL MODULE UI — Toolbar, Table, Cards, Forms
   ===================================================== */

/* --- Page Header Bar (breadcrumb + CTA row) --- */

.ph {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ph-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 5px;
}

.ph .breadcrumb {
    margin: 0;
    padding: 7px 16px;
    background: var(--white-color);
    border-radius: 10px;
    border: 1px solid var(--assest-color);
    -webkit-box-shadow: 0 1px 6px var(--dark-color);
    box-shadow: 0 1px 6px var(--dark-color);
    font-size: 13px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.ph .breadcrumb-item {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0;
    background: transparent;
}

.ph .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.ph .breadcrumb-item + .breadcrumb-item::before {
    display: none;
}

.ph .breadcrumb-item:not(:last-child)::after {
    content: "\203A";
    margin-left: 6px;
    color: var(--light-gray);
    font-size: 18px;
    margin-top: -2px;
}

.ph .breadcrumb-item a {
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: var(--light-gray) !important;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.ph .breadcrumb-item a:hover {
    color: var(--body-color) !important;
}

.ph .breadcrumb-item.active {
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: var(--body-color);
    font-size: 12.5px;
    font-weight: 600;
}

.action-bar {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    -webkit-box-shadow: 0 1px 4px var(--dark-color);
    box-shadow: 0 1px 4px var(--dark-color);
    overflow: hidden;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.table-card .action-bar {
    background: transparent;
    border: none;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 0;
    padding: 0 0 12px 0;
}

.action-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.action-row-bottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.export-note {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--light-gray);
}

.export-note > i {
    font-size: 15px;
    color: var(--primary-color);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.export-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
}

.exp-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    -webkit-transition: all 0.15s;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
    background: var(--white-color);
    color: var(--light-gray);
    border: 1px solid var(--border-color);
}

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

.exp-btn:hover {
    background: var(--light-color);
    border-color: var(--border-color);
    color: var(--black-color);
}

.exp-btn > i {
    font-size: 14px;
}

.search-filter-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.searchbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 0px 14px;
    height: 44px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 200px;
    -webkit-transition:
        border-color 0.18s,
        background 0.18s,
        -webkit-box-shadow 0.18s;
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
}
.searchbox.header-searchbox {
    height: 40px;
}

.searchbox:focus-within {
    border-color: var(--primary-color);
    background: var(--white-color);
    -webkit-box-shadow: 0 0 0 3px var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.searchbox-icon {
    color: var(--text-muted);
    font-size: 15px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.searchbox .form-control {
    border: none;
    background: transparent;
    padding: 7px 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--black-color);
    height: auto !important;
    line-height: 1.5;
    border-radius: 0;
}

/* Bulk Actions */
.bulk-checkbox-col {
    width: 42px;
}

.row-checkbox,
#select_all_categories {
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.bulk-selected-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.bulk-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--light-gray);
    cursor: pointer;
    font-size: 11px;
    transition:
        background 0.15s,
        color 0.15s;
}

.bulk-clear-btn:hover {
    background: var(--light-color);
    color: var(--black-color);
}

/* Bulk status select (see #search_user rule above for the same id + .select2-container pattern) */
#bulkStatusSelect + .select2-container {
    width: 150px !important;
}

.switch input:disabled + label {
    opacity: 0.45;
    cursor: not-allowed;
}

.edit-delete-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.filter-group {
    display: flex;
    width: 100%;
}

.filter-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    gap: 6px;
    background: transparent;
    border-radius: 10px;
    min-width: 180px;
    height: 44px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    -webkit-transition:
        border-color 0.15s,
        -webkit-box-shadow 0.15s;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.filter-item:focus-within,
.filter-item.filter-item-focus {
    border-color: var(--primary-color);
    -webkit-box-shadow: 0 0 0 3px var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.sort-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 8px 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
    height: 100%;
    letter-spacing: 0.04em;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.filter-item .form-control {
    border: none;
    background: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--black-color);
    line-height: 1.5;
    cursor: pointer;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* --- Select2 inside filter-item --- */
.filter-item .select2-container {
    width: 100% !important;
    height: 100%;
}

.filter-item .select2-container .select2-selection--single {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    padding: 5px 8px !important;
    height: 100% !important;
    background: transparent;
    border: none;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

.filter-item
    .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1 !important;
}

.filter-item .select2-container .select2-selection--multiple {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.filter-item
    .select2-container--default.select2-container--focus
    .select2-selection--single,
.filter-item
    .select2-container--default.select2-container--focus
    .select2-selection--multiple,
.filter-item
    .select2-container--default.select2-container--open
    .select2-selection--single,
.filter-item
    .select2-container--default.select2-container--open
    .select2-selection--multiple {
    border: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ─────────────────────────────────────────────
   TABLE CARD  (Postiva-inspired layout)
───────────────────────────────────────────── */
.custom-border-card:has(.table-card) {
    padding: 0;
    overflow: hidden;
}

.custom-border-card:has(.table-card) .card-header {
    margin: 0;
    border-radius: 16px 16px 0 0;
}

.custom-border-card .table-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.custom-border-card .table-card .table-responsive {
    overflow: auto;
}

.custom-border-card .table-card tbody tr:last-child td {
    border-bottom: none !important;
}

.custom-border-card .table-card .table td {
    padding: 10px 18px;
}

.custom-border-card .table-card .table thead th {
    padding: 10px 18px;
}

.table-card {
    background: var(--white-color);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 1px 3px var(--shadow-xxs),
        0 4px 16px var(--shadow-xs);
    overflow: hidden;
    padding: 16px 16px;
}

.table-card .table-responsive {
    border-radius: 0;
}

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

/* ── Thead ── */
.table-card .table thead th {
    background: linear-gradient(180deg, var(--table-head-bg) 0%, #f1f4f7 100%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    color: var(--text-muted);
    padding: 13px 18px;
    border-bottom: 2px solid var(--border-color) !important;
    border-top: none !important;
    white-space: nowrap;
    vertical-align: middle;
}

.table-card .table thead tr {
    background: transparent;
}

/* ── Tbody rows ── */
.table-card .table td {
    padding: 13px 18px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    font-size: 13.5px;
    color: var(--body-color);
    transition: background 0.12s ease;
}

.table-card tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── Row hover — left accent bar ── */
.table-card tbody tr {
    position: relative;
    transition: background 0.14s ease;
}

.table-card tbody tr:hover td {
    background: var(--primary-light) !important;
}

.table-card tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--primary-color);
}

/* Keep edit/delete buttons crisp on row hover */
.table-card tbody tr:hover a.edit-delete-btn {
    background: rgba(40, 62, 80, 0.13);
    border-color: rgba(40, 62, 80, 0.22);
}

.table-card tbody tr:hover form .edit-delete-btn {
    background: rgba(255, 0, 13, 0.11);
    border-color: rgba(255, 0, 13, 0.2);
}

/* ── Striping — very subtle, Postiva-style ── */
.table-card .table-striped tbody tr:nth-of-type(odd) td {
    background-color: transparent;
}

.table-card .table-striped tbody tr:nth-of-type(even) td {
    background-color: var(--table-stripe-bg);
}

.table-card .table-striped tbody tr:hover td {
    background-color: var(--primary-light) !important;
}

/* ── Action column ── */
.table-card .table td:last-child,
.table-card .table th:last-child {
    text-align: center;
    white-space: nowrap;
}

/* ── DataTables wrapper ── */
.table-card .dataTables_wrapper {
    padding: 0;
}

/* ── DataTables footer bar (info + length + pagination) ── */
.table-card .dataTables_wrapper > .row {
    margin: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0;
}

.table-card .dataTables_info {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0;
    line-height: 1.5;
}

.table-card .dataTables_length label {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.table-card .dataTables_length select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--white-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 24px 4px 8px;
    font-size: 12px;
    color: var(--black-color);
    height: auto;
    margin: 0;
    cursor: pointer;
    min-width: 56px;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.table-card .dataTables_length select.form-control:focus {
    border-color: var(--primary-color);
    -webkit-box-shadow: 0 0 0 2px var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-light);
    outline: none;
}

/* ── Pagination ── */
.table-card .dataTables_paginate {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.table-card .pagination,
.pagination {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 5px;
    background: transparent;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.table-card .pagination .page-item,
.pagination .page-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-card .pagination .page-item .page-link,
.pagination .page-item .page-link {
    border: 1px solid var(--border-color);
    border-radius: 50% !important;
    font-size: 12px;
    color: var(--body-color);
    background: var(--white-color);
    font-weight: 500;
    -webkit-transition: all 0.15s;
    transition: all 0.15s;
    height: 30px;
    width: 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;
    box-shadow: none;
}

.table-card .pagination .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 2px 8px var(--lp-shadow);
}

.table-card .pagination .page-item .page-link:hover,
.pagination .page-item .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.table-card .pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:hover {
    color: var(--white-color);
}

.table-card .pagination .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Table image thumbnails ── */
.table-card .table img.img-thumbnail,
.table-card .table img.size-55,
.table-card .table img.size-40 {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 2px;
    background: var(--white-color);
    object-fit: cover;
}

/* --- User Identity Cell (name + handle) --- */
.user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.user-cell .user-fullname {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--body-color);
    line-height: 1.3;
}

.user-cell .user-handle {
    font-size: 12px;
    color: var(--light-gray);
    line-height: 1.3;
}

/* --- Contact Cell (phone + email) --- */
.contact-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.contact-cell .contact-email {
    font-size: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.contact-cell .contact-phone {
    font-size: 13.5px;
    color: var(--body-color);
    font-weight: 500;
    line-height: 1.3;
}

/* user login type badge  */
.type-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    background: var(--white-color);
    color: var(--light-gray);
    white-space: nowrap;
    line-height: 1.5;
}

.type-badge-normal {
    color: var(--text-muted);
    border-color: var(--border-color);
}

.type-badge-otp {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.type-badge-google {
    color: var(--green-color);
    border-color: var(--green-color);
}

.type-badge-apple {
    color: var(--body-color);
    border-color: var(--body-color);
}

/* --- Form Footer Actions --- */
.form-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--light-color);
    margin-top: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ph {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .action-row-top,
    .search-filter-bar {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 12px 16px;
    }

    .export-group {
        width: 100%;
    }

    .searchbox {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .dataTables_wrapper > .row {
        padding: 12px 16px;
    }
}

@media (min-width: 991px) and (max-width: 1199px) {
    .filter-group {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-item {
        width: calc(50% - 4px) !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .filter-item {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }

    .form-control {
        width: 100%;
    }

    .exp-btn span {
        display: none;
    }

    .pagination {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .dataTables_paginate {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════
   Series Module — Content Picker
   Scoped to .series-content-picker
   ═══════════════════════════════════════════════ */

/* Section divider label */
.scp-section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.scp-section-divider::before,
.scp-section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ── Tabs ── */
.scp-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 0;
    margin-bottom: 0;
}

.scp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition:
        color 0.18s,
        border-color 0.18s;
    white-space: nowrap;
}
.scp-tab:active {
    outline: none;
}

.scp-tab i {
    font-size: 12px;
}

.scp-tab:hover:not(.active) {
    color: var(--body-color);
    background: var(--light-color);
}

.scp-tab.active {
    outline: none;
    border: none;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.scp-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary-color);
    transition:
        background 0.18s,
        color 0.18s;
}

.scp-tab.active .scp-tab-count {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ── Panel container ── */
.scp-panels-wrap {
    padding: 14px 0 4px;
}

.scp-panel {
    display: none;
}

.scp-panel.active {
    display: block;
}

/* ── Per-tab search bar ── */
.scp-search-wrap {
    position: relative;
    margin-bottom: 14px;
}

.scp-search-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
}

.scp-search-wrap input {
    width: 100%;
    max-width: 320px;
    padding: 7px 12px 7px 32px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    font-size: 13px;
    background: var(--light-color);
    color: var(--body-color);
    outline: none;
    transition:
        border-color 0.18s,
        background 0.18s;
    font-family: var(--font);
}

.scp-search-wrap input:focus {
    border-color: var(--primary-color);
    background: var(--white-color);
}

/* ── Content grid ── */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding: 2px 2px 4px;
}

.sc-grid::-webkit-scrollbar {
    width: 5px;
}

.sc-grid::-webkit-scrollbar-track {
    background: transparent;
}

.sc-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* ── Content card ── */
.content-card.sc-card {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--white-color);
    position: relative;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.content-card.sc-card:hover:not(.content-item-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px var(--primary-light);
    border-color: var(--lp-shadow);
}

.content-card.sc-card.selected-item {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.content-card.sc-card.content-item-disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: not-allowed;
}

/* Card thumbnail — portrait ratio */
.sc-card__thumb {
    position: relative;
    width: 100%;
    padding-bottom: 140%;
    overflow: hidden;
    background: var(--light-color);
}

.sc-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease;
}

.content-card.sc-card:hover:not(.content-item-disabled) .sc-card__thumb img {
    transform: scale(1.03);
}

/* Checkmark overlay (visible when selected) */
.sc-card__check-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.sc-card__check-overlay i {
    color: var(--white-color);
    font-size: 24px;
    filter: drop-shadow(0 1px 3px var(--black-50-color));
}

.content-card.sc-card.selected-item .sc-card__check-overlay {
    opacity: 1;
}

/* Already-assigned badge on thumbnail */
.sc-card__assigned-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--assigned-badge-bg);
    color: var(--white-color);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

/* Card body / title */
.sc-card__body {
    padding: 6px 8px 8px;
}

.sc-card__title {
    font-size: 11px;
    line-height: 1.35;
    margin: 0;
    color: var(--body-color);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state inside grid */
.sc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    color: var(--text-muted);
    grid-column: 1 / -1;
    text-align: center;
}

.sc-empty i {
    font-size: 26px;
    margin-bottom: 8px;
    opacity: 0.45;
}

.sc-empty p {
    margin: 0;
    font-size: 13px;
}

/* ── Selected Queue ── */
.scp-queue {
    margin-top: 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white-color);
}

.scp-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.scp-queue-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--body-color);
    margin: 0;
    line-height: 1.3;
}

.scp-queue-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.scp-queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: var(--primary-color);
    color: var(--white-color);
}

.scp-list-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.14s;
}

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

.scp-list-item:hover {
    background: var(--light-color);
}

.scp-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.scp-drag-handle:hover {
    opacity: 1;
}

.scp-drag-handle:active {
    cursor: grabbing;
}

.scp-list-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background: var(--light-color);
}

.scp-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

.scp-list-type-badge {
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    align-self: flex-start;
    line-height: 1.5;
}

.scp-order-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 5px;
    min-width: 30px;
    text-align: center;
}

.scp-remove-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
    padding: 0;
}

.scp-remove-btn:hover {
    background: var(--assest-color);
    border-color: var(--red-color);
    color: var(--red-color);
}

/* START: IMAGE UPLOAD COMPONENT */
.image-upload-wrapper {
    max-width: 220px;
}

.image-upload-wrapper.small {
    max-width: 100px;
    display: flex;
    align-items: center;
}

.image-upload-wrapper input[type="file"] {
    display: none;
}

.drop-area {
    position: relative;
    width: 85%;
    height: 170px;
    border: 2px dashed var(--assest-color);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.25s;
}

.image-upload-wrapper.small .drop-area {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.image-upload-wrapper.landscape {
    max-width: 320px;
}

.image-upload-wrapper.landscape .drop-area {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.drop-area img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0;
    transition: 0.3s;
}

.drop-prompt,
.drop-change-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.drop-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 20px;
    margin-bottom: 4px;
    transition: 0.25s;
}

.image-upload-wrapper.small .drop-icon {
    width: 30px;
    height: 30px;
}

.drop-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0px !important;
}

.drop-change-hint {
    bottom: 0;
    top: auto;
    height: auto;
    padding: 8px;
    flex-direction: row;
    gap: 6px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: 0.25s;
}

.image-upload-wrapper.small .drop-change-hint {
    font-size: 9px;
    padding: 4px;
}

.drop-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.drop-area:hover .drop-icon {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.drop-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.image-upload-wrapper.has-preview img {
    opacity: 1;
}

.image-upload-wrapper.has-preview .drop-prompt {
    opacity: 0;
    pointer-events: none;
}

.image-upload-wrapper.has-preview .drop-area:hover .drop-change-hint {
    opacity: 1;
}

/* START: FILE UPLOAD COMPONENT (Excel / Zip Import) */
.file-upload-wrapper {
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    padding: 18px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    background: var(--light-color);
    transition: 0.25s;
}

.file-drop-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-drop-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.file-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.file-drop-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 20px;
    margin-bottom: 8px;
    transition: 0.25s;
}

.file-drop-area:hover .file-drop-icon {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.file-drop-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--body-color);
    margin-bottom: 2px !important;
}

.file-drop-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

.file-drop-selected {
    display: none;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.file-upload-wrapper.has-file .file-drop-content {
    display: none;
}

.file-upload-wrapper.has-file .file-drop-selected {
    display: flex;
}

.file-upload-wrapper.has-file .file-drop-area {
    cursor: default;
    background: var(--white-color);
    border-style: solid;
    border-color: var(--border-color);
}

.file-selected-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 18px;
}

.file-selected-info {
    flex-grow: 1;
    min-width: 0;
    text-align: left;
}

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

.file-selected-size {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.file-remove-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--light-red);
    color: var(--red-color);
    cursor: pointer;
    transition: 0.2s;
}

.file-remove-btn:hover {
    background: var(--red-color);
    color: var(--white-color);
}
/* END: FILE UPLOAD COMPONENT (Excel / Zip Import) */

/* =========================
   Series Premium SaaS View
========================= */

/* =========================
   Compact Hero (250px)
========================= */
.sv-shell {
    display: flex;
    min-height: 250px;
    overflow: hidden;
}

.sv-shell__media {
    width: 210px;
    min-width: 210px;
    position: relative;
}

.sv-shell__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sv-shell__content {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.sv-shell__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sv-shell__badge-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sv-shell__title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* Author */
.sv-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sv-author__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 2px;
}

.sv-author__username {
    font-size: 12px;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    padding: 4px 10px;
    background-color: var(--primary-light);
    border-radius: 50px;
    text-align: center;
}

/* Description */
.sv-shell__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--light-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 991px) {
    .sv-shell {
        flex-direction: column;
        height: auto;
    }

    .sv-shell__media {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }
}

/* draggable items  */

/* --------------------------------------------------------------------------
   Sortable list items — drag-and-drop reorder rows
   -------------------------------------------------------------------------- */

/* Row item replacing inline style="background-color…" */
.sort-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: -webkit-grab;
    cursor: grab;
    -webkit-transition:
        -webkit-box-shadow 0.15s ease,
        background 0.15s ease;
    transition:
        box-shadow 0.15s ease,
        background 0.15s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sort-item:hover {
    background: var(--white-color);
    -webkit-box-shadow: 0 4px 12px var(--dark-color);
    box-shadow: 0 4px 12px var(--dark-color);
}

.sort-item:active {
    cursor: -webkit-grabbing;
    cursor: grabbing;
    -webkit-box-shadow: 0 4px 12px var(--dark-color);
    box-shadow: 0 4px 12px var(--dark-color);
}

/* Grip icon — visual drag affordance */
.sort-handle {
    color: var(--text-muted);
    font-size: 13px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: color 0.15s ease;
    transition: color 0.15s ease;
}

.sort-item:hover .sort-handle {
    color: var(--primary-color);
}

/* new content upload design  */

.repeater-item {
    background-color: var(--white-color);
    border: 1px solid var(--assest-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--dark-color);
    transition: box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.repeater-item:hover {
    box-shadow: 0 4px 16px var(--dark-color);
}

.repeater-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: var(--assest-color);
    border-bottom: 1px solid var(--assest-color);
}

.repeater-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.repeater-item-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--body-color);
    flex: 1;
}

.repeater-item-body {
    padding: 16px;
}

.repeater-item-body .form-group {
    margin-bottom: 0;
}

.repeater-add-row {
    display: flex;
    align-items: center;
    padding-top: 6px;
}

.btn-repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        transform 0.1s ease;
    box-shadow: 0 3px 10px var(--primary-light);
    font-family: var(--font);
}

.btn-repeater-add:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--white-color);
}

.btn-repeater-add:active {
    transform: translateY(0);
    opacity: 1;
}

.btn-repeater-add:focus,
.btn-repeater-remove:focus {
    outline: none;
    box-shadow: none;
}

.btn-repeater-add i {
    font-size: 11px;
}

.btn-repeater-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--red-color);
    background: transparent;
    color: var(--red-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0;
}

.btn-repeater-remove:hover {
    background: var(--red-color);
    color: var(--white-color);
}

@media (max-width: 767px) {
    .repeater-item-body .form-row > [class*="col-"] {
        margin-bottom: 12px;
    }

    .repeater-item-body .form-row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* ---- Settings Shell (left-right layout) ---- */
.settings-shell {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 16px;
    border: 1px solid var(--assest-color);
    -webkit-box-shadow: 0 2px 20px var(--dark-color);
    box-shadow: 0 2px 20px var(--dark-color);
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 560px;
}

.settings-nav {
    width: 220px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: var(--white-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 16px 0 0 16px;
    border-right: 1px solid var(--assest-color);
}

.settings-nav-pills {
    padding: 15px;
    gap: 2px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0;
    list-style: none;
}

.settings-nav-pills .nav-item {
    width: 100%;
    margin-bottom: 5px;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
}

.settings-nav-pills .nav-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    color: var(--light-gray);
    font-size: 12px;
    font-weight: 500;
    -webkit-transition:
        background 0.18s ease,
        color 0.18s ease;
    transition:
        background 0.18s ease,
        color 0.18s ease;
    white-space: nowrap;
    width: 100%;
    background: transparent;
    text-decoration: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.settings-nav-pills .nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.settings-nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    font-weight: 500;
    -webkit-box-shadow: 0 2px 10px var(--primary-alpha-1);
    box-shadow: 0 2px 10px var(--primary-alpha-1);
}

.settings-nav-link-icon {
    width: 25px;
    height: 25px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--light-color);
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: background 0.18s ease;
    transition: background 0.18s ease;
}

.settings-nav-link-icon i {
    font-size: 12px;
    color: var(--light-gray);
    -webkit-transition: color 0.18s ease;
    transition: color 0.18s ease;
}

.settings-nav-pills .nav-link:hover .settings-nav-link-icon {
    background: var(--primary-light);
}

.settings-nav-pills .nav-link:hover .settings-nav-link-icon i {
    color: var(--primary-color);
}

.settings-nav-pills .nav-link.active .settings-nav-link-icon {
    background: var(--white-alpha-1);
}

.settings-nav-pills .nav-link.active .settings-nav-link-icon i {
    color: var(--white-color);
}

.settings-nav-link-text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-content-area {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    background: var(--white-color);
    padding: 15px 28px 25px;
    border-radius: 0 16px 16px 0;
}

.settings-pane-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--assest-color);
}

.settings-pane-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 11px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.settings-pane-icon i {
    font-size: 17px;
    color: var(--primary-color);
}

.settings-pane-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--body-color);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.credential-card {
    border: 1px solid var(--assest-color);
    border-radius: 12px;
    background: var(--primary-light);
    -webkit-transition: -webkit-box-shadow 0.2s;
    transition: -webkit-box-shadow 0.2s;
    -o-transition: box-shadow 0.2s;
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.credential-card:hover {
    -webkit-box-shadow: 0 4px 16px var(--dark-color);
    box-shadow: 0 4px 16px var(--dark-color);
}

.credential-card-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.credential-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: var(--white-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;
    font-size: 15px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.credential-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.credential-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--light-gray);
    margin-bottom: 4px;
}

.credential-value {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    padding: 0;
    font-family: "Courier New", monospace;
}

.credential-copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-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;
    font-size: 14px;
    cursor: pointer;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.credential-copy-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.credential-copy-btn:focus {
    outline: none;
}

@media (max-width: 991px) {
    .settings-shell {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        min-height: auto;
    }

    .settings-nav {
        width: 100%;
        border-radius: 16px 16px 0 0;
        border-right: none;
        border-bottom: 1px solid var(--assest-color);
    }

    .settings-nav-pills {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        overflow-x: auto;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        padding: 8px 12px 12px;
        gap: 4px;
    }

    .settings-nav-pills::-webkit-scrollbar {
        display: none;
    }

    .settings-nav-pills .nav-item {
        width: auto;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .settings-nav-pills .nav-link {
        white-space: nowrap;
        padding: 8px 14px;
    }

    .settings-content-area {
        border-radius: 0 0 16px 16px;
        padding: 20px 16px 24px;
    }
}

@media (max-width: 767px) {
    .settings-pane-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .settings-pane-icon {
        width: 36px;
        height: 36px;
    }

    .settings-pane-icon i {
        font-size: 14px;
    }

    .settings-pane-title {
        font-size: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════
   System Settings — Maintenance Operations
   Scoped to .sys-banner and .sys-ops-card
   ═══════════════════════════════════════════════════════════ */

/* ── Banner ── */
.sys-banner {
    position: relative;
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 22px;
    overflow: hidden;
}

.sys-banner-decor {
    position: absolute;
    border-radius: 50%;
    background: var(--white-alpha-1);
    pointer-events: none;
}

.sys-banner-decor--1 {
    width: 130px;
    height: 130px;
    top: -40px;
    right: -30px;
}

.sys-banner-decor--2 {
    width: 90px;
    height: 90px;
    bottom: -35px;
    right: 120px;
}

.sys-banner-inner {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
}

.sys-banner-icon-wrap {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--white-alpha-1);
    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;
    color: var(--white-color);
    font-size: 20px;
}

.sys-banner-body {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.sys-banner-title {
    color: var(--white-color);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.3;
}

.sys-banner-subtitle {
    color: var(--white-alpha-3);
    font-size: 12.5px;
    margin: 0;
    font-weight: 400;
}

.sys-banner-status-wrap {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--white-alpha-1);
    border-radius: 20px;
    padding: 9px 14px;
}

.sys-status-dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-color);
    position: relative;
}

.sys-status-dot::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--green-color);
    opacity: 0.35;
    -webkit-animation: sys-dot-pulse 2.2s ease-in-out infinite;
    animation: sys-dot-pulse 2.2s ease-in-out infinite;
}

@-webkit-keyframes sys-dot-pulse {
    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0.35;
    }

    50% {
        -webkit-transform: scale(1.8);
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes sys-dot-pulse {
    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0.35;
    }

    50% {
        -webkit-transform: scale(1.8);
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ── Operations card — zero-pad the card so rows bleed edge-to-edge ── */
.custom-border-card.sys-ops-card {
    padding: 0;
    overflow: hidden;
}

.custom-border-card.sys-ops-card .card-header {
    margin: 0;
    border-radius: 16px 16px 0 0;
    padding: 14px 26px;
}

/* ── Operation rows list ── */
.sys-op-list {
    /* intentionally no padding — rows self-manage */
}

.sys-op-row {
    border-bottom: 1px solid var(--assest-color);
}

.sys-op-row:last-child {
    border-bottom: none;
}

/* ── Toggle trigger row ── */
.sys-op-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    padding: 18px 26px;
    cursor: pointer;
    text-decoration: none;
    color: var(--body-color);
    -webkit-transition: background 0.18s;
    transition: background 0.18s;
}

.sys-op-toggle:hover {
    background: var(--light-color);
    color: var(--body-color);
}

.sys-op-toggle[aria-expanded="true"] {
    background: var(--primary-light);
}

.sys-op-toggle[aria-expanded="true"] .sys-op-chevron i {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* ── Colored icon box ── */
.sys-op-icon-box {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    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;
    font-size: 16px;
}

.sys-op-icon-box--primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sys-op-icon-box--success {
    background: var(--light-green);
    color: var(--green-color);
}

.sys-op-icon-box--danger {
    background: var(--light-red);
    color: var(--red-color);
}

/* ── Content block (title + description) ── */
.sys-op-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 3px;
}

.sys-op-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--body-color);
    line-height: 1.3;
}

.sys-op-row--danger .sys-op-title {
    color: var(--red-color);
}

.sys-op-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ── Chevron indicator ── */
.sys-op-chevron {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: var(--light-gray);
    font-size: 11px;
}

.sys-op-chevron i {
    display: block;
    -webkit-transition: -webkit-transform 0.25s ease;
    transition:
        transform 0.25s ease,
        -webkit-transform 0.25s ease;
}

/* ── Collapsed confirmation panel ── */
.sys-op-panel {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 16px 26px 20px;
    border-top: 1px solid var(--assest-color);
    background: var(--light-color);
}

.sys-op-panel--danger {
    background: var(--light-red);
    border-top-color: var(--light-red-border);
}

.sys-op-panel-msg {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.sys-op-panel-msg i {
    font-size: 15px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: 1px;
}

.sys-op-panel-msg-icon--primary {
    color: var(--primary-color);
}

.sys-op-panel-msg-icon--success {
    color: var(--green-color);
}

.sys-op-panel-msg-icon--danger {
    color: var(--red-color);
}

.sys-op-panel-msg p {
    margin: 0;
    font-size: 13px;
    color: var(--body-color);
    line-height: 1.55;
}

.sys-op-panel-action {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .sys-banner {
        padding: 18px 20px;
    }

    .sys-banner-status-wrap {
        display: none;
    }

    .sys-op-toggle {
        padding: 14px 18px;
        gap: 12px;
    }

    .sys-op-icon-box {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .sys-op-panel {
        padding: 14px 18px 18px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 12px;
    }

    .sys-op-panel-action,
    .sys-op-panel-action .btn {
        width: 100%;
    }

    .custom-border-card.sys-ops-card .card-header {
        padding: 13px 18px;
    }
}

@media (max-width: 576px) {
    .sys-banner-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .sys-banner-title {
        font-size: 15px;
    }

    .sys-banner-subtitle {
        display: none;
    }
}

/* =========================================
   Bundle Content View — Info Strip
========================================= */
.bundle-info-strip {
    border-top: 1px solid var(--light-color);
    gap: 28px;
}

.bundle-info-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light-gray);
    margin-bottom: 3px;
}

.bundle-info-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.bundle-info-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--black-color);
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    min-width: 100px;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    outline: none !important;
    box-shadow: none !important;
}

/* =========================================
   Revenue/Reports Dashboard Widgets
   (shared: admin dashboard, author dashboard, sales/finance/customer reports)
========================================= */

/* ── Lifetime earnings hero band ── */
.hero {
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
    border-radius: 16px;
    background: var(--primary-gradient);
    -webkit-box-shadow: 0 6px 24px var(--lp-shadow-soft);
    box-shadow: 0 6px 24px var(--lp-shadow-soft);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--white-alpha-1);
    pointer-events: none;
}

.hero::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -60px;
}

.hero::after {
    width: 140px;
    height: 140px;
    bottom: -90px;
    left: 38%;
    opacity: 0.6;
}

.hero-main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white-alpha-2);
    margin: 0 0 10px;
}

.hero-value {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--white-color);
    margin: 0 0 6px;
}

.hero-caption {
    font-size: 13px;
    font-weight: 500;
    color: var(--white-alpha-3);
    margin: 0;
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.hero-stat {
    padding: 4px 28px;
    border-left: 1px solid var(--white-alpha-1);
}

.hero-stat:last-child {
    padding-right: 4px;
}

.hero-stat-value {
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--white-color);
    margin: 0 0 4px;
    white-space: nowrap;
}

.hero-stat-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--white-alpha-2);
    margin: 0;
}

/* ── Chart range segmented control (in card header) ── */
.trend-card .card-header {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    row-gap: 10px;
}

.seg {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2px;
    padding: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--white-color);
    border: 1px solid var(--assest-color);
}

.seg-btn {
    border: 0;
    background: transparent;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100%;
    padding: 5px 14px;
    border-radius: 7px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    outline: none;
}

.seg-btn:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.seg-btn.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    -webkit-box-shadow: 0 3px 10px var(--lp-shadow-soft);
    box-shadow: 0 3px 10px var(--lp-shadow-soft);
}

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

/* ── Chart containers + ApexCharts theme polish ── */
.chart-wrap {
    padding-top: 6px;
}

.chart-wrap .apexcharts-tooltip {
    border-radius: 10px !important;
    border: 1px solid var(--assest-color) !important;
    -webkit-box-shadow: 0 8px 24px var(--shadow-navy) !important;
    box-shadow: 0 8px 24px var(--shadow-navy) !important;
    font-family: var(--font) !important;
}

.chart-wrap .apexcharts-tooltip-title {
    background: var(--light-color) !important;
    border-bottom: 1px solid var(--assest-color) !important;
    font-weight: 600 !important;
    font-family: var(--font) !important;
}

.chart-wrap .apexcharts-legend-text {
    color: var(--text-muted) !important;
}

.chart-wrap .apexcharts-gridline {
    stroke: var(--chart-grid-line);
}

/* ── Top Buyers leaderboard list ── */
.buyer-list {
    padding: 4px 0 0;
}

.buyer-row {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    border-radius: 12px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.buyer-row:hover {
    background: var(--light-color);
}

.buyer-row + .buyer-row {
    margin-top: 4px;
}

/* Radial "share of total" ring around the avatar — conic-gradient driven by --pct */
.buyer-ring {
    position: relative;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        var(--primary-color) calc(var(--pct) * 1%),
        var(--assest-color) 0
    );
}

.buyer-ring img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--white-color);
    -o-object-fit: cover;
    object-fit: cover;
    background: var(--white-color);
}

.buyer-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--text-muted);
    border: 2px solid var(--white-color);
    -webkit-box-shadow: 0 1px 3px var(--dark-color);
    box-shadow: 0 1px 3px var(--dark-color);
    font-size: 10px;
    font-weight: 700;
    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;
}

.buyer-row:first-child .buyer-badge {
    background: var(--primary-color);
    color: var(--white-color);
}

.buyer-info {
    min-width: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.buyer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--body-color);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buyer-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buyer-stat {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    text-align: right;
}

.buyer-stat-amount {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--body-color);
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}

.buyer-stat-pct {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* ── Table accents (rank badge, cell typography) ── */
.rank {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 700;
}

.cell-title {
    display: block;
    font-weight: 600;
    color: var(--body-color);
    line-height: 1.35;
}

.cell-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-color);
    white-space: nowrap;
}

.amount {
    font-weight: 600;
    white-space: nowrap;
}
/* ── Responsive ── */
@media (max-width: 1199px) {
    .hero-stat {
        padding: 4px 20px;
    }
}

@media (max-width: 991px) {
    .hero {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 22px;
    }

    .hero-stats {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        border-top: 1px solid var(--white-alpha-1);
        padding-top: 18px;
    }

    .hero-stat {
        padding: 0 28px 0 0;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 22px 22px;
    }

    .seg {
        width: 100%;
        overflow-x: auto;
    }

    .seg::-webkit-scrollbar {
        display: none;
    }

    .seg-btn {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .hero-stat {
        padding: 0;
    }
}

/* ── HSC KPI Stat Cards (from dtinvoice design) ── */
.hsc {
    background: var(--white-color);
    border: 1px solid var(--assest-color);
    border-radius: 16px;
    padding: 20px 20px 16px;
    -webkit-box-shadow:
        0 1px 2px var(--dark-color),
        0 4px 12px var(--dark-color);
    box-shadow:
        0 1px 2px var(--dark-color),
        0 4px 12px var(--dark-color);
    -webkit-transition:
        -webkit-transform 0.26s ease,
        -webkit-box-shadow 0.26s ease;
    transition:
        transform 0.26s ease,
        box-shadow 0.26s ease;
    position: relative;
    overflow: hidden;
}
.hsc:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow:
        0 2px 4px var(--dark-color),
        0 8px 20px var(--dark-color);
    box-shadow:
        0 2px 4px var(--dark-color),
        0 8px 20px var(--dark-color);
}
.hsc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}
.hsc-purple::before {
    background: var(--primary-color);
}
.hsc-green::before {
    background: var(--green-color);
}
.hsc-blue::before {
    background: var(--color-blue);
}
.hsc-teal::before {
    background: var(--color-teal);
}
.hsc-orange::before {
    background: var(--warning-color);
}
.hsc-red::before {
    background: var(--red-color);
}
.hsc-indigo::before {
    background: var(--color-indigo);
}

.hsc-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.hsc-left {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}
.hsc-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--light-gray);
    margin-bottom: 8px;
}
.hsc-value {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--body-color);
    line-height: 1;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hsc-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.hsc-trend {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}
.hsc-trend-up {
    background: var(--light-green);
    color: var(--green-color);
}
.hsc-trend-down {
    background: var(--light-red);
    color: var(--red-color);
}
.hsc-trend-flat {
    background: var(--dark-color);
    color: var(--light-gray);
}
.hsc-trend-text {
    font-size: 10.5px;
    color: var(--light-gray);
}
.hsc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    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;
    font-size: 17px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: -webkit-transform 0.22s ease;
    transition: transform 0.22s ease;
}
.hsc:hover .hsc-icon {
    -webkit-transform: scale(1.1) rotate(-6deg);
    transform: scale(1.1) rotate(-6deg);
}
.hsc-purple .hsc-icon {
    background: var(--primary-alpha-3);
    color: var(--primary-color);
}
.hsc-green .hsc-icon {
    background: var(--light-green);
    color: var(--green-color);
}
.hsc-blue .hsc-icon {
    background: var(--color-blue-alpha);
    color: var(--color-blue);
}
.hsc-teal .hsc-icon {
    background: var(--color-teal-alpha);
    color: var(--color-teal);
}
.hsc-orange .hsc-icon {
    background: var(--light-warning);
    color: var(--warning-color);
}
.hsc-red .hsc-icon {
    background: var(--light-red);
    color: var(--red-color);
}
.hsc-indigo .hsc-icon {
    background: var(--primary-light);
    color: var(--color-indigo);
}

.note-toolbar {
    border-radius: 0px !important;
    justify-content: start !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Payout - "How is this calculated?" info modal */
.calc-info-intro {
    color: var(--body-color);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.calc-info-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}
.calc-info-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.calc-info-step-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 14px;
}
.calc-info-step-body {
    flex: 1;
    min-width: 0;
}
.calc-info-step-body h6 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--body-color);
    margin-bottom: 4px;
}
.calc-info-step-body p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}
.calc-info-example {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--body-color);
    margin-bottom: 12px;
}
.calc-info-example i {
    color: var(--primary-color);
    margin-top: 2px;
}
.calc-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--light-warning);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--body-color);
}
.calc-info-note i {
    color: var(--warning-color);
    margin-top: 2px;
}

/* =============================================
   Role & Permission Module – Permission Matrix
   ============================================= */

.permissions-panel {
    border-top: 1px solid var(--assest-color);
    margin-top: 8px;
    padding-top: 20px;
}

.permissions-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.permissions-heading {
    flex: 1 1 240px;
}

.permissions-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--body-color);
}

.permissions-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.permissions-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.permissions-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--assest-color);
    border-radius: 100px;
    background: var(--white-color);
}

.permissions-search i {
    color: var(--text-muted);
    font-size: 12px;
}

.permissions-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 140px;
    color: var(--body-color);
}

.permissions-select-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1.5px solid var(--assest-color);
    border-radius: 100px;
    background: var(--white-color);
    transition: all 0.2s ease;
}

.permissions-select-all:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.permissions-select-all-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
    white-space: nowrap;
}

.permissions-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 100px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.permissions-grid-scroll {
    padding: 4px 4px 0;
    margin: 0 -4px;
}

.permissions-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.permission-module-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border: 1px solid var(--assest-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--black-alpha-06);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.permission-module-card:hover {
    box-shadow: 0 8px 20px var(--black-alpha-10);
    transform: translateY(-2px);
}

.permission-module-accent {
    height: 3px;
    width: 100%;
    background: var(--assest-color);
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.permission-module-card.is-active .permission-module-accent {
    background: var(--green-color);
}

.permission-module-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.permission-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--assest-color);
}

.permission-module-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.permission-module-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary-color);
    transition: all 0.25s ease;
}

.permission-module-card.is-active .permission-module-icon {
    background: var(--green-alpha-12);
    color: var(--green-color);
}

.permission-module-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-module-children {
    flex: 1;
}

.permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    transition: opacity 0.2s ease;
}

.permission-row:not(:last-child) {
    border-bottom: 1px dashed var(--assest-color);
}

.permission-row-disabled {
    pointer-events: none;
}

.permission-row-disabled .permission-action-label {
    opacity: 0.4;
}

.permission-action-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
}

.permission-row .switch {
    transform: scale(0.85);
    transform-origin: right center;
}

/* This module's "off" state reads as neutral gray, not the app-wide red -
   a permission that isn't granted isn't an alarm, it's just unset. Checked
   stays green (inherited from the global .switch rule). Scoped to the
   permission matrix only, not the global .switch component. */
.permissions-panel .switch label,
.permissions-panel .switch:hover label {
    background: var(--light-gray);
}

.permissions-panel .switch input:disabled + label {
    box-shadow: none;
    cursor: not-allowed;
}

.permissions-panel .switch input:disabled + label:after {
    background: var(--white-color);
    box-shadow: none;
}

.permission-module-empty,
.permissions-no-match {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 22px;
}

@media (max-width: 767px) {
    .permissions-toolbar {
        width: 100%;
    }

    .permissions-search {
        width: 100%;
        flex: 1 1 100%;
    }

    .permission-module-body {
        padding: 16px;
    }
}

/* =================================================
   INSTALLATION WIZARD — Premium Redesign
   ================================================= */

.inst-root {
    position: relative;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: clamp(16px, 3vh, 40px) clamp(16px, 3vw, 40px);
    background: linear-gradient(
        135deg,
        var(--light-color) 0%,
        var(--white-color) 55%,
        var(--primary-light) 100%
    );
}

.inst-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.inst-glow-a {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -100px;
    background: var(--primary-alpha-3);
    animation: inst-drift 16s ease-in-out infinite;
}

.inst-glow-b {
    width: 300px;
    height: 300px;
    bottom: 0px;
    right: -110px;
    background: var(--color-blue-alpha);
    animation: inst-drift 18s ease-in-out infinite reverse;
}

@keyframes inst-drift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(22px, -16px) scale(1.06);
    }
}

/* ─── Shell: wraps the stepper bar + card, keeps both the same width ─── */
.inst-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(14px, 2.2vh, 20px);
}

/* ─── Card ─── */
.inst-card {
    position: relative;
    width: 100%;
    background: var(--white-color);
    border-radius: 28px;
    box-shadow:
        0 30px 60px var(--dark-color),
        0 12px 28px var(--shadow-xs),
        0 0 0 1px var(--border-color);
    padding: clamp(26px, 4vh, 40px) clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 20px);
    overflow: hidden;
    animation: inst-scale-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.inst-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.inst-card form {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vh, 18px);
}

@keyframes inst-scale-in {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }

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

/* ─── Topbar: brand + badge ─── */
.inst-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.inst-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inst-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.inst-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inst-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--body-color);
    letter-spacing: -0.2px;
}

.inst-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ─── Stepper (sits above the card, inside .inst-shell) ─── */
.inst-stepper-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 24px;
    padding: 22px clamp(18px, 4vw, 44px) 20px;
    animation: inst-scale-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.inst-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.inst-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.inst-step-dot-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    position: relative;
}

.inst-step:not(:last-child) .inst-step-dot-row::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(
        to right,
        var(--border-color) 0,
        var(--border-color) 4px,
        transparent 4px,
        transparent 9px
    );
    z-index: 0;
    transition: background-image 0.25s ease;
}

.inst-step.is-done:not(:last-child) .inst-step-dot-row::after {
    background-image: repeating-linear-gradient(
        to right,
        var(--primary-color) 0,
        var(--primary-color) 4px,
        transparent 4px,
        transparent 9px
    );
}

.inst-step-dot {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    background: var(--white-color);
    color: var(--light-gray);
    box-shadow: 0 6px 14px var(--dark-color);
    transition: all 0.25s ease;
}

.inst-step-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.inst-step.is-active .inst-step-dot {
    width: 58px;
    height: 58px;
    font-size: 21px;
    background: var(--primary-gradient);
    color: var(--white-color);
    box-shadow:
        0 0 0 8px var(--primary-light),
        0 10px 22px var(--primary-alpha-3);
}

.inst-step.is-active .inst-step-label {
    color: var(--body-color);
    font-weight: 700;
}

.inst-step.is-done .inst-step-dot {
    background: var(--primary-gradient);
    color: var(--white-color);
    box-shadow: 0 6px 14px var(--primary-alpha-3);
}

.inst-step.is-done .inst-step-label {
    color: var(--primary-color);
}

/* ─── Alerts ─── */
.inst-alert {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    border: none;
    font-size: 13.5px;
    padding: 14px 44px 14px 16px;
    margin: 0;
}

.inst-alert .close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: 0.6;
    background: none;
    border: none;
}

.inst-alert .close:hover {
    opacity: 1;
}

/* ─── Heading ─── */
.inst-heading {
    position: relative;
    z-index: 1;
}

.inst-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.inst-hero-icon.is-success {
    background: var(--light-green);
    color: var(--green-color);
}

.inst-title {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 800;
    color: var(--body-color);
    margin: 0;
    letter-spacing: -0.3px;
}

.inst-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.55;
}

.inst-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.6;
}

.inst-subtitle a,
.inst-hint a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ─── Credentials showcase (congratulations screen) ─── */
.inst-credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.inst-credential {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.inst-credential:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.inst-credential-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    background: var(--primary-gradient);
    color: var(--white-color);
}

.inst-credential-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-credential-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.inst-credential-value {
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-credential-copy {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    background: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-credential-copy:hover {
    background: var(--primary-gradient);
    color: var(--white-color);
    border-color: transparent;
}

.inst-credential-copy:focus {
    outline: none;
}

.inst-credential-copy.is-copied {
    background: var(--light-green);
    color: var(--green-color);
    border-color: transparent;
}

/* ─── Chip grid (requirements / checklist) ─── */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.inst-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--body-color);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.inst-chip-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
}

.inst-chip.is-ok .inst-chip-icon {
    background: var(--light-green);
    color: var(--green-color);
}

.inst-chip.is-fail .inst-chip-icon {
    background: var(--light-red);
    color: var(--red-color);
}

/* ─── Form ─── */
.inst-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
    position: relative;
    z-index: 1;
}

.inst-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inst-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--body-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.inst-field label .text-danger {
    color: var(--red-color);
}

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

.inst-input-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
    font-size: 13px;
    pointer-events: none;
}

.inst-input-wrap .form-control {
    height: 46px;
    padding-left: 42px;
    padding-right: 40px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    font-size: 13.5px;
    background: var(--light-color) !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.inst-input-wrap .form-control:focus {
    border-color: var(--primary-color);
    background: var(--white-color) !important;
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.inst-input-wrap .form-control::placeholder {
    color: var(--light-gray);
}

/* ─── Note / info panel ─── */
.inst-note {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.inst-note p {
    margin: 0;
}

.inst-note-strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.inst-note.is-warning {
    background: var(--light-warning);
    border-color: var(--light-warning);
    color: var(--body-color);
}

/* ─── Actions / buttons ─── */
.inst-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-install,
.btn-install-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 26px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.btn-install {
    background: var(--primary-gradient);
    color: var(--white-color) !important;
    box-shadow: 0 10px 24px var(--primary-light);
}

.btn-install:hover {
    box-shadow: 0 12px 28px var(--primary-alpha-3);
    transform: translateY(-1px);
    color: var(--white-color) !important;
}

.btn-install-cancel {
    background: var(--light-color);
    color: var(--body-color) !important;
    border-color: var(--border-color);
}

.btn-install-cancel:hover {
    background: var(--white-color);
    border-color: var(--light-gray);
    color: var(--body-color) !important;
}

/* ─── Footer ─── */
.inst-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.inst-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.inst-footer-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.inst-footer-links a:hover {
    color: var(--primary-color);
}

.inst-footer-social {
    display: flex;
    gap: 10px;
}

.inst-footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.2s ease;
}

.inst-footer-social a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .inst-card {
        border-radius: 20px;
        gap: 16px;
    }

    .inst-stepper-bar {
        border-radius: 20px;
        padding: 16px 10px 14px;
    }

    .inst-step-dot-row {
        height: 50px;
    }

    .inst-step-dot {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .inst-step.is-active .inst-step-dot {
        width: 44px;
        height: 44px;
        font-size: 16px;
        box-shadow:
            0 0 0 5px var(--primary-light),
            0 8px 16px var(--primary-alpha-3);
    }

    .inst-step-label {
        font-size: 10px;
    }

    .inst-badge {
        display: none;
    }

    .inst-grid,
    .inst-form-grid {
        grid-template-columns: 1fr;
    }

    .inst-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .inst-footer {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .inst-glow {
        display: none;
    }

    .inst-card {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   Content Section Builder — left list / center device preview / right form
   (resources/views/admin/section/index.blade.php + partials/*)
   ========================================================================== */

/* Scoped to #sb_tabs only - shrinks the Home/Novel/Audiobook/Magazine tabs a
   touch without affecting the shared .seg/.seg-btn used on other pages
   (dashboards, reports). */
#sb_tabs.seg {
    padding: 3px;
}

#sb_tabs .seg-btn {
    padding: 4px 12px;
    font-size: 12px;
}

.sb-grid {
    display: grid;
    /* List stays fixed, the preview column shrinks to the selected device's
       own natural width (sitting snug right next to the list instead of
       stretching to fill space), and the form column takes all remaining
       width. max-content adapts automatically to the mobile/tablet/desktop
       device toggle, so no per-device override is needed any more - matches
       dtcameo's own section-builder grid. */
    grid-template-columns: 280px max-content 1fr;
    gap: 20px;
    align-items: start;
}

.sb-panel {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.sb-panel .card-header {
    flex-shrink: 0;
    /* .custom-border-card's own header uses a negative margin to cancel out
       the card's 22px/26px padding - .sb-panel zeroes that padding instead
       (.sb-panel-body handles spacing), so the margin must be zeroed too or
       it pulls the header outside the card, where overflow:hidden clips it. */
    margin: 0;
}

.sb-panel-body {
    padding: 16px 16px;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    background-color: var(--white-color);
}

/* Center panel has no card chrome and follows the page's own scroll instead
   of a bounded internal one - overrides the defaults above. */
.sb-panel-body-preview {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: transparent;
    max-height: none;
    overflow: visible;
}

/* Left (section list) and right (form) panels both cap to the device
   preview's own height, each scrolling internally past that. This also
   keeps the page itself from ever growing taller than one viewport on this
   screen - html/body (public/assets/css/style.css's shared base rule) both
   set height:100% + overflow:auto, so once page content overflows that,
   html and body can each end up showing their own scrollbar at once. Since
   that base rule is used everywhere in the admin panel, it's left alone;
   bounding these two panels instead is what actually avoids the page ever
   needing to scroll on this one. */
.sb-panel-body-capped {
    max-height: var(--sb-device-height);
    overflow-y: auto;
}

/* Right panel only - wraps the form body + its footer so the two COMBINED
   cap at the device height instead of the body alone capping to it and the
   footer adding on top of that. max-height (not a fixed height) so a form
   with little content stays its own natural size instead of being
   stretched to fill the device height. */
.sb-panel-body-group {
    display: flex;
    flex-direction: column;
    max-height: var(--sb-device-height);
}

.sb-panel-body-group .sb-panel-body-capped {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.sb-panel-body::-webkit-scrollbar {
    width: 4px;
}

.sb-panel-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

.sb-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.sb-panel-body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.sb-home-user-filter-select {
    min-width: 300px;
}

/* ── Left: section list ── */

.sb-add-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
}

.sb-save-order-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--white-color);
}

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

.sb-list-empty {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 24px 8px;
}

.sb-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 10px 10px 8px;
    cursor: grab;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

.sb-list-item:active {
    cursor: grabbing;
}

.sb-list-item:hover,
.sb-list-item.is-hover {
    background: var(--white-color);
    box-shadow: 0 4px 12px var(--dark-color);
    border-color: var(--assest-color);
}

.sb-list-item.is-active {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.sb-list-item .sort-handle {
    cursor: grab;
}

.sb-list-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-list-item.is-hidden {
    opacity: 0.55;
}

.sb-list-item.is-hidden:hover {
    opacity: 1;
}

.sb-list-item.is-hidden .sb-list-item-title {
    color: var(--text-muted);
}

.sb-list-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: default;
}

.sb-item-delete {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}
.sb-item-delete:focus {
    outline: none;
}

.sb-item-delete:hover {
    color: var(--red-color);
    background: var(--light-red);
}

/* ── Center: device preview ── */

.sb-preview-toolbar {
    display: flex;
    justify-content: center;
    padding: 0 0 6px;
    flex-shrink: 0;
}

.sb-preview-viewport {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    padding: 4px 4px 20px;
}

.sb-device-frame {
    box-sizing: border-box;
    padding: 6px;
    background: #0d0d15;
    transition: width 0.25s ease;
    /* Panels stay a fixed width regardless of device - if the selected
       device's own width (below) doesn't fit what's left for the center
       column, shrink the frame itself to fit instead of overflowing it. */
    max-width: 100%;
    min-width: 0;
    /* A tight contact shadow (grounds it) plus one clear downward offset
       (reads as "lifted", not a soft glow spreading out on all sides). */
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.14),
        0 10px 18px rgba(15, 23, 42, 0.16);
}

.sb-device-frame[data-device="mobile"] {
    /* 407 = 1220 physical screenshot px / 3x device pixel ratio - matches the
       real test device's actual logical width, so the dart source's literal
       dp-sized elements (132px chips, 128px cards, etc.) take up the same
       proportion of the frame here as they do on the real phone. */
    width: 407px;
    margin-top: 6px;
    border-radius: 38px;
}

.sb-device-frame[data-device="tablet"] {
    /* Not derived from a specific device's physical/DPR pair like mobile
       above - a to-scale tablet (800px+) would force the 3-panel builder
       wider than the layout can comfortably fit. 600 is chosen to read as a
       real step up from the phone frame while still fitting alongside the
       list/form panels. */
    width: 600px;
    margin-top: 6px;
    border-radius: 22px;
}

.sb-device-frame[data-device="desktop"] {
    /* Same reasoning as tablet above - a to-scale monitor width (1920px)
       would blow out the layout, so 760 is picked to feel like a real
       desktop viewport (wider than the tablet frame) without doing that. */
    width: 760px;
    margin-top: 0;
    border-radius: 13px;
}

.sb-device-screen {
    /* Real scaffoldBackgroundColor, sampled off-device - see --app-surface-2
       above. Cards/rows inside .sb-stack still sit on their own explicit
       white/palette backgrounds, so this is only visible in the gaps. */
    background: var(--app-surface-2);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* The real Flutter app doesn't use this admin theme's Rubik font at all -
       now that Rubik actually loads (it previously silently fell back to the
       browser's default sans-serif everywhere), the same numeric font-weight
       values here read heavier than the real app's own font renders them.
       Opting the preview back onto a plain system-ui stack keeps it closer
       to how the app itself actually looks, while the rest of the admin
       panel keeps its own real Rubik bold. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sb-device-screen::-webkit-scrollbar {
    display: none;
}

.sb-device-frame[data-device="mobile"] .sb-device-screen {
    height: calc(var(--sb-device-height) - var(--sb-app-statusbar-height));
    border-radius: 0 0 32px 32px;
}

.sb-device-frame[data-device="tablet"] .sb-device-screen {
    height: calc(var(--sb-device-height) - var(--sb-app-statusbar-height));
    border-radius: 0 0 16px 16px;
}

.sb-device-frame[data-device="desktop"] .sb-device-screen {
    height: calc(var(--sb-device-height) - var(--sb-app-statusbar-height));
    border-radius: 0 0 6px 6px;
}

/* Fake OS status bar (time left, signal/wifi/battery right) - the only
   piece of this chrome that stays outside #sb_device_screen and never
   scrolls (a real device's status bar doesn't scroll with any app), so it
   alone owns the frame's top corner radius. Purely cosmetic "this is a
   screenshot" chrome, not part of the app itself. */
.sb-app-statusbar {
    height: var(--sb-app-statusbar-height);
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: var(--app-surface-2);
    color: var(--body-color);
    font-size: 13px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sb-device-frame[data-device="mobile"] .sb-app-statusbar {
    border-radius: 32px 32px 0 0;
}

.sb-device-frame[data-device="tablet"] .sb-app-statusbar {
    border-radius: 16px 16px 0 0;
}

.sb-device-frame[data-device="desktop"] .sb-app-statusbar {
    border-radius: 6px 6px 0 0;
}

.sb-app-statusbar-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Greeting row (avatar/message/notification) - matches home.dart's own
   SliverToBoxAdapter(child: _greetingAppBar()): a plain, non-sticky sliver
   that lives inside #sb_device_screen (rendered by stack.blade.php via
   _app_greeting_search.blade.php) and scrolls away with the rest of the
   content, unlike the search bar right below it. _greetingAppBar's own
   Padding.fromLTRB(18, top+14, 18, 8) - MediaQuery's safe-area top inset is
   dropped here (there's no real device notch inside this preview frame),
   same simplification the rest of this preview already makes elsewhere. */
.sb-app-topbar-row {
    display: flex;
    align-items: center;
    padding: 14px 18px 8px;
    background: var(--app-surface-2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Row's own SizedBox(width: 12) between the avatar and the greeting text -
   the ONLY gap in that Row; nothing separates the Expanded greeting text
   from the notification button, so this must be a margin on the avatar
   alone, not a shared flex `gap` (which would wrongly add space on both
   sides of the greeting text). */
.sb-app-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    margin-right: 12px;
    background: var(--app-gradient-primary);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.sb-app-greeting-text {
    flex: 1 1 auto;
    min-width: 0;
}

.sb-app-greeting-line {
    display: flex;
    align-items: center;
    /* _greetingText()'s inner Row: SizedBox(width: 4) between the message
       and the emoji. */
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.sb-app-greeting-emoji {
    font-size: 13px;
}

.sb-app-greeting-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* _actionIconButton: 40x40, radius 13, cardColor fill + dividerColor border,
   Icon size 21 - a comfortably-sized icon-in-box like .sb-content-play
   (36x36 box, size-21 icon rendered at font-size:21 with no FA-vs-Material
   correction), unlike the cramped pill icons elsewhere in this file that
   DO need one. */
.sb-app-notif-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    color: var(--body-color);
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* _StickySearchDelegate itself: a SliverPersistentHeader(pinned: true), so
   this wrapper (not the pill inside it) is what actually sticks - matches
   the delegate's own AnimatedContainer, which spans the full width in
   scaffoldBackgroundColor with Padding.fromLTRB(18, 8, 18, 12) around the
   pill, so the pill visibly floats inset even once stuck. z-index lifts it
   above .sb-stack's content scrolling underneath once pinned. */
.sb-app-searchbar-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    box-sizing: border-box;
    padding: 8px 18px 12px;
    background: var(--app-surface-2);
}

/* The mic-enabled variant (_MagazineStickySearchDelegate /
   _AudiobookStickySearchDelegate - same Container spec as home's own
   delegate plus a trailing Icon(Icons.mic_rounded, size: 20)) is the one
   actually shown on Home too; confirmed against a real device screenshot,
   which also shows this bar with the "stuck" AnimatedContainer's own
   boxShadow (black @ 8% alpha, blur 14, offset 0/6) - reproduced directly
   on the pill here since it's always at least as visible as the real
   "stuck" state once you've scrolled at all. */
.sb-app-searchbar {
    height: 47px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 16px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    font-size: 13px;
    cursor: default;
}

.sb-app-searchbar i {
    font-size: 21px;
}

/* Row's own SizedBox(width: 10) between the search icon and the hint text -
   a margin on the icon alone (not a shared flex `gap`), since the Row has
   nothing between the Expanded hint text and the trailing mic icon. */
.sb-app-searchbar i.fa-magnifying-glass {
    margin-right: 10px;
}

.sb-app-searchbar span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-app-searchbar i.fa-microphone {
    flex-shrink: 0;
    font-size: 20px;
}

.sb-stack {
    padding: 18px 0;
}

.sb-preview-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 60px 20px;
}

.sb-preview-empty-icon {
    font-size: 28px;
    opacity: 0.4;
}

/* Section block wrapper — hover/selection affordance driven from the left list */

.sb-section-block {
    position: relative;
    padding: 0 0 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.sb-section-block:hover,
.sb-section-block.is-hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.sb-section-block.is-selected {
    border-color: var(--primary-color);
}

.sb-block-actions {
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.sb-section-block:hover .sb-block-actions {
    opacity: 1;
    pointer-events: auto;
}

.sb-block-edit-btn,
.sb-block-delete-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--white-color);
    box-shadow: var(--app-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.sb-block-edit-btn {
    color: var(--primary-color);
}

.sb-block-delete-btn {
    color: var(--red-color);
}

.sb-block-edit-btn:focus,
.sb-block-delete-btn:focus {
    outline: none;
}

.sb-block-edit-btn:hover {
    background: var(--primary-light);
}

.sb-block-delete-btn:hover {
    background: var(--light-red);
}

/* Live, not-yet-saved preview of the add/edit form's current values. */
.sb-section-block.is-draft {
    border-color: var(--warning-color);
    border-style: dashed;
    background: rgba(231, 174, 3, 0.06);
}

.sb-draft-badge {
    display: inline-block;
    margin: 10px 18px 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--warning-color);
    color: var(--white-color);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sb-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 18px 13px;
    gap: 10px;
}

/* The app's subtitle sits on its own line UNDER the whole icon+title row,
   starting at the icon's own left edge - not indented to align under the
   title text. So the icon+title pairing is its own row, and the subtitle is
   a sibling row below it, both inside the outer titles column. */
.sb-section-titles {
    min-width: 0;
    flex: 1 1 auto;
}

.sb-section-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.sb-section-title-row i {
    color: var(--app-color-primary);
    /* Dart spec is size:19, but same FontAwesome-vs-Material-icon oversize as
       the View All chevron - scaled down by the same confirmed ratio. */
    font-size: 15px;
    flex-shrink: 0;
}

.sb-section-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-section-subtitle {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.sb-view-all {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--app-color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.sb-view-all-chevron {
    /* Dart spec is size:18, but FontAwesome's chevron-right glyph reads
       visibly bigger than Material's chevron_right_rounded at the same
       numeric size - confirmed against the real app by eye, 12px + a 3px
       gap from the text is the correct visual match here. */
    font-size: 10px;
}

.sb-row-scroll {
    display: flex;
    gap: 13px;
    padding: 0 18px;
    overflow-x: auto;
    /* overflow-x alone would make the UA compute overflow-y as auto too (per
       spec, one axis can't stay visible once the other is scrollable) -
       spelling out overflow-y explicitly rules out a stray vertical scrollbar. */
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Per-row-type gap overrides - the app's own ListView.separated gaps aren't
   uniform across row kinds (12/13/14px), matched here via :has() so each
   partial doesn't need its own wrapper markup. */
.sb-row-scroll:has(.sb-chip-tile),
.sb-row-scroll:has(.sb-recent-card) {
    gap: 12px;
}

.sb-row-scroll:has(.sb-content-card),
.sb-row-scroll:has(.sb-bundle-card) {
    gap: 14px;
}

.sb-row-scroll::-webkit-scrollbar {
    display: none;
}

/* Banner */

.sb-banner-row {
    padding: 0 18px;
}

.sb-banner-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sb-banner-track::-webkit-scrollbar {
    display: none;
}

.sb-banner-slide {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-width: 260px;
    height: 172px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--app-gradient-primary);
    background-size: cover;
    background-position: center;
}

.sb-banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.sb-banner-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white-color);
}

.sb-banner-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--app-overlay-white-22);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 9px;
}

.sb-banner-tag i {
    font-size: 14px;
}

.sb-banner-title {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.sb-banner-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--app-overlay-white-92);
}

.sb-banner-cta {
    align-self: flex-start;
    margin-top: 13px;
    background: var(--white-color);
    color: var(--black-color);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 11px;
}

.sb-banner-cta i {
    font-size: 15px;
    margin-left: 5px;
}

.sb-banner-thumb {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 16px;
    width: 74px;
    height: 106px;
    object-fit: cover;
    border-radius: 7px;
    transform: rotate(6deg);
    box-shadow: -8px 10px 22px rgba(0, 0, 0, 0.35);
}

.sb-banner-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    padding-top: 10px;
}

.sb-banner-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--border-color);
}

.sb-banner-dots span:first-child {
    width: 20px;
    background: var(--app-color-primary);
}

/* Category / language chip row */

.sb-chip-tile {
    position: relative;
    flex: 0 0 auto;
    width: 132px;
    height: 82px;
    border-radius: 18px;
    padding: 12px;
    overflow: hidden;
    background: var(--app-palette-1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n + 2) {
    background: var(--app-palette-2);
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n + 3) {
    background: var(--app-palette-3);
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n + 4) {
    background: var(--app-palette-4);
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n + 5) {
    background: var(--app-palette-5);
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n + 6) {
    background: var(--app-palette-6);
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n + 7) {
    background: var(--app-palette-7);
}

.sb-row-scroll .sb-chip-tile:nth-of-type(8n) {
    background: var(--app-palette-8);
}

.sb-chip-icon {
    color: var(--app-overlay-white-95);
    font-size: 25px;
}

.sb-chip-ghost {
    position: absolute;
    right: -14px;
    bottom: -16px;
    font-size: 64px;
    color: var(--app-overlay-white-16);
}

.sb-chip-label {
    position: relative;
    color: var(--white-color);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Author row */

.sb-author-card {
    flex: 0 0 auto;
    width: 132px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 14px 12px;
    box-shadow: var(--app-shadow-card);
    text-align: center;
}

.sb-author-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
}

.sb-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--app-gradient-primary);
}

.sb-author-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--app-color-info);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2.5px solid var(--white-color);
}

.sb-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.sb-author-follow {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: var(--app-color-primary);
    color: var(--white-color);
}

.sb-author-follow.is-following {
    background: var(--app-surface-2);
    color: var(--app-text-muted);
}

/* Generic content card (portrait = novel/magazine, square = audiobook) */

.sb-content-card {
    flex: 0 0 auto;
}

.sb-content-card.is-portrait {
    width: 128px;
}

.sb-content-card.is-square {
    width: 150px;
}

.sb-content-cover-wrap {
    position: relative;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: var(--app-shadow-cover);
    background: var(--light-color);
}

.sb-content-card.is-portrait .sb-content-cover-wrap {
    width: 128px;
    height: 186px;
}

.sb-content-card.is-square .sb-content-cover-wrap {
    width: 150px;
    height: 150px;
    border-radius: 16px;
}

.sb-content-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sb-content-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--app-overlay-black-50);
    color: var(--white-color);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 11px;
}

.sb-content-badge i {
    /* Same FontAwesome-vs-Material icon oversize as the section header icon
       and View All chevron - scaled down so the pill's width matches. */
    font-size: 9px;
}

.sb-content-bookmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--app-overlay-black-40);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.sb-content-bookmark i.is-bookmarked {
    color: var(--app-color-bookmark);
}

.sb-content-rating {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--app-overlay-black-55);
    color: var(--white-color);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

.sb-content-rating i {
    /* Same FontAwesome-vs-Material icon oversize as the section header icon
       and View All chevron - scaled down so the pill's width matches. */
    font-size: 8px;
    color: var(--app-color-accent);
}

.sb-content-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--app-overlay-white-92);
    color: var(--app-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.sb-content-episodes {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--app-overlay-black-55);
    color: var(--white-color);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
}

.sb-content-title {
    margin-top: 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-content-author {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-content-author i {
    font-size: 10px;
    margin-right: 4px;
}

.sb-content-price {
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

.sb-content-price.is-free {
    color: var(--app-color-success);
}

.sb-content-price.is-paid {
    color: var(--app-color-primary);
}

/* Continue reading / listening */

.sb-continue-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 280px;
    height: 138px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    border-radius: 20px;
    box-shadow: var(--app-shadow-row);
}

.sb-continue-cover {
    width: 64px;
    height: 92px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light-color);
}

.sb-continue-body {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sb-continue-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-continue-author {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-continue-progress-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
}

.sb-continue-ring {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--app-color-primary) calc(var(--pct) * 1%),
        var(--assest-color) 0
    );
}

.sb-continue-ring-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--body-color);
}

.sb-continue-pill {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--white-color);
    background: var(--app-color-primary);
    padding: 9px 0;
    border-radius: 11px;
}

.sb-continue-pill i {
    font-size: 15px;
}

/* Continue listening */

.sb-listening-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 284px;
    height: 100px;
    display: flex;
    /* Unlike _continueReadingCard's Row (crossAxisAlignment.start, matching
       .sb-continue-card above), _continueListeningCard's own Row never sets
       crossAxisAlignment - Flutter's Row default is .center, so the cover +
       text block sit vertically centered in the 100px row height, not
       pinned to the top. */
    align-items: center;
    gap: 13px;
    padding: 14px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    border-radius: 20px;
    box-shadow: var(--app-shadow-row);
}

/* .sb-continue-body (shared with the Reading card above) is height:100% so
   Reading's Spacer() can push its progress row to the bottom - Listening's
   Column has no Spacer, it's just its own natural (shorter) height centered
   by .sb-listening-card's align-items above, so it can't stretch to fill
   the card here the way Reading's does. */
.sb-listening-card .sb-continue-body {
    height: auto;
}

.sb-listening-cover {
    position: relative;
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 14px;
    overflow: hidden;
    /* Overridden by one of the .sb-cover-palette-* rules below per item -
       this is just the fallback if that class is ever missing. */
    background: var(--app-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* _palette(datum.id)'s 8-color rotation (see --app-palette-* above) - which
   one a given card gets is picked in the blade template from the content's
   own id, matching the app exactly. */
.sb-cover-palette-1 {
    background: var(--app-palette-1);
}
.sb-cover-palette-2 {
    background: var(--app-palette-2);
}
.sb-cover-palette-3 {
    background: var(--app-palette-3);
}
.sb-cover-palette-4 {
    background: var(--app-palette-4);
}
.sb-cover-palette-5 {
    background: var(--app-palette-5);
}
.sb-cover-palette-6 {
    background: var(--app-palette-6);
}
.sb-cover-palette-7 {
    background: var(--app-palette-7);
}
.sb-cover-palette-8 {
    background: var(--app-palette-8);
}

/* The cover sits inset inside the palette square as its own smaller square
   (not edge-to-edge, not circular) so the palette color stays visible as a
   border around it - only the play button below is the circle on top of it.
   Fixed width/height (rather than inset alone) plus centering via
   top/left + transform keeps this a stable, explicit box regardless of the
   source image's own aspect ratio/padding. */
.sb-listening-cover img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.sb-listening-play {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--app-overlay-white-90);
    color: var(--app-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.sb-listening-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 18px;
    margin-top: 6px;
}

.sb-waveform span {
    flex: 1;
    border-radius: 2px;
    background: color-mix(in srgb, var(--app-color-primary) 55%, transparent);
    /* The app drives all 9 bars off one continuous 1s-looping sine, each bar
       phase-shifted by i*0.7 rad (h = 6 + |sin(phase)| * 12). |sin| has a
       0.5s period at that speed, and a phase shift is equivalent to a time
       shift - so this uses a 0.5s linear keyframe (shaped like |sin| itself,
       not a plain ease-in-out triangle) with each bar's animation-delay set
       to its i*0.7 rad offset converted to ms and wrapped into that 0.5s
       period (see the blade template's inline delays). */
    animation: sb-waveform-pulse 0.5s linear infinite;
}

@keyframes sb-waveform-pulse {
    0%,
    100% {
        height: 6px;
    }

    10% {
        height: 9.71px;
    }

    20% {
        height: 13.05px;
    }

    30% {
        height: 15.71px;
    }

    40% {
        height: 17.41px;
    }

    50% {
        height: 18px;
    }

    60% {
        height: 17.41px;
    }

    70% {
        height: 15.71px;
    }

    80% {
        height: 13.05px;
    }

    90% {
        height: 9.71px;
    }
}

/* Recently viewed */

.sb-recent-card {
    flex: 0 0 auto;
    width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    box-shadow: var(--app-shadow-sm);
}

.sb-recent-cover {
    width: 38px;
    height: 52px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light-color);
}

.sb-recent-body {
    min-width: 0;
}

.sb-recent-title {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.sb-recent-meta {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.sb-recent-meta i {
    font-size: 11px;
}

/* Bundle */

.sb-bundle-card {
    flex: 0 0 auto;
    width: 230px;
    padding: 14px;
    background: var(--white-color);
    border: 1px solid var(--app-border);
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.sb-bundle-covers {
    position: relative;
    height: 70px;
    margin-bottom: 8px;
}

.sb-bundle-covers img {
    position: absolute;
    top: 0;
    width: 48px;
    height: 70px;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--white-color);
}

.sb-bundle-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: color-mix(in srgb, var(--app-color-accent) 15%, transparent);
    color: var(--app-color-accent);
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.sb-bundle-pill i {
    font-size: 12px;
}

.sb-bundle-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-bundle-meta {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.sb-bundle-cta {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 9px 0;
    text-align: center;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white-color);
    background: var(--app-color-primary);
}

.sb-bundle-cta.is-purchased {
    background: var(--app-color-accent);
}

/* ── Right: add/edit form panel ── */

/* Content-type-dependent fields - JS toggles visibility per selected content_type/tab. */
.sb-field {
    display: none;
}

/* Generic "hidden until JS shows it" helper (e.g. the delete button before a section is selected). */
.sb-hidden {
    display: none;
}

.sb-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sb-form-mode {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sb-form-footer {
    flex-shrink: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--assest-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── Responsive ── */

@media (max-width: 1100px) {
    .sb-grid,
    .sb-grid[data-device="tablet"],
    .sb-grid[data-device="desktop"] {
        grid-template-columns: 1fr;
    }

    .sb-panel-body {
        max-height: 420px;
    }
}

@media (max-width: 480px) {
    .sb-device-frame[data-device="mobile"] {
        width: 100%;
        min-width: 0;
    }

    .sb-device-frame[data-device="tablet"],
    .sb-device-frame[data-device="desktop"] {
        width: 100%;
    }
}
