@charset "UTF-8";
/* ==========================================================================
   Shortzz Admin — "admin-pro" design system
   --------------------------------------------------------------------------
   Layer that sits ON TOP of the Hyper vendor theme (app-saas.min.css). It never
   rewrites the vendor files: it re-declares the theme tokens (--ct-*) and adds
   a small, namespaced class layer (.sz-*).

   Brand mapping (read from the Flutter app, lib/utilities/):
     color_res.dart   themeGradient1 #D97ACB  ->  --sz-pink
                      themeGradient2 #C35CFE  ->  --sz-violet-2
                      themeAccentSolid #B754F9 ->  --sz-accent
                      themeColor #15161A       ->  --sz-nav   (sidebar surface)
                      blueFollow #3E8BFF, likeRed #FF5751, green #34D948,
                      orange #FF7A19, battleProgressColor #2CC3FF
     theme_res.dart   dark palette (4 step elevation):
                      #0F1015 page / #1A1C23 surface / #23262F raised
                      / #1D1F27 recessed / #15171D navbar / #2E313B divider
                      text #ECEDEF, secondary #9EA5B2, disabled #5C616D
     style_res.dart   StyleRes.themeGradient (left -> right pink -> violet)
     font_res.dart    Outfit (body) + Unbounded (titles / numbers)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand fonts (self hosted, copied from the app bundle: assets/fonts)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --sz-pink: #D97ACB;
    --sz-violet-2: #C35CFE;
    --sz-accent: #B754F9;
    --sz-accent-rgb: 183, 84, 249;
    --sz-grad: linear-gradient(115deg, #D97ACB 0%, #C35CFE 52%, #B754F9 100%);
    --sz-grad-45: linear-gradient(135deg, #D97ACB 0%, #B754F9 100%);
    --sz-grad-soft: linear-gradient(115deg, rgba(217, 122, 203, .16) 0%, rgba(183, 84, 249, .16) 100%);

    /* Semantic (mirrors the app palette) */
    --sz-blue: #3E8BFF;
    --sz-cyan: #2CC3FF;
    --sz-green: #34D948;
    --sz-green-deep: #009821;
    --sz-red: #FF5751;
    --sz-orange: #FF7A19;
    --sz-yellow: #FFC35A;

    /* Radii scale */
    --sz-r-xs: 6px;
    --sz-r-sm: 10px;
    --sz-r: 14px;
    --sz-r-lg: 18px;
    --sz-r-xl: 24px;
    --sz-r-pill: 999px;

    /* Spacing scale (4pt) */
    --sz-s1: 4px;
    --sz-s2: 8px;
    --sz-s3: 12px;
    --sz-s4: 16px;
    --sz-s5: 20px;
    --sz-s6: 24px;
    --sz-s7: 32px;
    --sz-s8: 40px;

    /* Typography */
    --sz-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sz-font-display: 'Unbounded', 'Outfit', -apple-system, sans-serif;

    /* Shell metrics */
    --sz-shell-max: 1680px;
    /* Reference only: the rail width itself is owned by the vendor theme
       (--ct-leftbar-width), which .content-page mirrors as its left margin. */
    --sz-nav-w: 260px;
}

/* Light surfaces */
html[data-bs-theme="light"],
html:not([data-bs-theme]) {
    --sz-page: #F4F6FB;
    --sz-surface: #FFFFFF;
    --sz-raised: #F7F8FC;
    --sz-recessed: #EFF2F9;
    --sz-line: #E6E9F0;
    --sz-line-strong: #D8DDE7;
    --sz-text: #15161A;
    --sz-text-2: #5F6675;
    --sz-text-3: #9AA1AE;
    --sz-shadow-sm: 0 1px 2px rgba(21, 22, 26, .05);
    --sz-shadow: 0 10px 24px -14px rgba(21, 22, 26, .18);
    --sz-shadow-lg: 0 26px 50px -24px rgba(21, 22, 26, .26);
    --sz-ring: rgba(var(--sz-accent-rgb), .22);
    --sz-hover: #F4F6FB;
}

/* Dark surfaces — the exact 4 step elevation of the app */
[data-bs-theme="dark"] {
    --sz-page: #0F1015;
    --sz-surface: #1A1C23;
    --sz-raised: #23262F;
    --sz-recessed: #1D1F27;
    --sz-nav-dark: #15171D;
    --sz-line: #2E313B;
    --sz-line-strong: #3A3E4A;
    --sz-text: #ECEDEF;
    --sz-text-2: #9EA5B2;
    --sz-text-3: #5C616D;
    --sz-shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --sz-shadow: 0 12px 28px -16px rgba(0, 0, 0, .75);
    --sz-shadow-lg: 0 28px 58px -26px rgba(0, 0, 0, .85);
    --sz-ring: rgba(var(--sz-accent-rgb), .3);
    --sz-hover: #21242C;
}

/* Sidebar palette.
   The rail keeps the graphite tone of the app's themeColor (#15161A) in the
   default "dark menu" configuration, and switches to a clean light rail when
   the admin picks it in the theme settings. The colours below only move the
   values; the background itself is left to the theme variable --ct-menu-bg so
   that the "Brand" (gradient) option of the theme switcher keeps working. */
:root {
    --sz-nav-text: rgba(236, 237, 239, .66);
    --sz-nav-text-strong: #FFFFFF;
    --sz-nav-title: rgba(158, 165, 178, .5);
    --sz-nav-line: rgba(255, 255, 255, .07);
    --sz-nav-hover: rgba(255, 255, 255, .06);
    --sz-nav-active-bg: rgba(var(--sz-accent-rgb), .16);
}
html[data-menu-color="dark"],
html:not([data-menu-color]) {
    --ct-menu-bg: #15161A;
}
html[data-menu-color="light"] {
    --ct-menu-bg: #FFFFFF;
    --sz-nav-text: #5F6675;
    --sz-nav-text-strong: #15161A;
    --sz-nav-title: #9AA1AE;
    --sz-nav-line: #E6E9F0;
    --sz-nav-hover: rgba(var(--sz-accent-rgb), .07);
    --sz-nav-active-bg: rgba(var(--sz-accent-rgb), .1);
}
html[data-bs-theme="dark"][data-menu-color="light"] {
    --ct-menu-bg: #1A1C23;
    --sz-nav-text: #9EA5B2;
    --sz-nav-text-strong: #ECEDEF;
    --sz-nav-title: #5C616D;
    --sz-nav-line: #2E313B;
    --sz-nav-hover: rgba(255, 255, 255, .05);
    --sz-nav-active-bg: rgba(var(--sz-accent-rgb), .18);
}

/* --------------------------------------------------------------------------
   3. Re-map the vendor theme tokens onto the brand surfaces
   -------------------------------------------------------------------------- */
html[data-bs-theme="light"] {
    --ct-body-bg: var(--sz-page);
    --ct-body-color: var(--sz-text-2);
    --ct-emphasis-color: var(--sz-text);
    --ct-heading-color: var(--sz-text);
    --ct-secondary-bg: var(--sz-surface);
    --ct-tertiary-bg: var(--sz-raised);
    --ct-border-color: var(--sz-line);
    --ct-card-bg: var(--sz-surface);
    --ct-card-cap-bg: transparent;
    --ct-input-bg: #FFFFFF;
    --ct-modal-bg: var(--sz-surface);
    --ct-dropdown-bg: var(--sz-surface);
    --ct-offcanvas-bg: var(--sz-surface);
    --ct-table-bg: transparent;
    --ct-table-hover-bg: var(--sz-hover);
}

[data-bs-theme="dark"] {
    --ct-body-bg: var(--sz-page);
    --ct-body-bg-rgb: 15, 16, 21;
    --ct-body-color: #B9BEC9;
    --ct-body-color-rgb: 185, 190, 201;
    --ct-emphasis-color: #ECEDEF;
    --ct-heading-color: #ECEDEF;
    --ct-secondary-bg: var(--sz-surface);
    --ct-secondary-bg-rgb: 26, 28, 35;
    --ct-tertiary-bg: var(--sz-raised);
    --ct-tertiary-bg-rgb: 35, 38, 47;
    --ct-border-color: var(--sz-line);
    --ct-border-color-translucent: var(--sz-line);
    --ct-card-bg: var(--sz-surface);
    --ct-card-cap-bg: transparent;
    --ct-input-bg: var(--sz-recessed);
    --ct-modal-bg: var(--sz-surface);
    --ct-dropdown-bg: var(--sz-surface);
    --ct-offcanvas-bg: var(--sz-surface);
    --ct-table-bg: transparent;
    --ct-table-hover-bg: var(--sz-hover);
    --ct-primary: var(--sz-accent);
    --ct-primary-rgb: var(--sz-accent-rgb);
    --ct-link-color: var(--sz-pink);
    --ct-link-hover-color: var(--sz-violet-2);
}

html[data-topbar-color="light"] {
    --ct-topbar-bg: rgba(255, 255, 255, .88);
    --ct-topbar-item-color: var(--sz-text-2);
    --ct-topbar-item-hover-color: var(--sz-accent);
    --ct-topbar-search-bg: var(--sz-recessed);
    --ct-topbar-user-bg: var(--sz-raised);
    --ct-topbar-user-border: var(--sz-line);
}
html[data-bs-theme="dark"][data-topbar-color="light"],
html[data-bs-theme="dark"][data-topbar-color="dark"] {
    --ct-topbar-bg: rgba(21, 23, 29, .86);
    --ct-topbar-item-color: var(--sz-text-2);
    --ct-topbar-item-hover-color: #FFFFFF;
    --ct-topbar-search-bg: var(--sz-raised);
    --ct-topbar-user-bg: var(--sz-raised);
    --ct-topbar-user-border: var(--sz-line);
}

/* --------------------------------------------------------------------------
   4. Base
   -------------------------------------------------------------------------- */
body {
    font-family: var(--sz-font);
    background-color: var(--sz-page);
    color: var(--sz-text);
    font-size: .9375rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--sz-font);
    font-weight: 600;
    color: var(--sz-text);
    letter-spacing: -.01em;
}

a { text-decoration: none; }

hr { border-color: var(--sz-line); opacity: 1; }

::selection { background: rgba(var(--sz-accent-rgb), .25); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--sz-line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--sz-line-strong);
    border: 3px solid transparent;
    border-radius: var(--sz-r-pill);
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--sz-text-3); background-clip: content-box; }

.simplebar-scrollbar:before { background: var(--sz-line-strong); opacity: .5; }

/* --------------------------------------------------------------------------
   5. Shell / layout
   -------------------------------------------------------------------------- */
.content-page { background: var(--sz-page); }

.container-fluid {
    max-width: var(--sz-shell-max);
    margin-inline: auto;
    padding-inline: var(--sz-s6);
}

@media (max-width: 767.98px) {
    .container-fluid { padding-inline: var(--sz-s4); }
}

/* kill the vendor page-title-box padding: pages own their spacing now */
.page-title-box { padding: 0; margin: 0; }

/* --------------------------------------------------------------------------
   6. Page header (.sz-page-head)
   -------------------------------------------------------------------------- */
.sz-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sz-s5);
    flex-wrap: wrap;
    padding: var(--sz-s6) 0 var(--sz-s5);
    margin-bottom: var(--sz-s5);
    border-bottom: 1px solid var(--sz-line);
}

.sz-page-head-main { min-width: 0; }

.sz-crumbs {
    display: flex;
    align-items: center;
    gap: var(--sz-s2);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sz-text-3);
    margin-bottom: var(--sz-s2);
}
.sz-crumbs a { color: var(--sz-text-3); transition: color .15s ease; }
.sz-crumbs a:hover { color: var(--sz-accent); }
.sz-crumbs i { font-size: .95rem; line-height: 1; opacity: .7; }
.sz-crumbs .sz-crumb-current { color: var(--sz-text-2); }

.sz-page-title {
    font-family: var(--sz-font-display);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.25;
    margin: 0 0 var(--sz-s1);
    color: var(--sz-text);
    letter-spacing: -.02em;
}
.sz-page-title .sz-title-gradient {
    background: var(--sz-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sz-page-sub {
    margin: 0;
    color: var(--sz-text-2);
    font-size: .9rem;
    max-width: 78ch;
}

.sz-page-head-side {
    display: flex;
    align-items: center;
    gap: var(--sz-s2);
    flex-wrap: wrap;
}

/* Chips */
.sz-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sz-s2);
    height: 34px;
    padding: 0 var(--sz-s3);
    border-radius: var(--sz-r-pill);
    border: 1px solid var(--sz-line);
    background: var(--sz-surface);
    color: var(--sz-text-2);
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--sz-shadow-sm);
}
.sz-chip i { font-size: 1rem; color: var(--sz-accent); }
.sz-chip strong { color: var(--sz-text); font-weight: 600; }

.sz-chip-live { color: var(--sz-text); }
.sz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sz-green);
    box-shadow: 0 0 0 4px rgba(52, 217, 72, .16);
    animation: sz-pulse 2.2s ease-in-out infinite;
}
@keyframes sz-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 217, 72, .16); }
    50% { box-shadow: 0 0 0 7px rgba(52, 217, 72, .04); }
}

.sz-badge-tester {
    background: rgba(255, 122, 25, .12);
    border-color: rgba(255, 122, 25, .3);
    color: var(--sz-orange);
}
.sz-badge-tester i { color: var(--sz-orange); }

/* --------------------------------------------------------------------------
   7. Topbar
   -------------------------------------------------------------------------- */
.navbar-custom {
    background: var(--ct-topbar-bg);
    border-bottom: 1px solid var(--sz-line);
    box-shadow: none;
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
}
.topbar { height: var(--ct-topbar-height, 70px); }

.logo-topbar .logo-lg img { max-height: 30px; width: auto; }

.button-toggle-menu,
.navbar-toggle {
    border: 1px solid var(--sz-line);
    background: var(--sz-surface);
    color: var(--sz-text-2);
    border-radius: var(--sz-r-sm);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all .18s ease;
}
.button-toggle-menu:hover,
.navbar-toggle:hover {
    color: var(--sz-accent);
    border-color: rgba(var(--sz-accent-rgb), .45);
    background: var(--sz-hover);
}

.topbar-menu > li > .nav-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sz-r-sm);
    color: var(--ct-topbar-item-color);
    border: 1px solid transparent;
    transition: all .18s ease;
}
.topbar-menu > li > .nav-link:hover {
    background: var(--sz-hover);
    border-color: var(--sz-line);
    color: var(--sz-accent);
}
.topbar-menu .font-22 { font-size: 1.2rem; }

.topbar-menu .nav-user {
    width: auto;
    padding-inline: var(--sz-s3) !important;
    gap: var(--sz-s2);
    border: 1px solid var(--sz-line);
    background: var(--ct-topbar-user-bg);
}
.topbar-menu .nav-user h5 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--sz-text);
    margin: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* avatar mark of the signed in admin */
.sz-user-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sz-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--sz-font-display);
    flex: 0 0 auto;
}

.dropdown-menu {
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r);
    box-shadow: var(--sz-shadow-lg);
    padding: var(--sz-s2);
    background: var(--ct-dropdown-bg);
}
.dropdown-menu .dropdown-item {
    border-radius: var(--sz-r-xs);
    padding: var(--sz-s2) var(--sz-s3);
    font-size: .875rem;
    font-weight: 500;
    color: var(--sz-text-2);
    display: flex;
    align-items: center;
    gap: var(--sz-s2);
    transition: all .15s ease;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--sz-grad-soft);
    color: var(--sz-text);
}
.dropdown-menu .dropdown-item i { color: var(--sz-accent); font-size: 1rem; }

/* --------------------------------------------------------------------------
   8. Sidebar
   -------------------------------------------------------------------------- */
.leftside-menu {
    /* the width (and its condensed / hover variants) stays owned by the vendor
       theme: --ct-leftbar-width is what .content-page uses as its left margin,
       so overriding the width here would desynchronise the two. */
    border-right: 1px solid var(--sz-nav-line);
    box-shadow: none;
}
.leftside-menu .logo {
    background: var(--ct-menu-bg);
    border-bottom: 1px solid var(--sz-nav-line);
    height: var(--ct-topbar-height, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.leftside-menu .logo img { max-height: 30px; width: auto; }
.leftside-menu .logo .logo-sm img { max-height: 22px; max-width: 54px; }

.button-sm-hover,
.button-close-fullsidebar { color: var(--sz-nav-text); }
.button-sm-hover:hover,
.button-close-fullsidebar:hover { color: var(--sz-nav-text-strong); }

.side-nav { padding: var(--sz-s4) var(--sz-s3) var(--sz-s7); }

.side-nav-title {
    font-family: var(--sz-font);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sz-nav-title);
    padding: var(--sz-s5) var(--sz-s3) var(--sz-s2);
    margin: 0;
}
.side-nav > .side-nav-title:first-child { padding-top: var(--sz-s1); }

.side-nav-item { margin-bottom: 2px; }

.side-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sz-s3);
    padding: 10px var(--sz-s3);
    border-radius: var(--sz-r-sm);
    color: var(--sz-nav-text);
    font-size: .9rem;
    font-weight: 500;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.side-nav-link > i:first-child {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex: 0 0 auto;
    opacity: .9;
    transition: color .16s ease, opacity .16s ease;
}
.side-nav-link > span:not(.badge) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.side-nav-link:hover {
    background: var(--sz-nav-hover);
    color: var(--sz-nav-text-strong);
}
.side-nav-link:hover > i:first-child { color: var(--sz-pink); opacity: 1; }

.side-nav-link .badge {
    flex: 0 0 auto;
    margin-left: auto;
    border-radius: var(--sz-r-pill);
    font-size: .68rem;
    font-weight: 700;
    padding: .28em .6em;
    background: var(--sz-grad) !important;
    color: #fff;
    box-shadow: 0 4px 12px -6px rgba(var(--sz-accent-rgb), .9);
}

/* active item: gradient wash + gradient rail + brand icon */
.side-nav-item.menuitem-active > .side-nav-link {
    background: var(--sz-nav-active-bg);
    color: var(--sz-nav-text-strong);
    font-weight: 600;
}
.side-nav-item.menuitem-active > .side-nav-link::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    border-radius: var(--sz-r-pill);
    background: var(--sz-grad-45);
}
.side-nav-item.menuitem-active > .side-nav-link > i:first-child {
    color: var(--sz-pink);
    opacity: 1;
}

/* submenu (kept working for any future nested item) */
.side-nav-link[data-bs-toggle="collapse"]::after {
    content: "\ea6e";
    font-family: 'remixicon';
    font-size: 1rem;
    margin-left: auto;
    transition: transform .2s ease;
}
.side-nav-link[aria-expanded="true"]::after { transform: rotate(90deg); }

/* condensed / hover rail: keep the icons centred and readable */
html[data-sidenav-size="condensed"] .side-nav-link,
html[data-sidenav-size="sm-hover"] .side-nav-link { justify-content: center; }
html[data-sidenav-size="condensed"] .side-nav-link > i:first-child,
html[data-sidenav-size="sm-hover"] .side-nav-link > i:first-child { width: auto; }

/* In the icon-only rail a text section title would overflow the 70px column:
   it becomes a thin divider instead. */
html[data-sidenav-size="condensed"] .side-nav-title {
    font-size: 0;
    padding: var(--sz-s3) 0;
    line-height: 0;
}
html[data-sidenav-size="condensed"] .side-nav-title::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 var(--sz-s4);
    background: var(--sz-nav-line);
}

.side-nav-link .sz-nav-badge-count { font-family: var(--sz-font); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--sz-surface);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-lg);
    box-shadow: var(--sz-shadow-sm);
    margin-bottom: var(--sz-s5);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--sz-shadow); }

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--sz-line);
    padding: var(--sz-s4) var(--sz-s5);
    border-radius: var(--sz-r-lg) var(--sz-r-lg) 0 0;
    min-height: 62px;
}
.card-header:first-child { border-radius: var(--sz-r-lg) var(--sz-r-lg) 0 0; }
.card-header.border-bottom { border-bottom: 1px solid var(--sz-line) !important; }

.card-title, .header-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sz-text);
    margin: 0;
    letter-spacing: -.01em;
}
.card-body { padding: var(--sz-s5); }
.card-footer {
    background: transparent;
    border-top: 1px solid var(--sz-line);
    padding: var(--sz-s3) var(--sz-s5);
}

/* section heading inside a card body */
.sz-section-title {
    display: flex;
    align-items: center;
    gap: var(--sz-s2);
    font-family: var(--sz-font);
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--sz-text-3);
    margin: 0 0 var(--sz-s3);
}
.sz-section-title i { color: var(--sz-accent); font-size: .95rem; }

/* --------------------------------------------------------------------------
   10. KPI cards
   -------------------------------------------------------------------------- */
.sz-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: var(--sz-s4);
    margin-bottom: var(--sz-s5);
}

.sz-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sz-s3);
    padding: var(--sz-s5);
    background: var(--sz-surface);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-lg);
    box-shadow: var(--sz-shadow-sm);
    overflow: hidden;
    height: 100%;
    min-height: 148px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sz-kpi::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--sz-grad);
    opacity: 0;
    transition: opacity .2s ease;
}
.sz-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--sz-shadow);
    border-color: rgba(var(--sz-accent-rgb), .35);
}
.sz-kpi:hover::after { opacity: 1; }

.sz-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sz-s3);
}

.sz-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--sz-r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--sz-grad-soft);
    color: var(--sz-accent);
    flex: 0 0 auto;
}
.sz-kpi-icon.is-blue { background: rgba(62, 139, 255, .14); color: var(--sz-blue); }
.sz-kpi-icon.is-green { background: rgba(52, 217, 72, .14); color: var(--sz-green-deep); }
.sz-kpi-icon.is-red { background: rgba(255, 87, 81, .14); color: var(--sz-red); }
.sz-kpi-icon.is-orange { background: rgba(255, 122, 25, .14); color: var(--sz-orange); }
.sz-kpi-icon.is-cyan { background: rgba(44, 195, 255, .16); color: #0E9CCB; }
.sz-kpi-icon.is-brand {
    background: var(--sz-grad-45);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(var(--sz-accent-rgb), .9);
}

.sz-kpi-label {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sz-text-3);
    margin: 0 0 var(--sz-s1);
}

.sz-kpi-value {
    font-family: var(--sz-font-display);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.15;
    color: var(--sz-text);
    margin: 0;
    letter-spacing: -.03em;
    word-break: break-word;
}
.sz-kpi-value .sz-unit {
    font-family: var(--sz-font);
    font-size: .82rem;
    font-weight: 500;
    color: var(--sz-text-2);
    letter-spacing: 0;
    margin-left: 4px;
}

.sz-kpi-foot {
    display: flex;
    align-items: center;
    gap: var(--sz-s2);
    flex-wrap: wrap;
    margin-top: auto;
}

.sz-kpi-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* tiny stat pills inside a KPI card */
.sz-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--sz-r-pill);
    background: var(--sz-raised);
    border: 1px solid var(--sz-line);
    font-size: .74rem;
    color: var(--sz-text-2);
    white-space: nowrap;
}
.sz-stat b { font-weight: 600; color: var(--sz-text); font-size: .8rem; }
.sz-stat.is-green b { color: var(--sz-green-deep); }
.sz-stat.is-red b { color: var(--sz-red); }
.sz-stat.is-orange b { color: var(--sz-orange); }
.sz-stat.is-brand b { color: var(--sz-accent); }
[data-bs-theme="dark"] .sz-stat.is-green b { color: var(--sz-green); }
[data-bs-theme="dark"] .sz-stat.is-cyan b { color: var(--sz-cyan); }

.sz-delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--sz-r-pill);
}
.sz-delta.is-up { background: rgba(52, 217, 72, .13); color: var(--sz-green-deep); }
.sz-delta.is-down { background: rgba(255, 87, 81, .13); color: var(--sz-red); }
.sz-delta.is-flat { background: var(--sz-raised); color: var(--sz-text-3); }
[data-bs-theme="dark"] .sz-delta.is-up { color: var(--sz-green); }

/* --------------------------------------------------------------------------
   11. Chart cards
   -------------------------------------------------------------------------- */
.sz-chart-card { height: 100%; display: flex; flex-direction: column; }
.sz-chart-card .card-body { flex: 1 1 auto; }

.sz-chart-head {
    display: flex;
    align-items: center;
    gap: var(--sz-s3);
    flex-wrap: wrap;
}
.sz-chart-head .sz-chart-sub {
    font-size: .78rem;
    color: var(--sz-text-3);
    margin: 2px 0 0;
    font-weight: 400;
}
.sz-chart-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sz-s2); }

.sz-chart {
    width: 100%;
    min-height: 260px;
}
.sz-chart.is-sm { min-height: 210px; }
.sz-chart.is-lg { min-height: 330px; }

/* ApexCharts polish */
.apexcharts-canvas { font-family: var(--sz-font) !important; }
.apexcharts-tooltip {
    background: var(--sz-surface) !important;
    border: 1px solid var(--sz-line) !important;
    border-radius: var(--sz-r-sm) !important;
    box-shadow: var(--sz-shadow-lg) !important;
    color: var(--sz-text) !important;
    font-family: var(--sz-font) !important;
}
.apexcharts-tooltip-title {
    background: var(--sz-raised) !important;
    border-bottom: 1px solid var(--sz-line) !important;
    font-weight: 600 !important;
    font-family: var(--sz-font) !important;
}
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
    background: var(--sz-surface) !important;
    border: 1px solid var(--sz-line) !important;
    color: var(--sz-text) !important;
    border-radius: var(--sz-r-xs) !important;
}
.apexcharts-legend-text { color: var(--sz-text-2) !important; font-family: var(--sz-font) !important; }
.apexcharts-menu {
    background: var(--sz-surface) !important;
    border: 1px solid var(--sz-line) !important;
    border-radius: var(--sz-r-sm) !important;
    box-shadow: var(--sz-shadow-lg) !important;
}
.apexcharts-menu-item:hover { background: var(--sz-hover) !important; }
.apexcharts-gridline { stroke: var(--sz-line) !important; }

.sz-empty-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sz-s2);
    min-height: 220px;
    color: var(--sz-text-3);
    font-size: .875rem;
    text-align: center;
}
.sz-empty-chart i { font-size: 2rem; opacity: .5; }

/* --------------------------------------------------------------------------
   12. Ranked lists (countries / cities / creators / hashtags / reasons)
   -------------------------------------------------------------------------- */
.sz-rank-list { display: flex; flex-direction: column; gap: var(--sz-s3); }

.sz-rank-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sz-s3);
}

.sz-rank-pos {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 700;
    background: var(--sz-raised);
    border: 1px solid var(--sz-line);
    color: var(--sz-text-2);
}
.sz-rank-row:nth-child(1) .sz-rank-pos { background: var(--sz-grad-45); border-color: transparent; color: #fff; }
.sz-rank-row:nth-child(2) .sz-rank-pos { background: rgba(var(--sz-accent-rgb), .18); border-color: transparent; color: var(--sz-accent); }
.sz-rank-row:nth-child(3) .sz-rank-pos { background: rgba(44, 195, 255, .18); border-color: transparent; color: #0E9CCB; }

.sz-rank-main { min-width: 0; }

.sz-rank-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sz-s3);
    font-size: .875rem;
}
.sz-rank-name {
    color: var(--sz-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sz-rank-sub { font-size: .74rem; color: var(--sz-text-3); }
.sz-rank-value {
    font-family: var(--sz-font-display);
    font-size: .82rem;
    font-weight: 600;
    color: var(--sz-text);
    white-space: nowrap;
}

.sz-bar {
    height: 6px;
    border-radius: var(--sz-r-pill);
    background: var(--sz-raised);
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid var(--sz-line);
}
.sz-bar > span {
    display: block;
    height: 100%;
    border-radius: var(--sz-r-pill);
    background: var(--sz-grad-45);
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.sz-bar.is-blue > span { background: linear-gradient(90deg, #7DB4FF, #3E8BFF); }
.sz-bar.is-green > span { background: linear-gradient(90deg, #6FE97F, #009821); }
.sz-bar.is-orange > span { background: linear-gradient(90deg, #FFB067, #FF7A19); }
.sz-bar.is-red > span { background: linear-gradient(90deg, #FF9A96, #FF5751); }
.sz-bar.is-cyan > span { background: linear-gradient(90deg, #7FDCFF, #2CC3FF); }

.sz-rank-flag { font-size: 1rem; line-height: 1; }

.sz-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sz-line);
    background: var(--sz-raised);
    flex: 0 0 auto;
}
.sz-avatar-lg { width: 42px; height: 42px; }

.sz-verified { color: var(--sz-blue); font-size: .95rem; }

/* Generic list rows (moderation reasons, quick facts) */
.sz-facts { display: flex; flex-direction: column; gap: var(--sz-s2); }
.sz-fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sz-s3);
    padding: 10px var(--sz-s3);
    border-radius: var(--sz-r-sm);
    background: var(--sz-raised);
    border: 1px solid var(--sz-line);
    font-size: .875rem;
}
.sz-fact > span:first-child { color: var(--sz-text-2); min-width: 0; }
.sz-fact > span:last-child { color: var(--sz-text); font-weight: 600; font-family: var(--sz-font-display); font-size: .84rem; }

/* --------------------------------------------------------------------------
   13. Buttons
   -------------------------------------------------------------------------- */
.btn {
    --ct-btn-border-radius: var(--sz-r-sm);
    border-radius: var(--sz-r-sm);
    font-weight: 500;
    font-size: .875rem;
    padding: .5rem 1rem;
    transition: all .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sz-s2);
}
.btn:focus-visible { box-shadow: 0 0 0 3px var(--sz-ring); outline: none; }
.btn i { font-size: 1.05rem; line-height: 1; }

.btn-primary {
    background: var(--sz-grad-45);
    border: none;
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(var(--sz-accent-rgb), .95);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--sz-grad);
    color: #fff;
    filter: saturate(115%);
    box-shadow: 0 12px 26px -12px rgba(var(--sz-accent-rgb), 1);
}
.btn-primary.disabled, .btn-primary:disabled { opacity: .55; box-shadow: none; }

.btn-secondary { background: var(--sz-raised); border-color: var(--sz-line); color: var(--sz-text); }
.btn-secondary:hover { background: var(--sz-hover); border-color: var(--sz-line-strong); color: var(--sz-text); }

.btn-light { background: var(--sz-raised); border-color: var(--sz-line); color: var(--sz-text-2); }
.btn-light:hover { background: var(--sz-hover); color: var(--sz-text); border-color: var(--sz-line-strong); }

.btn-dark { background: #15161A; border-color: #15161A; color: #fff; }
.btn-dark:hover { background: #23262F; border-color: #23262F; }

.btn-outline-primary { color: var(--sz-accent); border-color: rgba(var(--sz-accent-rgb), .45); background: transparent; }
.btn-outline-primary:hover { background: var(--sz-accent); border-color: var(--sz-accent); color: #fff; }

.btn-outline-secondary { color: var(--sz-text-2); border-color: var(--sz-line-strong); }
.btn-outline-secondary:hover { background: var(--sz-hover); color: var(--sz-text); border-color: var(--sz-line-strong); }

.btn-outline-danger { color: var(--sz-red); border-color: rgba(255, 87, 81, .4); }
.btn-outline-danger:hover { background: var(--sz-red); border-color: var(--sz-red); color: #fff; }

.btn-outline-success { color: var(--sz-green-deep); border-color: rgba(52, 217, 72, .5); }
.btn-outline-success:hover { background: var(--sz-green-deep); border-color: var(--sz-green-deep); color: #fff; }

.btn-success { background: linear-gradient(135deg, #4BDD5E, #009821); border: none; color: #fff; }
.btn-success:hover { filter: saturate(115%); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #FF7C77, #E63A34); border: none; color: #fff; }
.btn-danger:hover { filter: saturate(115%); color: #fff; }
.btn-info { background: linear-gradient(135deg, #62D2FF, #0E9CCB); border: none; color: #fff; }
.btn-warning { background: linear-gradient(135deg, #FFC98B, #FF7A19); border: none; color: #fff; }

.btn-soft-primary { background: rgba(var(--sz-accent-rgb), .12); color: var(--sz-accent); border-color: transparent; }
.btn-soft-primary:hover, .btn-check:checked + .btn-soft-primary {
    background: var(--sz-accent);
    color: #fff;
    border-color: var(--sz-accent);
}
.btn-soft-danger { background: rgba(255, 87, 81, .12); color: var(--sz-red); border-color: transparent; }
.btn-soft-danger:hover { background: var(--sz-red); color: #fff; }
.btn-soft-success { background: rgba(52, 217, 72, .14); color: var(--sz-green-deep); border-color: transparent; }
.btn-soft-success:hover { background: var(--sz-green-deep); color: #fff; }
.btn-soft-info { background: rgba(44, 195, 255, .14); color: #0E9CCB; border-color: transparent; }
.btn-soft-info:hover { background: #0E9CCB; color: #fff; }
.btn-soft-warning { background: rgba(255, 122, 25, .14); color: var(--sz-orange); border-color: transparent; }
.btn-soft-warning:hover { background: var(--sz-orange); color: #fff; }
.btn-soft-secondary { background: var(--sz-raised); color: var(--sz-text-2); border-color: transparent; }
.btn-soft-secondary:hover { background: var(--sz-line-strong); color: var(--sz-text); }

.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: 9px; }
.btn-lg { padding: .7rem 1.4rem; font-size: 1rem; border-radius: var(--sz-r); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

/* action buttons inside DataTables */
.action-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 9px !important;
    border-color: var(--sz-line) !important;
    background: var(--sz-surface);
    transition: all .16s ease;
}
.action-btn:hover { transform: translateY(-1px); box-shadow: var(--sz-shadow-sm); background: var(--sz-hover); }

/* --------------------------------------------------------------------------
   14. Badges
   -------------------------------------------------------------------------- */
.badge {
    --ct-badge-border-radius: var(--sz-r-pill);
    border-radius: var(--sz-r-pill);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .01em;
    padding: .38em .7em;
    border: 1px solid transparent;
}
.badge.bg-primary { background: var(--sz-grad-45) !important; color: #fff; }
.badge.bg-danger { background: rgba(255, 87, 81, .15) !important; color: var(--sz-red); }
.badge.bg-success { background: rgba(52, 217, 72, .16) !important; color: var(--sz-green-deep); }
.badge.bg-warning { background: rgba(255, 122, 25, .16) !important; color: var(--sz-orange); }
.badge.bg-info { background: rgba(44, 195, 255, .16) !important; color: #0E9CCB; }
.badge.bg-secondary { background: var(--sz-raised) !important; color: var(--sz-text-2); }
[data-bs-theme="dark"] .badge.bg-success { color: var(--sz-green); }
[data-bs-theme="dark"] .badge.bg-info { color: var(--sz-cyan); }

.badge.bg-primary-lighten { background: rgba(var(--sz-accent-rgb), .13) !important; color: var(--sz-accent); }
.badge.bg-success-lighten { background: rgba(52, 217, 72, .14) !important; color: var(--sz-green-deep); }
.badge.bg-danger-lighten { background: rgba(255, 87, 81, .14) !important; color: var(--sz-red); }
.badge.badge-info-lighten { background: rgba(44, 195, 255, .16) !important; color: #0E9CCB; }
.badge.bg-warning-lighten { background: rgba(255, 122, 25, .16) !important; color: var(--sz-orange); }
.badge.bg-light { background: var(--sz-raised) !important; color: var(--sz-text-2); border-color: var(--sz-line); }
[data-bs-theme="dark"] .badge.bg-success-lighten { color: var(--sz-green); }
[data-bs-theme="dark"] .badge.badge-info-lighten { color: var(--sz-cyan); }

.w-h-30 { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form-label, label {
    font-size: .84rem;
    font-weight: 500;
    color: var(--sz-text-2);
    margin-bottom: var(--sz-s2);
}
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: var(--ct-input-bg);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    color: var(--sz-text);
    font-size: .9rem;
    padding: .55rem .85rem;
    min-height: 42px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-control::placeholder { color: var(--sz-text-3); }
.form-control:focus,
.form-select:focus {
    background-color: var(--ct-input-bg);
    border-color: rgba(var(--sz-accent-rgb), .65);
    box-shadow: 0 0 0 3px var(--sz-ring);
    color: var(--sz-text);
}
.form-control:disabled, .form-control[readonly], .form-select:disabled {
    background: var(--sz-raised);
    color: var(--sz-text-3);
    cursor: not-allowed;
}
textarea.form-control { min-height: 110px; }

.form-text, .help-block { color: var(--sz-text-3); font-size: .8rem; }

.input-group-text {
    background: var(--sz-raised);
    border: 1px solid var(--sz-line);
    color: var(--sz-text-2);
    border-radius: var(--sz-r-sm);
    font-size: .85rem;
}
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* switches */
.form-check-input {
    width: 2.4em;
    height: 1.25em;
    margin-top: .18em;
    background-color: var(--sz-raised);
    border: 1px solid var(--sz-line-strong);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.form-check-input:checked {
    background-color: var(--sz-accent);
    border-color: var(--sz-accent);
    background-image: var(--ct-form-check-bg-image);
}
.form-check-input:focus { box-shadow: 0 0 0 3px var(--sz-ring); border-color: var(--sz-accent); }
.form-check-input[type="radio"] { width: 1.05em; height: 1.05em; }

/* checkbox/radio cards used by the theme settings panel */
.card-radio .form-check-label {
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    overflow: hidden;
    transition: all .16s ease;
}
.card-radio:hover .form-check-label { border-color: rgba(var(--sz-accent-rgb), .5); }
.card-radio .form-check-input:checked ~ .form-check-label {
    border-color: var(--sz-accent);
    box-shadow: 0 0 0 3px var(--sz-ring);
}

/* select2 */
.select2-container--default .select2-selection--single { height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: var(--sz-text);
    padding-left: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.select2-dropdown {
    background: var(--sz-surface);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    box-shadow: var(--sz-shadow-lg);
    overflow: hidden;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--sz-accent); }
.select2-container--default .select2-results__option[aria-selected="true"] { background: var(--sz-raised); color: var(--sz-text); }
.select2-search--dropdown .select2-search__field {
    background: var(--ct-input-bg);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-xs);
    color: var(--sz-text);
}

/* datepickers / timepickers */
.datepicker, .flatpickr-calendar {
    background: var(--sz-surface);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r);
    box-shadow: var(--sz-shadow-lg);
    color: var(--sz-text);
}
.datepicker table tr td.active, .flatpickr-day.selected {
    background: var(--sz-accent) !important;
    border-color: var(--sz-accent) !important;
}
.datepicker table tr td.today { background: rgba(var(--sz-accent-rgb), .16); }
.flatpickr-day { color: var(--sz-text); }
.flatpickr-day:hover { background: var(--sz-raised); border-color: var(--sz-line); }
.flatpickr-months .flatpickr-month, .flatpickr-weekdays, .flatpickr-weekday { color: var(--sz-text-2); fill: var(--sz-text-2); }

/* dropzone */
.dropzone {
    border: 2px dashed var(--sz-line-strong);
    border-radius: var(--sz-r);
    background: var(--sz-raised);
    min-height: 140px;
    padding: var(--sz-s5);
    transition: all .18s ease;
}
.dropzone:hover, .dropzone.dz-drag-hover {
    border-color: var(--sz-accent);
    background: var(--sz-grad-soft);
}
.dropzone .dz-message { color: var(--sz-text-2); font-weight: 500; }
.dropzone .dz-preview .dz-progress { background: var(--sz-line); }
.dropzone .dz-preview .dz-progress .dz-upload { background: var(--sz-grad-45); }
.dz-preview .dz-error-message { background: var(--sz-red); border-radius: var(--sz-r-xs); }
.dz-preview .dz-success-mark, .dz-preview .dz-error-mark { border-radius: 50%; }

/* quill */
.ql-toolbar.ql-snow, .ql-container.ql-snow {
    border-color: var(--sz-line) !important;
    background: var(--sz-surface);
    color: var(--sz-text);
}
.ql-toolbar.ql-snow { border-radius: var(--sz-r-sm) var(--sz-r-sm) 0 0; }
.ql-container.ql-snow { border-radius: 0 0 var(--sz-r-sm) var(--sz-r-sm); font-family: var(--sz-font); font-size: .9rem; }
.ql-snow .ql-stroke { stroke: var(--sz-text-2); }
.ql-snow .ql-fill { fill: var(--sz-text-2); }
.ql-snow .ql-picker { color: var(--sz-text-2); }

/* --------------------------------------------------------------------------
   16. Nav pills / tabs
   -------------------------------------------------------------------------- */
.nav-pills {
    background: var(--sz-raised);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-pill);
    padding: 4px;
    gap: 2px;
    display: inline-flex;
    flex-wrap: wrap;
}
.nav-pills .nav-link {
    border-radius: var(--sz-r-pill);
    color: var(--sz-text-2);
    font-size: .84rem;
    font-weight: 500;
    padding: .4rem .95rem;
    border: 1px solid transparent;
    transition: all .16s ease;
}
.nav-pills .nav-link:hover { color: var(--sz-text); background: var(--sz-hover); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background: var(--sz-grad-45);
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(var(--sz-accent-rgb), .95);
}
/* vertical settings rail */
#v-pills-tab.flex-column {
    display: flex !important;
    border-radius: var(--sz-r);
    background: transparent;
    border: none;
    padding: 0;
    gap: 3px;
    width: 100%;
}
#v-pills-tab.flex-column .nav-link {
    border-radius: var(--sz-r-sm);
    text-align: left;
    justify-content: flex-start;
    padding: .6rem .85rem;
}
#v-pills-tab.flex-column .nav-link.active { background: var(--sz-grad-45); color: #fff; }

.nav-tabs { border-bottom: 1px solid var(--sz-line); }
.nav-tabs .nav-link { color: var(--sz-text-2); border: none; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--sz-accent); background: transparent; border-bottom-color: var(--sz-accent); }

/* --------------------------------------------------------------------------
   17. Tables / DataTables
   -------------------------------------------------------------------------- */
.table-responsive { border-radius: var(--sz-r); }

.table {
    --ct-table-border-color: var(--sz-line);
    color: var(--sz-text);
    margin-bottom: 0;
    vertical-align: middle;
    border-color: var(--sz-line);
}
.table > :not(caption) > * > * { padding: .85rem .9rem; border-bottom-color: var(--sz-line); }
.table > thead {
    background: var(--sz-raised);
}
.table > thead th,
.table thead.table-light th {
    background: var(--sz-raised) !important;
    color: var(--sz-text-3) !important;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--sz-line) !important;
    white-space: nowrap;
}
.table > tbody tr { transition: background .14s ease; }
.table-hover > tbody > tr:hover > * { background: var(--sz-hover); }
.table > tbody > tr > td { border-bottom: 1px solid var(--sz-line); }
.table > tbody > tr:last-child > td { border-bottom: none; }
.table a { color: var(--sz-text); }
.table a:hover { color: var(--sz-accent); }
.table h4, .table h5 { font-family: var(--sz-font); }
.table h5 { font-size: .9rem; font-weight: 600; margin: 0; }
.table .text-muted { color: var(--sz-text-3) !important; }

/* DataTable chrome */
.dataTables_wrapper { padding-top: var(--sz-s1); }
.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
    align-items: center;
    margin-bottom: var(--sz-s3);
    gap: var(--sz-s3) 0;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { display: flex; align-items: center; gap: var(--sz-s2); }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: var(--sz-s2);
    margin: 0;
    font-size: .84rem;
    color: var(--sz-text-3);
    white-space: nowrap;
}
.dataTables_wrapper .dataTables_filter input {
    background: var(--ct-input-bg);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    color: var(--sz-text);
    padding: .45rem .8rem;
    min-width: 220px;
    font-size: .875rem;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: rgba(var(--sz-accent-rgb), .65);
    box-shadow: 0 0 0 3px var(--sz-ring);
    outline: none;
}
.dataTables_wrapper .dataTables_length select {
    background: var(--ct-input-bg);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    color: var(--sz-text);
    padding: .4rem 1.8rem .4rem .7rem;
    font-size: .875rem;
}
.dataTables_wrapper .dataTables_info {
    color: var(--sz-text-3) !important;
    font-size: .82rem;
    padding-top: var(--sz-s3) !important;
}
.dataTables_wrapper .dataTables_processing {
    background: var(--sz-surface);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    box-shadow: var(--sz-shadow);
    color: var(--sz-text-2);
    font-size: .85rem;
    padding: var(--sz-s3) var(--sz-s5) !important;
    height: auto !important;
    margin-top: 0 !important;
}

.pagination { gap: 4px; margin-bottom: 0; }
.pagination-rounded .page-link,
.page-link {
    border: 1px solid var(--sz-line);
    background: var(--sz-surface);
    color: var(--sz-text-2);
    border-radius: var(--sz-r-xs) !important;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .84rem;
    font-weight: 500;
    transition: all .15s ease;
}
.page-link:hover { background: var(--sz-hover); color: var(--sz-text); border-color: var(--sz-line-strong); }
.page-item.active .page-link {
    background: var(--sz-grad-45);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(var(--sz-accent-rgb), .95);
}
.page-item.disabled .page-link { background: var(--sz-raised); color: var(--sz-text-3); }

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: var(--sz-accent);
    border-radius: 50%;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   18. Modals / offcanvas
   -------------------------------------------------------------------------- */
.modal-content {
    background: var(--ct-modal-bg);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-lg);
    box-shadow: var(--sz-shadow-lg);
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid var(--sz-line);
    padding: var(--sz-s4) var(--sz-s5);
    background: transparent;
}
.modal-title { font-size: 1rem; font-weight: 600; color: var(--sz-text); }
.modal-body { padding: var(--sz-s5); }
.modal-footer { border-top: 1px solid var(--sz-line); padding: var(--sz-s3) var(--sz-s5); gap: var(--sz-s2); }
.modal .btn-close, .offcanvas .btn-close { opacity: .6; }
.modal .btn-close:hover, .offcanvas .btn-close:hover { opacity: 1; }
.modal-backdrop.show { opacity: .55; }

.modal-body video, .modal-body img.sz-media {
    max-width: 100%;
    border-radius: var(--sz-r);
    background: #000;
}
.itemDescription {
    background: var(--sz-raised);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-sm);
    padding: var(--sz-s3);
    color: var(--sz-text-2);
    font-size: .875rem;
    max-height: 160px;
    overflow: auto;
}

.offcanvas {
    background: var(--ct-offcanvas-bg);
    border-left: 1px solid var(--sz-line);
    box-shadow: var(--sz-shadow-lg);
}
.offcanvas-header.bg-primary { background: var(--sz-grad-45) !important; }
.offcanvas-header h5 { font-family: var(--sz-font); font-weight: 600; }
.offcanvas .card { border: none; box-shadow: none; background: transparent; }
.offcanvas-body h5.font-16 { font-size: .95rem !important; }
.offcanvas-footer { background: var(--sz-raised); }
#theme-settings-offcanvas .avatar-md { border-radius: var(--sz-r-sm); }

/* --------------------------------------------------------------------------
   19. Toasts / SweetAlert
   -------------------------------------------------------------------------- */
.jq-toast-single {
    font-family: var(--sz-font) !important;
    border-radius: var(--sz-r) !important;
    box-shadow: var(--sz-shadow-lg) !important;
    font-size: .875rem !important;
}
.jq-toast-single h2 { font-family: var(--sz-font) !important; font-size: .8rem !important; letter-spacing: .06em; }
.jq-toast-wrap { z-index: 1090; }

.swal2-popup {
    font-family: var(--sz-font) !important;
    background: var(--sz-surface) !important;
    color: var(--sz-text) !important;
    border: 1px solid var(--sz-line) !important;
    border-radius: var(--sz-r-lg) !important;
    box-shadow: var(--sz-shadow-lg) !important;
}
.swal2-title { font-family: var(--sz-font) !important; font-weight: 600 !important; color: var(--sz-text) !important; font-size: 1.15rem !important; }
.swal2-html-container { color: var(--sz-text-2) !important; font-size: .9rem !important; }
.swal2-confirm { border-radius: var(--sz-r-sm) !important; font-weight: 500 !important; }
.swal2-deny, .swal2-cancel { border-radius: var(--sz-r-sm) !important; font-weight: 500 !important; }

/* --------------------------------------------------------------------------
   20. Spinner / misc vendor bits
   -------------------------------------------------------------------------- */
.spinner { display: none; }
.spinner.show { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.spinner.hide { display: none; }
.spinner-border { border-width: .18em; }

.tooltip-inner {
    background: #15161A;
    border-radius: var(--sz-r-xs);
    font-family: var(--sz-font);
    font-size: .8rem;
    padding: .35rem .6rem;
}
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before { border-top-color: #15161A; }

.accordion-item { background: var(--sz-surface); border-color: var(--sz-line); border-radius: var(--sz-r-sm); }
.accordion-button { background: transparent; color: var(--sz-text); font-weight: 500; }
.accordion-button:not(.collapsed) { background: var(--sz-grad-soft); color: var(--sz-text); box-shadow: none; }

.progress { background: var(--sz-raised); border-radius: var(--sz-r-pill); height: 8px; }
.progress-bar { background: var(--sz-grad-45); }

.list-group-item { background: var(--sz-surface); border-color: var(--sz-line); color: var(--sz-text-2); }

.sz-divider { height: 1px; background: var(--sz-line); margin: var(--sz-s5) 0; border: 0; }

.sz-muted { color: var(--sz-text-3); }
.sz-text-2 { color: var(--sz-text-2); }
.sz-mono { font-family: var(--sz-font-display); letter-spacing: -.02em; }
.sz-gradient-text {
    background: var(--sz-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* avatar/image helpers used by list pages */
.sz-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--sz-r-sm);
    object-fit: cover;
    border: 1px solid var(--sz-line);
    background: var(--sz-raised);
}
.sz-cell-user { display: flex; align-items: center; gap: var(--sz-s3); min-width: 0; }
.sz-cell-user .sz-cell-user-text { min-width: 0; }
.sz-cell-user .sz-cell-user-name {
    font-weight: 600;
    color: var(--sz-text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.sz-cell-user .sz-cell-user-meta { font-size: .76rem; color: var(--sz-text-3); }
.sz-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* disabled inputs of the read-only tester account */
#user_type[value="0"] ~ * .sz-write-only { opacity: .6; }

/* --------------------------------------------------------------------------
   21. Dark theme touch-ups on vendor components
   -------------------------------------------------------------------------- */
[data-bs-theme="dark"] .table > thead th,
[data-bs-theme="dark"] .table thead.table-light th { color: #8E96A5 !important; }

[data-bs-theme="dark"] .btn-light { background: var(--sz-raised); border-color: var(--sz-line); color: var(--sz-text-2); }
[data-bs-theme="dark"] .btn-light:hover { background: var(--sz-hover); color: var(--sz-text); }

[data-bs-theme="dark"] .text-muted { color: var(--sz-text-3) !important; }
[data-bs-theme="dark"] .bg-light { background: var(--sz-raised) !important; }
[data-bs-theme="dark"] .border { border-color: var(--sz-line) !important; }
[data-bs-theme="dark"] .swiper-button-next,
[data-bs-theme="dark"] .swiper-button-prev { color: var(--sz-text); }
[data-bs-theme="dark"] .swiper-pagination-bullet { background: var(--sz-text-3); }
[data-bs-theme="dark"] .swiper-pagination-bullet-active { background: var(--sz-accent); }

/* Keep the vendor warning/help alerts readable on the dark page */
[data-bs-theme="dark"] .alert-light { background: var(--sz-raised); border-color: var(--sz-line); color: var(--sz-text-2); }

/* --------------------------------------------------------------------------
   21b. Login / authentication page
   -------------------------------------------------------------------------- */
body.sz-auth {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sz-s6);
    background: var(--sz-page);
    position: relative;
    overflow-x: hidden;
}

.sz-auth-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(48rem 32rem at 12% -10%, rgba(217, 122, 203, .28), transparent 62%),
        radial-gradient(42rem 30rem at 88% 6%, rgba(183, 84, 249, .26), transparent 60%),
        radial-gradient(36rem 26rem at 50% 118%, rgba(195, 92, 254, .16), transparent 60%);
}

.sz-auth-wrap {
    position: relative;
    width: 100%;
    max-width: 430px;
}

.sz-auth-card {
    background: var(--sz-surface);
    border: 1px solid var(--sz-line);
    border-radius: var(--sz-r-xl);
    box-shadow: var(--sz-shadow-lg);
    padding: var(--sz-s7) var(--sz-s6) var(--sz-s5);
    position: relative;
    overflow: hidden;
}
.sz-auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--sz-grad);
}

.sz-auth-head { text-align: center; margin-bottom: var(--sz-s6); }

.sz-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-bottom: var(--sz-s4);
}
.sz-auth-logo img { max-height: 36px; width: auto; }
.sz-auth-logo .logo-dark { display: none; }
[data-bs-theme="dark"] .sz-auth-logo .logo-light { display: none; }
[data-bs-theme="dark"] .sz-auth-logo .logo-dark { display: block; }

.sz-auth-title {
    font-family: var(--sz-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 var(--sz-s1);
    color: var(--sz-text);
}
.sz-auth-sub {
    margin: 0;
    color: var(--sz-text-2);
    font-size: .875rem;
}

.sz-auth-form .input-group-text {
    background: var(--sz-raised);
    border-right: none;
    color: var(--sz-accent);
}
.sz-auth-form .input-group > .form-control { border-left: none; }
.sz-auth-form .input-group > .form-control:focus { border-left: none; }
.sz-auth-form .form-control::placeholder { color: var(--sz-text-3); }

.sz-auth-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sz-s3);
    margin-top: var(--sz-s5);
    padding-top: var(--sz-s4);
    border-top: 1px solid var(--sz-line);
    font-size: .78rem;
    color: var(--sz-text-3);
}

/* --------------------------------------------------------------------------
   22. Alerts that must not be missed (broken credentials, missing upgrade)

   Used by the dashboard banners. The block keeps the .card / .sz-muted design
   system, it only adds the colour accent of an error or a warning.
   -------------------------------------------------------------------------- */
.sz-alert-card {
    border-left: 4px solid var(--sz-red);
    background: linear-gradient(90deg, rgba(255, 87, 81, .06), transparent 55%);
}

.sz-alert-card.is-warning {
    border-left-color: var(--sz-orange);
    background: linear-gradient(90deg, rgba(255, 122, 25, .07), transparent 55%);
}

.sz-alert-card h5 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--sz-text);
}

.sz-alert-card .sz-muted {
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .sz-alert-card .sz-kpi-icon { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .sz-page-head { padding-top: var(--sz-s5); }
    .sz-kpi-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

@media (max-width: 767.98px) {
    .sz-page-title { font-size: 1.2rem; }
    .sz-page-head-side { width: 100%; }
    .sz-chip { height: 30px; font-size: .74rem; }
    .sz-kpi-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sz-s3); }
    .sz-kpi { padding: var(--sz-s4); min-height: 132px; }
    .sz-kpi-value { font-size: 1.3rem; }
    .sz-kpi-icon { width: 34px; height: 34px; font-size: 1.05rem; }
    .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100%; }
}

@media print {
    .leftside-menu, .navbar-custom, .sz-page-head-side { display: none !important; }
    .content-page { margin-left: 0 !important; }
}
