/* =========================================================
   DAILYWORKDESK GLOBAL STYLE SYSTEM
   ---------------------------------------------------------
   Global styles only.
   Page-specific CSS belongs inside that page's <head>.
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    /* Brand */
    --zx-orange: #ff6500;
    --zx-orange-dark: #e95600;
    --zx-gold: #ffae00;

    /* Light theme */
    --zx-bg: #fffaf2;
    --zx-bg-soft: #fff5e8;
    --zx-surface: #ffffff;
    --zx-surface-soft: #fffaf3;

    --zx-text: #1d1a17;
    --zx-text-soft: #403b35;
    --zx-muted: #716b63;

    --zx-border: #ece2d5;
    --zx-border-soft: #f3eadf;

    --zx-success: #1f9d68;
    --zx-warning: #d88b00;
    --zx-danger: #dc3f3f;
    --zx-info: #3778d8;

    /* Shadows */
    --zx-shadow-sm:
        0 4px 14px rgba(39, 29, 19, 0.06);

    --zx-shadow:
        0 12px 35px rgba(39, 29, 19, 0.08);

    --zx-shadow-lg:
        0 20px 55px rgba(39, 29, 19, 0.12);

    /* Radius */
    --zx-radius-xs: 6px;
    --zx-radius-sm: 10px;
    --zx-radius: 16px;
    --zx-radius-lg: 22px;
    --zx-radius-xl: 28px;

    /* Layout */
    --zx-content-max: 1600px;
    --zx-sidebar-width: 264px;
    --zx-sidebar-collapsed: 82px;
    --zx-mobile-nav-height: 72px;

    /* Typography */
    --zx-font:
        "DM Sans",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --zx-heading-font:
        "DM Sans",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    /* Motion */
    --zx-transition:
        180ms cubic-bezier(.2, .8, .2, 1);

    --zx-transition-slow:
        280ms cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   2. DARK THEME
   ========================================================= */

html[data-theme="dark"] {
    --zx-bg: #151310;
    --zx-bg-soft: #1d1915;

    --zx-surface: #211d19;
    --zx-surface-soft: #27221d;

    --zx-text: #f7f1e8;
    --zx-text-soft: #ddd3c7;
    --zx-muted: #a79b8d;

    --zx-border: #3a3128;
    --zx-border-soft: #302820;

    --zx-shadow-sm:
        0 4px 14px rgba(0, 0, 0, 0.18);

    --zx-shadow:
        0 12px 35px rgba(0, 0, 0, 0.24);

    --zx-shadow-lg:
        0 20px 55px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   3. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 88% 0%,
            rgba(255, 174, 0, 0.08),
            transparent 28%
        ),
        var(--zx-bg);

    color: var(--zx-text);

    font-family: var(--zx-font);
    font-size: 15px;
    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition:
        background var(--zx-transition-slow),
        color var(--zx-transition-slow);
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--zx-heading-font);
    color: var(--zx-text);
    line-height: 1.2;
}

p {
    margin: 0;
}


/* =========================================================
   4. GLOBAL SCROLLBAR
   ========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(113, 107, 99, 0.35) transparent;
}

*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(113, 107, 99, 0.35);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 101, 0, 0.65);
}


/* =========================================================
   5. GLOBAL PAGE LAYOUT
   ========================================================= */

.zx-page {
    width: 100%;
    min-height: 100vh;
}

.zx-container {
    width: min(
        calc(100% - 48px),
        var(--zx-content-max)
    );

    margin: 0 auto;
}

.zx-content {
    width: 100%;
}

.zx-page-content {
    min-width: 0;
}


/* =========================================================
   6. DESKTOP SIDEBAR SPACE
   ========================================================= */

body {
    --zx-current-sidebar-width: var(--zx-sidebar-width);
}


/* =========================================================
   7. COMMON PAGE HEADER
   ========================================================= */

.zx-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.zx-page-header-left {
    min-width: 0;
}

.zx-page-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.zx-page-subtitle {
    margin-top: 7px;

    color: var(--zx-muted);

    font-size: 14px;
    line-height: 1.6;
}

.zx-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* =========================================================
   8. COMMON GRID
   ========================================================= */

.zx-grid {
    display: grid;
    gap: 20px;
}

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

.zx-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zx-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   9. CARDS
   ========================================================= */

.zx-card {
    min-width: 0;

    background: var(--zx-surface);

    border: 1px solid var(--zx-border);

    border-radius: var(--zx-radius);

    box-shadow: var(--zx-shadow-sm);

    transition:
        transform var(--zx-transition),
        box-shadow var(--zx-transition),
        border-color var(--zx-transition),
        background var(--zx-transition);
}

.zx-card:hover {
    box-shadow: var(--zx-shadow);
}

.zx-card-padding {
    padding: 22px;
}

.zx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 20px 22px;

    border-bottom: 1px solid var(--zx-border);
}

.zx-card-title {
    font-size: 16px;
    font-weight: 800;
}

.zx-card-subtitle {
    margin-top: 4px;

    color: var(--zx-muted);
    font-size: 13px;
}


/* =========================================================
   10. STAT CARDS
   ========================================================= */

.zx-stat-card {
    padding: 20px;

    position: relative;
    overflow: hidden;
}

.zx-stat-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -35px;
    bottom: -45px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 101, 0, 0.13),
            transparent 68%
        );

    pointer-events: none;
}

.zx-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.zx-stat-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 101, 0, 0.14),
            rgba(255, 174, 0, 0.14)
        );

    color: var(--zx-orange);
}

.zx-stat-value {
    margin-top: 16px;

    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.zx-stat-label {
    margin-top: 3px;

    color: var(--zx-muted);
    font-size: 13px;
}


/* =========================================================
   11. BUTTONS
   ========================================================= */

.zx-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 16px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform var(--zx-transition),
        box-shadow var(--zx-transition),
        background var(--zx-transition),
        border-color var(--zx-transition),
        color var(--zx-transition);
}

.zx-btn:hover {
    transform: translateY(-1px);
}

.zx-btn:active {
    transform: translateY(0);
}

.zx-btn-primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--zx-orange),
            var(--zx-gold)
        );

    box-shadow:
        0 8px 20px rgba(255, 101, 0, 0.2);
}

.zx-btn-primary:hover {
    box-shadow:
        0 12px 25px rgba(255, 101, 0, 0.28);
}

.zx-btn-secondary {
    color: var(--zx-text);

    background: var(--zx-surface);
    border-color: var(--zx-border);
}

.zx-btn-secondary:hover {
    border-color: rgba(255, 101, 0, 0.4);
}

.zx-btn-danger {
    color: #fff;
    background: var(--zx-danger);
}

.zx-btn-ghost {
    color: var(--zx-muted);
    background: transparent;
}

.zx-btn-ghost:hover {
    color: var(--zx-orange);
    background: var(--zx-bg-soft);
}

.zx-btn-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.zx-btn-lg {
    min-height: 48px;
    padding: 0 20px;
}


/* =========================================================
   12. FORM ELEMENTS
   ========================================================= */

.zx-form-group {
    margin-bottom: 18px;
}

.zx-label {
    display: block;

    margin-bottom: 7px;

    color: var(--zx-text-soft);

    font-size: 13px;
    font-weight: 700;
}

.zx-input,
.zx-select,
.zx-textarea {
    width: 100%;

    min-height: 44px;

    padding: 10px 13px;

    color: var(--zx-text);
    background: var(--zx-surface);

    border: 1px solid var(--zx-border);
    border-radius: 10px;

    outline: none;

    transition:
        border-color var(--zx-transition),
        box-shadow var(--zx-transition),
        background var(--zx-transition);
}

.zx-textarea {
    min-height: 120px;
    resize: vertical;
}

.zx-input::placeholder,
.zx-textarea::placeholder {
    color: var(--zx-muted);
}

.zx-input:focus,
.zx-select:focus,
.zx-textarea:focus {
    border-color: var(--zx-orange);

    box-shadow:
        0 0 0 3px rgba(255, 101, 0, 0.11);
}


/* =========================================================
   13. BADGES
   ========================================================= */

.zx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 27px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.zx-badge-success {
    color: var(--zx-success);
    background: rgba(31, 157, 104, 0.11);
}

.zx-badge-warning {
    color: var(--zx-warning);
    background: rgba(216, 139, 0, 0.11);
}

.zx-badge-danger {
    color: var(--zx-danger);
    background: rgba(220, 63, 63, 0.11);
}

.zx-badge-info {
    color: var(--zx-info);
    background: rgba(55, 120, 216, 0.11);
}

.zx-badge-orange {
    color: var(--zx-orange);
    background: rgba(255, 101, 0, 0.11);
}


/* =========================================================
   14. TABLES
   ========================================================= */

.zx-table-wrapper {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--zx-border);
    border-radius: var(--zx-radius);

    background: var(--zx-surface);
}

.zx-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 650px;
}

.zx-table th {
    padding: 13px 16px;

    color: var(--zx-muted);

    background: var(--zx-bg-soft);

    border-bottom: 1px solid var(--zx-border);

    font-size: 12px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zx-table td {
    padding: 15px 16px;

    color: var(--zx-text-soft);

    border-bottom: 1px solid var(--zx-border-soft);

    font-size: 14px;
}

.zx-table tbody tr {
    transition: background var(--zx-transition);
}

.zx-table tbody tr:hover {
    background: var(--zx-bg-soft);
}

.zx-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   15. AVATARS
   ========================================================= */

.zx-avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--zx-orange),
            var(--zx-gold)
        );

    font-size: 13px;
    font-weight: 800;
}

.zx-avatar-sm {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 11px;
}

.zx-avatar-lg {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 16px;
}


/* =========================================================
   16. ALERTS
   ========================================================= */

.zx-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 13px 15px;

    border-radius: 11px;

    border: 1px solid transparent;

    font-size: 13px;
}

.zx-alert-success {
    color: var(--zx-success);
    background: rgba(31, 157, 104, 0.08);
    border-color: rgba(31, 157, 104, 0.18);
}

.zx-alert-danger {
    color: var(--zx-danger);
    background: rgba(220, 63, 63, 0.08);
    border-color: rgba(220, 63, 63, 0.18);
}

.zx-alert-warning {
    color: var(--zx-warning);
    background: rgba(216, 139, 0, 0.08);
    border-color: rgba(216, 139, 0, 0.18);
}

.zx-alert-info {
    color: var(--zx-info);
    background: rgba(55, 120, 216, 0.08);
    border-color: rgba(55, 120, 216, 0.18);
}


/* =========================================================
   17. DIVIDERS
   ========================================================= */

.zx-divider {
    width: 100%;
    height: 1px;

    margin: 20px 0;

    background: var(--zx-border);
}


/* =========================================================
   18. EMPTY STATES
   ========================================================= */

.zx-empty {
    padding: 50px 20px;

    text-align: center;
}

.zx-empty-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin: 0 auto 14px;

    border-radius: 15px;

    color: var(--zx-orange);

    background: rgba(255, 101, 0, 0.1);
}

.zx-empty-title {
    font-size: 17px;
    font-weight: 800;
}

.zx-empty-text {
    max-width: 440px;

    margin: 7px auto 0;

    color: var(--zx-muted);

    font-size: 13px;
}


/* =========================================================
   19. MODAL
   ========================================================= */

.zx-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 12, 9, 0.55);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.zx-modal {
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: var(--zx-surface);

    border: 1px solid var(--zx-border);

    border-radius: var(--zx-radius-lg);

    box-shadow: var(--zx-shadow-lg);
}

.zx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 20px;

    border-bottom: 1px solid var(--zx-border);
}

.zx-modal-body {
    padding: 20px;
}

.zx-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 16px 20px;

    border-top: 1px solid var(--zx-border);
}


/* =========================================================
   20. ICON BUTTON
   ========================================================= */

.zx-icon-btn {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    padding: 0;

    color: var(--zx-muted);
    background: transparent;

    border: 1px solid transparent;
    border-radius: 10px;

    transition:
        color var(--zx-transition),
        background var(--zx-transition),
        border-color var(--zx-transition);
}

.zx-icon-btn:hover {
    color: var(--zx-orange);

    background: var(--zx-bg-soft);

    border-color: var(--zx-border);
}


/* =========================================================
   21. SIDEBAR
   ========================================================= */

.nsb-sidebar {
    position: fixed;

    top: 16px;
    left: 16px;
    bottom: 16px;

    z-index: 900;

    width: var(--zx-sidebar-width);

    display: flex;
    flex-direction: column;

    padding: 16px 12px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.92),
            rgba(255, 250, 242, 0.96)
        );

    border: 1px solid var(--zx-border);

    border-radius: 22px;

    box-shadow: var(--zx-shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        width var(--zx-transition-slow),
        transform var(--zx-transition-slow),
        background var(--zx-transition-slow);
}

html[data-theme="dark"] .nsb-sidebar {
    background:
        linear-gradient(
            180deg,
            rgba(35, 30, 25, 0.96),
            rgba(25, 22, 19, 0.98)
        );
}


/* =========================================================
   22. SIDEBAR BRAND
   ========================================================= */

.nsb-brand {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 4px 8px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--zx-border);
}
.nsb-brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.nsb-brand-mark {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--zx-orange),
            var(--zx-gold)
        );

    border-radius: 12px;

    box-shadow:
        0 8px 18px rgba(255, 101, 0, 0.22);
}

.nsb-brand-mark svg {
    width: 20px;
    height: 20px;
}

.nsb-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    overflow: hidden;
    transition:
        opacity var(--zx-transition),
        width var(--zx-transition);
}

.nsb-brand-name {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.nsb-brand-name span {
    color: var(--zx-orange);
}

.nsb-brand-subtitle {
    display: block;
    margin-top: 1px;

    color: var(--zx-muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   23. SIDEBAR SCROLL AREA
   ========================================================= */

.nsb-scroll {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 4px 2px;

    scrollbar-width: none;
}

.nsb-scroll::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   24. SIDEBAR SECTION
   ========================================================= */

.nsb-section {
    margin-bottom: 18px;
}

.nsb-section-title {
    padding: 8px 10px 7px;

    color: var(--zx-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.09em;

    text-transform: uppercase;

    transition: opacity var(--zx-transition);
}


/* =========================================================
   25. SIDEBAR NAV
   ========================================================= */

.nsb-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nsb-nav-link {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 45px;

    padding: 0 10px;

    color: var(--zx-muted);

    border-radius: 11px;

    transition:
        color var(--zx-transition),
        background var(--zx-transition),
        transform var(--zx-transition);
}

.nsb-nav-link:hover {
    color: var(--zx-text);

    background:
        linear-gradient(
            90deg,
            rgba(255, 101, 0, 0.07),
            rgba(255, 174, 0, 0.04)
        );

    transform: translateX(2px);
}

.nsb-nav-link.is-active {
    color: var(--zx-orange);

    background:
        linear-gradient(
            90deg,
            rgba(255, 101, 0, 0.13),
            rgba(255, 174, 0, 0.07)
        );

    font-weight: 800;
}

.nsb-nav-link.is-active::before {
    content: "";

    position: absolute;

    left: -2px;
    top: 9px;
    bottom: 9px;

    width: 3px;

    border-radius: 0 5px 5px 0;

    background:
        linear-gradient(
            180deg,
            var(--zx-orange),
            var(--zx-gold)
        );
}

.nsb-nav-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: grid;
    place-items: center;
}

.nsb-nav-icon svg {
    width: 18px;
    height: 18px;

    stroke: currentColor;

    transition:
        transform var(--zx-transition);
}

.nsb-nav-link:hover .nsb-nav-icon svg {
    transform: scale(1.08);
}

.nsb-nav-label {
    min-width: 0;

    margin-left: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition:
        opacity var(--zx-transition),
        width var(--zx-transition),
        margin var(--zx-transition);
}

.nsb-nav-badge {
    margin-left: auto;

    min-width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 6px;

    color: #fff;

    background: var(--zx-orange);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   26. SIDEBAR BOTTOM AREA
   ========================================================= */

.nsb-bottom {
    padding-top: 10px;

    border-top: 1px solid var(--zx-border);
}

.nsb-theme-toggle {
    width: 100%;

    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 0 10px;

    color: var(--zx-muted);

    background: transparent;

    border: 0;
    border-radius: 11px;

    transition:
        color var(--zx-transition),
        background var(--zx-transition);
}

.nsb-theme-toggle:hover {
    color: var(--zx-text);
    background: var(--zx-bg-soft);
}

.nsb-theme-icon {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    flex: 0 0 22px;
}

.nsb-theme-icon svg {
    width: 17px;
    height: 17px;
}

.nsb-theme-label {
    margin-left: 10px;

    font-size: 13px;
    font-weight: 700;
}

.nsb-theme-switch {
    width: 36px;
    height: 20px;

    margin-left: auto;

    padding: 2px;

    border-radius: 999px;

    background: var(--zx-border);

    transition: background var(--zx-transition);
}

.nsb-theme-switch::after {
    content: "";

    display: block;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: var(--zx-surface);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

    transition: transform var(--zx-transition);
}

html[data-theme="dark"] .nsb-theme-switch {
    background: var(--zx-orange);
}

html[data-theme="dark"] .nsb-theme-switch::after {
    transform: translateX(16px);
}

.nsb-theme-mode {
    margin-left: auto;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.05em;

    color: var(--zx-muted);
}


/* =========================================================
   27. SIDEBAR USER
   ========================================================= */

.nsb-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 8px 2px;
}

.nsb-user-avatar {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--zx-orange),
            var(--zx-gold)
        );

    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;
}

.nsb-user-info {
    min-width: 0;

    flex: 1;

    transition:
        opacity var(--zx-transition),
        width var(--zx-transition);
}

.nsb-user-name {
    overflow: hidden;

    color: var(--zx-text);

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.nsb-user-role {
    margin-top: 1px;

    color: var(--zx-muted);

    font-size: 10px;

    text-transform: capitalize;
}

.nsb-logout {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    color: var(--zx-muted);

    border-radius: 9px;

    transition:
        color var(--zx-transition),
        background var(--zx-transition);
}

.nsb-logout:hover {
    color: var(--zx-danger);
    background: rgba(220, 63, 63, 0.08);
}

.nsb-logout svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   28. SIDEBAR COLLAPSED
   ========================================================= */

.nsb-sidebar.is-collapsed {
    width: var(--zx-sidebar-collapsed);
}

.nsb-sidebar.is-collapsed .nsb-brand {
    justify-content: center;
}

.nsb-sidebar.is-collapsed .nsb-brand-text,
.nsb-sidebar.is-collapsed .nsb-section-title,
.nsb-sidebar.is-collapsed .nsb-nav-label,
.nsb-sidebar.is-collapsed .nsb-nav-badge,
.nsb-sidebar.is-collapsed .nsb-theme-label,
.nsb-sidebar.is-collapsed .nsb-theme-switch,
.nsb-sidebar.is-collapsed .nsb-theme-mode,
.nsb-sidebar.is-collapsed .nsb-user-info,
.nsb-sidebar.is-collapsed .nsb-logout {
    display: none;
}

.nsb-sidebar.is-collapsed .nsb-nav-link {
    justify-content: center;
    padding: 0;
}

.nsb-sidebar.is-collapsed .nsb-nav-link.is-active::before {
    left: 0;
}

.nsb-sidebar.is-collapsed .nsb-theme-toggle {
    justify-content: center;
    padding: 0;
}

.nsb-sidebar.is-collapsed .nsb-user {
    justify-content: center;
}

.nsb-sidebar.is-collapsed .nsb-brand-mark {
    margin: 0 auto;
}


/* =========================================================
   29. SIDEBAR COLLAPSE BUTTON
   ========================================================= */

.nsb-collapse-btn {
    position: absolute;

    right: -13px;
    top: 31px;

    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    color: var(--zx-muted);

    background: var(--zx-surface);

    border: 1px solid var(--zx-border);
    border-radius: 50%;

    box-shadow: var(--zx-shadow-sm);

    transition:
        color var(--zx-transition),
        transform var(--zx-transition),
        background var(--zx-transition);
}

.nsb-collapse-btn:hover {
    color: var(--zx-orange);

    transform: scale(1.06);
}

.nsb-collapse-btn svg {
    width: 14px;
    height: 14px;

    transition: transform var(--zx-transition);
}

.nsb-sidebar.is-collapsed .nsb-collapse-btn svg {
    transform: rotate(180deg);
}


/* =========================================================
   30. MAIN CONTENT WITH SIDEBAR
   ========================================================= */

.nsb-page-content {
    width: calc(
        100% - var(--zx-sidebar-width) - 16px
    );

    min-width: 0;

    margin-left: calc(
        var(--zx-sidebar-width) + 16px
    );

    padding: 30px 30px 40px;

    transition:
        margin-left var(--zx-transition-slow),
        width var(--zx-transition-slow);
}

body:has(.nsb-sidebar.is-collapsed) .nsb-page-content {
    width: calc(
        100% - var(--zx-sidebar-collapsed) - 16px
    );

    margin-left: calc(
        var(--zx-sidebar-collapsed) + 16px
    );
}


/* =========================================================
   31. MOBILE HEADER + DRAWER
   ========================================================= */

.nsb-mobile-header {
    display: none;
}

.nsb-drawer-overlay {
    display: none;
}


/* =========================================================
   32. MOBILE BOTTOM NAVIGATION
   ========================================================= */

.nsb-mobile-nav {
    display: none;
}


/* =========================================================
   33. MOBILE
   ========================================================= */

@media (max-width: 900px) {

    /* ---- Mobile top bar ---- */
    .nsb-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 940;

        height: 56px;

        display: flex;
        align-items: center;
        gap: 12px;

        padding: 0 14px;

        background: rgba(255, 255, 255, 0.94);
        border-bottom: 1px solid var(--zx-border);

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    html[data-theme="dark"] .nsb-mobile-header {
        background: rgba(32, 28, 24, 0.96);
    }

    .nsb-mobile-menu-btn {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;

        display: grid;
        place-items: center;

        border: 1px solid var(--zx-border);
        border-radius: 11px;

        background: var(--zx-surface);
        color: var(--zx-text);

        cursor: pointer;

        transition: background .15s, color .15s;
    }

    .nsb-mobile-menu-btn:hover {
        background: var(--zx-bg-soft);
        color: var(--zx-orange);
    }

    .nsb-mobile-menu-btn svg {
        width: 20px;
        height: 20px;
    }

    .nsb-mobile-header-brand {
        display: flex;
        align-items: center;
        gap: 8px;

        color: var(--zx-text);
        text-decoration: none;

        font-size: 14px;
        font-weight: 800;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nsb-mobile-header-brand .nsb-brand-mark {
        width: 30px;
        height: 30px;
        font-size: 13px;
        flex: 0 0 30px;
        margin: 0;
    }

    /* ---- Drawer overlay ---- */
    .nsb-drawer-overlay {
        display: none;

        position: fixed;
        inset: 0;

        z-index: 955;

        background: rgba(15, 12, 9, 0.48);

        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .nsb-drawer-overlay.is-open {
        display: block;
    }

    /* ---- Sidebar as drawer ---- */
    .nsb-sidebar {
        display: flex !important;

        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;

        width: 280px;
        max-width: 88vw;

        padding: 16px 12px;

        border-radius: 0 20px 20px 0;

        z-index: 960;

        transform: translateX(-100%);

        transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        background: #fffaf2;
    }

    html[data-theme="dark"] .nsb-sidebar {
        background: #1d1915;
    }

    .nsb-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .nsb-sidebar .nsb-collapse-btn {
        display: none;
    }

    /* ---- Content offset for fixed header ---- */
    .nsb-page-content {
        width: 100% !important;
        margin-left: 0 !important;

        padding:
            calc(56px + 20px)
            20px
            calc(var(--zx-mobile-nav-height) + 28px);
    }

    /* ---- Mobile bottom nav ---- */
    .nsb-mobile-nav {
        position: fixed;

        left: 10px;
        right: 10px;
        bottom: 10px;

        z-index: 950;

        height: var(--zx-mobile-nav-height);

        display: flex;
        align-items: center;
        justify-content: space-around;

        padding: 7px;

        background:
            rgba(255, 255, 255, 0.94);

        border: 1px solid var(--zx-border);

        border-radius: 20px;

        box-shadow:
            0 14px 40px rgba(39, 29, 19, 0.14);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    html[data-theme="dark"] .nsb-mobile-nav {
        background: rgba(32, 28, 24, 0.96);
    }

    .nsb-mobile-link {
        min-width: 58px;
        height: 56px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;

        color: var(--zx-muted);

        border-radius: 14px;

        transition:
            color var(--zx-transition),
            background var(--zx-transition),
            transform var(--zx-transition);
    }

    .nsb-mobile-link:active {
        transform: scale(0.94);
    }

    .nsb-mobile-link.is-active {
        color: var(--zx-orange);

        background:
            rgba(255, 101, 0, 0.09);
    }

    .nsb-mobile-icon {
        width: 21px;
        height: 21px;

        display: grid;
        place-items: center;
    }

    .nsb-mobile-icon svg {
        width: 21px;
        height: 21px;

        stroke: currentColor;
    }

    .nsb-mobile-label {
        font-size: 9px;
        font-weight: 800;

        line-height: 1;

        white-space: nowrap;
    }

    /* ---- Content container ---- */
    .zx-container {
        width: calc(100% - 32px);
    }

    .zx-page-header {
        flex-direction: column;
        align-items: stretch;

        gap: 16px;

        margin-bottom: 22px;
    }

    .zx-page-header-actions {
        width: 100%;
    }

    .zx-page-header-actions .zx-btn {
        flex: 1;
    }

    .zx-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zx-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   34. SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    .nsb-page-content {
        padding:
            calc(56px + 16px)
            14px
            calc(var(--zx-mobile-nav-height) + 24px);
    }

    .zx-container {
        width: calc(100% - 24px);
    }

    .zx-page-title {
        font-size: 25px;
    }

    .zx-page-subtitle {
        font-size: 13px;
    }

    .zx-grid-2,
    .zx-grid-3,
    .zx-grid-4 {
        grid-template-columns: 1fr;
    }

    .zx-card-padding {
        padding: 16px;
    }

    .zx-card-header {
        padding: 16px;
    }

    .zx-stat-card {
        padding: 16px;
    }

    .zx-stat-value {
        font-size: 27px;
    }

    .zx-page-header-actions {
        flex-direction: column;
    }

    .zx-page-header-actions .zx-btn {
        width: 100%;
        flex: none;
    }

    .zx-btn {
        min-height: 44px;
    }

    .zx-modal-overlay {
        align-items: flex-end;

        padding: 10px;
    }

    .zx-modal {
        max-height: calc(100vh - 20px);

        border-radius: 20px 20px 16px 16px;
    }

    .zx-modal-footer {
        flex-direction: column;
    }

    .zx-modal-footer .zx-btn {
        width: 100%;
    }

    .nsb-mobile-nav {
        left: 7px;
        right: 7px;
        bottom: 7px;

        height: 68px;

        border-radius: 18px;
    }

    .nsb-mobile-link {
        min-width: 52px;
        height: 54px;
    }

    .nsb-mobile-label {
        font-size: 8px;
    }
}


/* =========================================================
   35. VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

    .nsb-mobile-nav {
        padding: 5px;
    }

    .nsb-mobile-link {
        min-width: 46px;
    }

    .nsb-mobile-label {
        font-size: 7px;
    }

    .nsb-mobile-icon,
    .nsb-mobile-icon svg {
        width: 19px;
        height: 19px;
    }

    .nsb-page-content {
        padding-left: 11px;
        padding-right: 11px;
    }
}


/* =========================================================
   36. LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 500px) and (max-width: 900px) {

    .nsb-mobile-nav {
        height: 58px;
    }

    .nsb-mobile-link {
        height: 48px;
    }

    .nsb-page-content {
        padding-bottom: 80px;
    }
}


/* =========================================================
   37. TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .zx-btn:hover,
    .zx-card:hover,
    .nsb-nav-link:hover {
        transform: none;
    }

    .nsb-nav-link,
    .zx-btn,
    .zx-icon-btn,
    .nsb-mobile-link {
        -webkit-tap-highlight-color: transparent;
    }
}


/* =========================================================
   38. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   39. FOCUS ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(255, 101, 0, 0.3);
    outline-offset: 2px;
}


/* =========================================================
   40. UTILITY CLASSES
   ========================================================= */

.zx-flex {
    display: flex;
}

.zx-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zx-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zx-gap-1 { gap: 6px; }
.zx-gap-2 { gap: 10px; }
.zx-gap-3 { gap: 14px; }
.zx-gap-4 { gap: 20px; }

.zx-mt-1 { margin-top: 6px; }
.zx-mt-2 { margin-top: 10px; }
.zx-mt-3 { margin-top: 16px; }
.zx-mt-4 { margin-top: 24px; }

.zx-mb-1 { margin-bottom: 6px; }
.zx-mb-2 { margin-bottom: 10px; }
.zx-mb-3 { margin-bottom: 16px; }
.zx-mb-4 { margin-bottom: 24px; }

.zx-text-muted { color: var(--zx-muted); }
.zx-text-orange { color: var(--zx-orange); }
.zx-text-success { color: var(--zx-success); }
.zx-text-danger { color: var(--zx-danger); }

.zx-hidden {
    display: none !important;
}

.nsb-brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}
.nsb-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.nsb-nav-link .nsb-nav-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--zx-orange);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .02em;
}
.nsb-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px 4px;
    margin-top: 10px;
    border-top: 1px solid var(--zx-border);
    font-size: 11px;
}
.nsb-legal-links a {
    color: var(--zx-muted);
    text-decoration: none;
    font-weight: 600;
}
.nsb-legal-links a:hover {
    color: var(--zx-orange);
}
.zpm-block {
    padding: 24px;
    background: #fffaf2;
    border: 1px solid #ece2d5;
    border-radius: 14px;
}
.zpm-head { margin-bottom: 18px; }
.zpm-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #1d1a17;
}
.zpm-sub {
    margin: 0;
    font-size: 13px;
    color: #716b63;
    line-height: 1.55;
}
.zpm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.zpm-method {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #ece2d5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zpm-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.zpm-method-label {
    font-size: 14px;
    font-weight: 800;
    color: #1d1a17;
}
.zpm-method-type {
    padding: 2px 8px;
    background: #fff5e8;
    color: #716b63;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.zpm-qr-wrap {
    padding: 10px;
    background: #fffaf2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}
.zpm-qr-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}
.zpm-instructions {
    font-size: 12.5px;
    line-height: 1.55;
    color: #403b35;
    white-space: pre-wrap;
}
.zpm-link-row { margin-top: 4px; }
.zpm-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #ff6500;
    text-decoration: none;
}
@media print {
    .zpm-block {
        break-inside: avoid;
        padding: 16px;
    }
    .zpm-qr-img { max-height: 150px; }
}
/* =========================================================
   PAYMENT METHODS — beautified (invoice + my-plan + admin)
   ========================================================= */
.zpm-block {
    padding: 26px 24px;
    background: linear-gradient(180deg, #fffdf9 0%, #fffaf2 100%);
    border: 1px solid var(--zx-border, #ece2d5);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(39,29,19,.03);
}
.zpm-head { margin-bottom: 20px; }
.zpm-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.02em;
    color: var(--zx-text, #1d1a17);
}
.zpm-sub {
    margin: 0;
    font-size: 13px;
    color: var(--zx-muted, #716b63);
    line-height: 1.55;
}
.zpm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.zpm-method {
    padding: 18px 16px 14px;
    background: #ffffff;
    border: 1px solid var(--zx-border, #ece2d5);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(39,29,19,.04);
    transition: box-shadow .18s ease, transform .18s ease;
}
.zpm-method:hover {
    box-shadow: 0 6px 18px rgba(39,29,19,.07);
    transform: translateY(-1px);
}
.zpm-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.zpm-method-label {
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.01em;
    color: var(--zx-text, #1d1a17);
}
.zpm-method-type {
    padding: 3px 8px;
    background: #fff5e8;
    color: #b07645;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---- QR presentation ---- */
.zpm-qr-wrap {
    padding: 10px 10px 6px;
    background: linear-gradient(180deg, #fbf6ec, #f7efe2);
    border: 1px solid #f0e5d4;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.zpm-qr-frame {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ece2d5;
    box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(39,29,19,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.zpm-qr-img {
    display: block;
    max-width: 100%;
    max-height: 190px;
    width: auto;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    border-radius: 4px;
}
.zpm-qr-hint {
    font-size: 10.5px;
    color: #a39179;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
}

/* ---- Instructions ---- */
.zpm-instructions {
    font-size: 12.5px;
    line-height: 1.55;
    color: #4a443d;
    white-space: pre-wrap;
    text-align: center;
    padding: 4px 2px;
}
.zpm-method-text .zpm-instructions,
.zpm-method-bank .zpm-instructions,
.zpm-method-cash .zpm-instructions {
    text-align: left;
    background: #fbf8f3;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f0e5d4;
}

/* ---- Link ---- */
.zpm-link-row { text-align: center; }
.zpm-method-text .zpm-link-row,
.zpm-method-bank .zpm-link-row,
.zpm-method-cash .zpm-link-row { text-align: left; }
.zpm-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--zx-orange, #ff6500);
    text-decoration: none;
}
.zpm-link:hover { text-decoration: underline; }

/* ---- Powered by chip ---- */
.zpm-powered {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #f0e5d4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10.5px;
    color: #a39179;
    letter-spacing: .03em;
}
.zpm-powered-pre { text-transform: uppercase; font-weight: 700; }
.zpm-powered-name {
    font-weight: 850;
    color: #716b63;
    letter-spacing: .01em;
}

.zpm-compact { padding: 18px; }
.zpm-compact .zpm-method { padding: 14px; }
.zpm-compact .zpm-qr-img { max-height: 150px; }

@media print {
    .zpm-block { break-inside: avoid; padding: 16px; box-shadow: none; }
    .zpm-method { box-shadow: none; }
    .zpm-qr-img { max-height: 150px; }
}
.zpm-link:hover { text-decoration: underline; }
.zpm-compact .zpm-method { padding: 12px; }
    /* When the subscription topbar is present, push page content down */
    body:has(.nsb-sub-topbar) .nsb-page-content {
        padding-top: 44px;  /* adjust based on number of strips */
    }
    body:has(.nsb-sub-topbar):has(.nsb-sub-dues) .nsb-page-content {
        padding-top: 78px;
    }
    @media (max-width: 900px) {
        body:has(.nsb-sub-topbar) .nsb-page-content {
            padding-top: 52px;
        }
        body:has(.nsb-sub-topbar):has(.nsb-sub-dues) .nsb-page-content {
            padding-top: 90px;
        }
    }
/* =========================================================
   END DAILYWORKDESK GLOBAL STYLE SYSTEM
   ========================================================= */

