:root {
    --ink: #151817;
    --paper: #f4f3ef;
    --panel: #fff;
    --line: #e5e5df;
    --muted: #797d78;
    --lime: #c7ef58;
    --red: #e47d70;
    --blue: #7eaae4;
    --green: #65ad82
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Noto Sans Arabic', 'Manrope', Arial, sans-serif
}

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

button,
input {
    font: inherit
}

.dashboard-body {
    display: flex;
    min-height: 100vh
}

.sidebar {
    background: var(--ink);
    color: #f7f6f1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-height: 100vh;
    padding: 34px 24px;
    width: 254px
}

.dash-brand {
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.08em
}

.dash-brand span {
    font-weight: 400
}

.workspace {
    border-bottom: 1px solid #373b37;
    border-top: 1px solid #373b37;
    color: #a8aca4;
    display: grid;
    font-size: 11px;
    gap: 1px;
    grid-template-columns: 13px 1fr;
    margin: 42px -24px 26px;
    padding: 16px 24px
}

.workspace small {
    color: #666b65;
    grid-column: 2
}

.status-dot {
    background: var(--lime);
    border-radius: 50%;
    height: 7px;
    margin-top: 6px;
    width: 7px
}

.side-nav {
    display: grid;
    gap: 5px
}

.side-nav a,
.sidebar-bottom a {
    align-items: center;
    color: #959a92;
    display: flex;
    font-size: 12px;
    gap: 13px;
    padding: 12px 10px
}

.side-nav a span {
    color: #7b8179;
    font-size: 16px;
    width: 18px
}

.side-nav a:hover,
.side-nav a.active {
    background: #2a2e2b;
    color: #fff
}

.side-nav a.active span {
    color: var(--lime)
}

.side-nav em {
    background: var(--lime);
    border-radius: 10px;
    color: var(--ink);
    font-size: 10px;
    font-style: normal;
    margin-inline-start: auto;
    padding: 1px 7px
}

.sidebar-bottom {
    border-top: 1px solid #373b37;
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px
}

.sidebar-bottom a {
    font-size: 11px;
    padding-inline: 10px
}

.dash-main {
    flex: 1;
    min-width: 0;
    padding: 44px clamp(25px, 5vw, 76px) 30px
}

.dash-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 52px
}

.kicker {
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .06em;
    margin: 0 0 7px;
    text-transform: uppercase
}

.dash-header h1 {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.04em;
    margin: 0
}

.header-actions,
.profile {
    align-items: center;
    display: flex;
    gap: 21px
}

.icon-button {
    background: none;
    border: 0;
    font-size: 25px;
    position: relative
}

.icon-button b {
    background: var(--lime);
    border-radius: 50%;
    font-size: 8px;
    padding: 2px 5px;
    position: absolute;
    right: -4px;
    top: 0
}

.profile {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 21px
}

.profile>span {
    align-items: center;
    background: var(--ink);
    border-radius: 50%;
    color: var(--lime);
    display: grid;
    font-family: 'DM Mono';
    font-size: 12px;
    height: 36px;
    place-items: center;
    width: 36px
}

.profile strong,
.profile small {
    display: block;
    font-size: 11px
}

.profile small {
    color: var(--muted);
    font-size: 9px
}

.dashboard-section {
    margin-bottom: 54px
}

.section-heading,
.panel-heading {
    align-items: end;
    display: flex;
    justify-content: space-between
}

.section-heading h2 {
    font-size: 30px;
    letter-spacing: -.06em;
    margin: 0
}

.outline-button {
    background: transparent;
    border: 1px solid #cfd1cb;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    padding: 11px 16px
}

.metric-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 25px
}

.metric-card {
    background: var(--panel);
    border: 1px solid var(--line);
    min-height: 154px;
    padding: 20px;
    position: relative
}

.metric-card.lime {
    background: var(--lime);
    border-color: var(--lime)
}

.metric-card>span {
    display: block;
    font-size: 11px
}

.metric-card>strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -.08em;
    line-height: 1;
    margin: 27px 0 8px
}

.metric-card small {
    color: var(--muted);
    font-size: 10px
}

.metric-card i {
    font-size: 29px;
    font-style: normal;
    position: absolute;
    right: 20px;
    top: 18px
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.2fr .8fr;
    margin-bottom: 16px
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    min-width: 0;
    padding: 24px
}

.panel-heading {
    margin-bottom: 25px
}

.panel-heading h3 {
    font-size: 18px;
    letter-spacing: -.04em;
    margin: 0
}

.panel-heading>a {
    border-bottom: 1px solid var(--ink);
    font-size: 10px;
    padding-bottom: 5px
}

.live-chip {
    color: var(--green);
    font-family: 'DM Mono';
    font-size: 10px
}

.live-chip i {
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-inline-end: 6px;
    width: 6px
}

.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    font-size: 11px;
    width: 100%
}

th {
    color: var(--muted);
    font-family: 'DM Mono';
    font-size: 9px;
    font-weight: 400;
    text-align: right
}

td,
th {
    border-bottom: 1px solid var(--line);
    padding: 13px 8px;
    white-space: nowrap
}

td:first-child,
th:first-child {
    padding-inline-start: 0
}

.status {
    border-radius: 2px;
    display: inline-block;
    font-size: 9px;
    padding: 4px 8px
}

.status.pending {
    background: #fff0c7;
    color: #956e00
}

.status.success {
    background: #def2e5;
    color: #378352
}

.status.danger {
    background: #fbe0dc;
    color: #ae4f43
}

.production-list,
.inventory-list {
    display: grid
}

.production-row,
.inventory-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 12px 0
}

.production-row>div,
.inventory-row>div {
    flex: 1
}

.production-row strong,
.inventory-row strong {
    display: block;
    font-size: 11px
}

.production-row small,
.inventory-row small {
    color: var(--muted);
    display: block;
    font-size: 9px;
    margin-top: 3px
}

.machine-icon {
    align-items: center;
    background: #eff1eb;
    border-radius: 50%;
    display: grid;
    font-size: 19px;
    height: 35px;
    place-items: center;
    width: 35px
}

.production-row>b {
    font-weight: 400
}

.inventory-row {
    justify-content: space-between
}

.stock-warning {
    color: #c66d3d !important;
    font-family: 'Manrope';
    font-size: 19px !important
}

.stock-warning small {
    color: var(--muted);
    display: inline !important
}

.empty {
    color: var(--muted);
    font-size: 11px;
    padding: 25px 0;
    text-align: center
}

.module-strip {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px
}

.module-strip article {
    background: var(--ink);
    color: #fff;
    min-height: 170px;
    padding: 24px
}

.module-strip article:nth-child(2) {
    background: #deddd5;
    color: var(--ink)
}

.module-strip article:nth-child(3) {
    background: var(--lime);
    color: var(--ink)
}

.module-strip span {
    font-family: 'DM Mono';
    font-size: 9px
}

.module-strip strong {
    display: block;
    font-size: 17px;
    margin: 25px 0 4px
}

.module-strip p {
    color: #aaa;
    display: inline;
    font-size: 10px
}

.module-strip article:nth-child(2) p {
    color: var(--muted)
}

.module-strip a {
    display: block;
    font-size: 10px;
    margin-top: 22px;
    text-decoration: underline
}

.dash-footer {
    color: var(--muted);
    display: flex;
    font-family: 'DM Mono';
    font-size: 8px;
    justify-content: space-between;
    padding: 38px 0 0
}

.auth-body {
    align-items: center;
    background: var(--ink);
    display: grid;
    min-height: 100vh;
    place-items: center
}

.auth-card {
    background: var(--paper);
    max-width: 440px;
    padding: 45px;
    width: calc(100% - 32px)
}

.auth-card>.muted {
    display: none;
}

.auth-card h1 {
    font-size: 32px;
    margin: 25px 0 8px
}

.auth-card label {
    display: block;
    font-size: 11px;
    margin-top: 20px
}

.auth-card input {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #bfc1b9;
    display: block;
    outline: 0;
    padding: 11px 0;
    width: 100%
}

.auth-card .primary-button {
    margin-top: 30px;
    width: 100%
}

.primary-button {
    background: var(--ink);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 16px 20px
}

.primary-button span {
    color: var(--lime);
    float: left
}

.alert {
    font-size: 11px;
    margin-top: 20px;
    padding: 12px
}

.danger {
    background: #fbe0dc;
    color: #9f493e
}

.muted {
    color: var(--muted);
    font-size: 12px
}

.back-link {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 22px;
    text-align: center
}

.auth-divider {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 11px;
    gap: 12px;
    margin: 20px 0;
    text-align: center
}

.auth-divider::before,
.auth-divider::after {
    background: var(--line, #e3e5df);
    content: '';
    flex: 1;
    height: 1px
}

@media(max-width:950px) {
    .sidebar {
        width: 210px
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:650px) {
    .dashboard-body {
        display: block
    }

    .sidebar {
        min-height: auto;
        padding: 18px 20px;
        width: 100%
    }

    .workspace,
    .side-nav {
        display: none
    }

    .sidebar-bottom {
        display: flex;
        justify-content: space-between;
        margin-top: 18px;
        padding-top: 12px
    }

    .dash-main {
        padding: 27px 17px
    }

    .dash-header {
        align-items: start;
        margin-bottom: 35px
    }

    .dash-header h1 {
        font-size: 18px
    }

    .profile {
        display: none
    }

    .header-actions {
        gap: 0
    }

    .section-heading h2 {
        font-size: 24px
    }

    .metric-grid {
        gap: 8px
    }

    .metric-card {
        min-height: 130px;
        padding: 14px
    }

    .metric-card>strong {
        font-size: 31px;
        margin-top: 22px
    }

    .module-strip {
        grid-template-columns: 1fr
    }

    .dash-footer {
        gap: 10px;
        line-height: 1.5
    }

    .auth-card {
        padding: 30px 24px
    }
}

/* Arabic-first responsive shell */
:root {
    --ink: #18201d;
    --paper: #f5f7f4;
    --panel: #ffffff;
    --line: #e1e7e1;
    --muted: #68736d;
    --lime: #c9ef61;
    --accent: #477b63;
}

body {
    background: var(--paper);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.dashboard-body {
    background: var(--paper);
}

.sidebar {
    background: #17231e;
    padding: 27px 20px;
    width: 252px;
}

.dash-brand {
    color: #fff;
    letter-spacing: -.06em;
}

.dash-brand span {
    color: var(--lime);
}

.workspace {
    background: #203229;
    border: 0;
    margin: 35px -20px 22px;
    padding: 15px 20px;
}

.side-nav a,
.sidebar-bottom a {
    border-radius: 7px;
    font-size: 12px;
    transition: background .2s ease, color .2s ease;
}

.side-nav a:hover,
.side-nav a.active {
    background: #31483b;
}

.dash-main {
    padding: 0 clamp(22px, 4vw, 64px) 30px;
}

.dash-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    margin: 0 calc(clamp(22px, 4vw, 64px) * -1) 47px;
    min-height: 94px;
    padding: 21px clamp(22px, 4vw, 64px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.dash-header h1 {
    font-size: 23px;
    letter-spacing: -.04em;
}

.kicker {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 10px;
    letter-spacing: 0;
}

.icon-button {
    color: var(--accent);
    cursor: pointer;
}

.profile>span {
    background: var(--accent);
    color: var(--lime);
}

.metric-card,
.panel {
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(34, 55, 43, .04);
}

.metric-card.lime {
    background: var(--lime);
}

.section-heading h2 {
    font-size: 29px;
}

.outline-button {
    border-radius: 5px;
}

.mobile-menu-button {
    background: var(--ink);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 19px;
    height: 38px;
    width: 38px;
}

.mobile-overlay {
    background: rgba(10, 18, 14, .45);
    display: none;
    inset: 0;
    position: fixed;
    z-index: 9;
}

.dashboard-state {
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    margin: -25px 0 24px;
}

.dashboard-state.alert-success {
    --bs-alert-bg: #e6f4ea;
    --bs-alert-color: #24613a;
}

.dashboard-state.alert-info {
    --bs-alert-bg: #e8f1f6;
    --bs-alert-color: #275b70;
}

.dashboard-state.alert-danger {
    --bs-alert-bg: #fbe9e7;
    --bs-alert-color: #9f4038;
}

.btn,
.outline-button,
.primary-button {
    border-radius: 6px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--accent) transparent;
}

.table-responsive table {
    min-width: 540px;
}

.auth-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 2px 0 var(--accent);
}

.auth-body {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    margin: auto;
}

@media (max-width: 650px) {
    .dashboard-body {
        display: block;
    }

    .sidebar {
        bottom: 0;
        box-shadow: 10px 0 35px rgba(0, 0, 0, .2);
        left: auto;
        min-height: 100vh;
        padding: 25px 20px;
        position: fixed;
        right: -290px;
        top: 0;
        transition: right .25s ease;
        width: 275px;
        z-index: 10;
    }

    .dashboard-body.menu-open .sidebar {
        right: 0;
    }

    .dashboard-body.menu-open .mobile-overlay {
        display: block;
    }

    .workspace,
    .side-nav {
        display: grid;
    }

    .sidebar-bottom {
        display: grid;
    }

    .dash-main {
        padding: 0 15px 26px;
    }

    .dash-header {
        margin: 0 -15px 32px;
        min-height: 82px;
        padding: 16px 15px;
    }

    .dash-header h1 {
        font-size: 17px;
        max-width: 205px;
    }

    .dash-header .kicker {
        margin-bottom: 3px;
    }

    .profile {
        display: none;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-button {
        font-size: 22px;
    }

    .section-heading {
        align-items: start;
        gap: 14px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .outline-button {
        font-size: 10px;
        padding: 9px 10px;
        white-space: nowrap;
    }

    .metric-card>span {
        font-size: 10px;
    }

    .metric-card>strong {
        font-size: 29px;
    }

    .panel {
        padding: 18px 15px;
    }

    .panel-heading h3 {
        font-size: 16px;
    }

    .module-strip article {
        border-radius: 8px;
        min-height: 145px;
    }


    /* SaduFab premium operations theme */
    :root {
        --dashboard-bg: #eef2ed;
        --dashboard-surface: #ffffff;
        --dashboard-dark: #17231e;
        --dashboard-border: rgba(71, 123, 99, .16);
        --dashboard-shadow: 0 18px 45px rgba(24, 53, 38, .08);
    }

    body.dashboard-body {
        background:
            linear-gradient(rgba(71, 123, 99, .035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(71, 123, 99, .035) 1px, transparent 1px),
            var(--dashboard-bg);
        background-size: 34px 34px;
        color: #17231e;
    }

    .sidebar {
        background: linear-gradient(180deg, #17231e 0%, #1d3027 100%);
        box-shadow: 12px 0 40px rgba(16, 39, 27, .12);
        position: relative;
        z-index: 6;
    }

    .sidebar::after {
        background: var(--lime);
        border-radius: 50%;
        content: '';
        filter: blur(32px);
        height: 70px;
        opacity: .13;
        position: absolute;
        right: -35px;
        top: 92px;
        width: 70px;
    }

    .dash-brand {
        font-size: 28px;
        position: relative;
        z-index: 1;
    }

    .workspace {
        border-bottom: 1px solid rgba(201, 239, 97, .13);
        border-top: 1px solid rgba(201, 239, 97, .13);
        position: relative;
        z-index: 1;
    }

    .side-nav {
        position: relative;
        z-index: 1;
    }

    .side-nav a,
    .sidebar-bottom a {
        min-height: 43px;
    }

    .side-nav a.active {
        box-shadow: inset 3px 0 var(--lime), 0 8px 20px rgba(0, 0, 0, .12);
    }

    .dash-main {
        padding-bottom: 60px;
    }

    .dash-header {
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 1px 0 var(--dashboard-border), 0 12px 30px rgba(21, 48, 34, .04);
        backdrop-filter: blur(14px);
    }

    .dash-header h1,
    .section-heading h2,
    .panel-heading h3 {
        font-weight: 700;
    }

    .kicker {
        color: var(--accent);
        font-weight: 700;
    }

    .section-heading {
        margin-bottom: 4px;
    }

    .metric-grid {
        gap: 16px;
    }

    .metric-card {
        background: rgba(255, 255, 255, .9);
        border: 1px solid var(--dashboard-border);
        box-shadow: var(--dashboard-shadow);
        min-height: 176px;
        overflow: hidden;
        transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }

    .metric-card::after {
        background: var(--lime);
        border-radius: 50%;
        bottom: -45px;
        content: '';
        height: 115px;
        opacity: .09;
        position: absolute;
        right: -20px;
        width: 115px;
    }

    .metric-card:hover {
        border-color: rgba(71, 123, 99, .35);
        box-shadow: 0 22px 45px rgba(24, 53, 38, .13);
        transform: translateY(-3px);
    }

    .metric-card>strong {
        color: var(--accent);
        font-size: 45px;
    }

    .metric-card.lime>strong,
    .metric-card.lime i {
        color: var(--ink);
    }

    .metric-card i {
        color: var(--accent);
        font-size: 32px;
    }

    .panel {
        background: rgba(255, 255, 255, .94);
        border: 1px solid var(--dashboard-border);
        box-shadow: var(--dashboard-shadow);
        padding: 27px;
    }

    .panel-heading {
        border-bottom: 1px solid var(--line);
        padding-bottom: 18px;
    }

    .panel-heading>a {
        color: var(--accent);
    }

    table th {
        color: var(--accent);
        font-family: 'IBM Plex Sans Arabic', sans-serif;
        font-weight: 700;
    }

    table td,
    table th {
        padding-bottom: 15px;
        padding-top: 15px;
    }

    .production-row,
    .inventory-row {
        padding: 15px 0;
    }

    .module-strip {
        gap: 16px;
    }

    .module-strip article {
        border: 1px solid var(--dashboard-border);
        border-radius: 10px;
        box-shadow: var(--dashboard-shadow);
    }

    .dash-footer {
        border-top: 1px solid var(--dashboard-border);
        margin-top: 34px;
        padding-top: 20px;
    }

    .dashboard-state {
        box-shadow: 0 8px 22px rgba(24, 53, 38, .06);
    }

    @media (max-width: 650px) {
        .dash-main {
            padding-bottom: 35px;
        }

        .metric-card {
            min-height: 145px;
        }

        .metric-card>strong {
            font-size: 31px;
        }

        .panel {
            padding: 20px 16px;
        }
    }

    .auth-body {
        padding: 16px;
    }

    .auth-card {
        max-width: 440px;
        width: 100%;
    }
}

/* Arabic typography and responsive finish */
html {
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-synthesis: none;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

.dash-brand,
.dash-header h1,
.section-heading h2,
.panel-heading h3,
.auth-card h1 {
    letter-spacing: 0;
    line-height: 1.35;
}

.dash-header h1,
.section-heading h2,
.panel-heading h3,
.auth-card h1 {
    font-weight: 700;
}

.kicker,
.metric-card>span,
.metric-card small,
.panel-heading>a,
.profile strong,
.profile small,
.side-nav a,
.sidebar-bottom a,
.outline-button,
.primary-button,
.auth-card label,
.muted,
.back-link {
    line-height: 1.8;
}

.metric-card,
.panel,
.module-strip article,
.auth-card {
    box-shadow: 0 14px 32px rgba(24, 32, 29, .09);
}

.metric-card:hover,
.panel:hover {
    box-shadow: 0 20px 42px rgba(24, 32, 29, .13);
}

.metric-card>strong {
    letter-spacing: 0;
    line-height: 1.1;
}

.panel-heading {
    gap: 18px;
}

.outline-button,
.primary-button,
.mobile-menu-button {
    min-height: 42px;
}

.auth-card input {
    line-height: 1.8;
}

@media (max-width: 650px) {
    .dash-header {
        gap: 12px;
    }

    .dash-header h1 {
        line-height: 1.55;
    }

    .section-heading,
    .panel-heading {
        flex-wrap: wrap;
    }

    .section-heading>div {
        min-width: 0;
    }

    .section-heading h2 {
        line-height: 1.45;
    }

    .outline-button {
        flex-shrink: 0;
    }

    .metric-card {
        min-width: 0;
        padding: 15px 13px;
    }

    .metric-card>span,
    .metric-card small {
        display: block;
        overflow-wrap: anywhere;
    }

    .metric-card>strong {
        margin-bottom: 6px;
        margin-top: 18px;
    }

    .table-wrap,
    .table-responsive {
        margin-inline: -4px;
    }

    .auth-card {
        padding: 28px 22px;
    }
}

/* Reference-inspired Arabic dashboard surfaces */
:root {
    --dashboard-bg: #f1e8fb;
    --dashboard-surface: #ffffff;
    --dashboard-ink: #321c54;
    --dashboard-muted: #796c8a;
    --dashboard-line: #e6d8f3;
    --dashboard-accent: #8b35d4;
    --dashboard-shadow: 0 12px 26px rgba(84, 43, 125, .11), 0 3px 7px rgba(84, 43, 125, .06);
    --dashboard-shadow-hover: 0 20px 40px rgba(84, 43, 125, .16), 0 5px 10px rgba(84, 43, 125, .08);
}

body.dashboard-body {
    background: radial-gradient(circle at 8% 5%, rgba(203, 156, 255, .18), transparent 27%), var(--dashboard-bg);
    color: var(--dashboard-ink);
    font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
    line-height: 1.75;
}

.sidebar {
    background: linear-gradient(180deg, #261442 0%, #33195a 100%);
    box-shadow: 10px 0 32px rgba(52, 24, 84, .14);
}

.side-nav a:hover,
.side-nav a.active,
.sidebar-bottom a:hover {
    background: rgba(190, 125, 255, .18);
}

.dash-main {
    padding-block: 28px 56px;
}

.dash-header {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(144, 93, 191, .12);
    border-radius: 18px;
    box-shadow: var(--dashboard-shadow);
    margin: 0 0 38px;
    min-height: 92px;
    padding: 20px clamp(20px, 4vw, 38px);
    position: relative;
}

.dash-header h1,
.section-heading h2,
.panel-heading h3,
.auth-card h1 {
    color: var(--dashboard-ink);
    letter-spacing: 0;
    line-height: 1.4;
}

.kicker,
.panel-heading>a,
.profile small,
.muted {
    color: var(--dashboard-muted);
}

.metric-card,
.panel,
.module-strip article,
.auth-card {
    background: var(--dashboard-surface);
    border: 1px solid rgba(144, 93, 191, .14);
    border-radius: 16px;
    box-shadow: var(--dashboard-shadow);
}

.metric-card:hover,
.panel:hover,
.module-strip article:hover {
    box-shadow: var(--dashboard-shadow-hover);
    transform: translateY(-3px);
}

.metric-card.lime {
    background: linear-gradient(135deg, #c98cff 0%, #8327c8 100%);
    color: #fff;
}

.metric-card.lime>strong,
.metric-card.lime small,
.metric-card.lime i {
    color: #fff;
}

.metric-card>strong {
    color: var(--dashboard-accent);
    letter-spacing: 0;
}

.panel {
    padding: 28px;
}

.panel-heading {
    border-bottom-color: var(--dashboard-line);
}

.outline-button,
.primary-button,
.btn {
    border-radius: 12px;
}

.outline-button {
    border-color: #b99ad0;
    color: var(--dashboard-ink);
}

.primary-button {
    background: linear-gradient(135deg, #be76f3 0%, #7b20be 100%);
    box-shadow: 0 8px 18px rgba(126, 36, 190, .2);
}

.auth-body {
    background: var(--dashboard-bg);
}

.auth-card {
    padding: 42px;
}

@media (max-width: 650px) {
    .dash-main {
        padding: 16px 14px 35px;
    }

    .dash-header {
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .panel {
        padding: 20px 16px;
    }
}

/* Keep the desktop navigation visible while scrolling between sections. */
@media (min-width: 651px) {
    .dashboard-body {
        display: block;
    }

    .sidebar {
        bottom: 0;
        left: auto;
        min-height: 100vh;
        overflow-y: auto;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 10;
    }

    .dash-main {
        margin-left: 0;
        margin-right: 252px;
    }
}

/* Real brand logo artwork */
.dash-brand-img {
    display: block;
    height: 28px;
    width: auto;
}

.auth-card .dash-brand-img {
    height: 34px;
}

/* Sadu contemporary theme — matches the public storefront identity */
:root {
    --dashboard-bg: #f3eee4;
    --dashboard-surface: #fffdf8;
    --dashboard-surface-soft: #eee7da;
    --dashboard-ink: #201f1b;
    --dashboard-muted: #706b60;
    --dashboard-line: #d9d0c1;
    --dashboard-accent: #a94739;
    --dashboard-gold: #b8924e;
    --dashboard-gold-light: #d5bd78;
    --dashboard-shadow: 0 12px 26px rgba(52, 39, 24, .11), 0 3px 7px rgba(52, 39, 24, .06);
    --dashboard-shadow-hover: 0 20px 40px rgba(52, 39, 24, .16), 0 5px 10px rgba(52, 39, 24, .08);
}

body.dashboard-body {
    background-color: var(--dashboard-bg);
    background-image:
        linear-gradient(135deg, rgba(169, 71, 57, .03) 25%, transparent 25%),
        linear-gradient(225deg, rgba(169, 71, 57, .03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(32, 31, 27, .02) 25%, transparent 25%),
        linear-gradient(315deg, rgba(32, 31, 27, .02) 25%, var(--dashboard-bg) 25%);
    background-position: 0 0, 12px 0, 12px -12px, 0 12px;
    background-size: 24px 24px;
    color: var(--dashboard-ink);
}

.sidebar {
    background: linear-gradient(180deg, #201f1b 0%, #28241e 100%);
    border-left: 3px solid var(--dashboard-gold);
    box-shadow: -10px 0 32px rgba(32, 31, 27, .18);
}

.side-nav a:hover,
.side-nav a.active,
.sidebar-bottom a:hover {
    background: rgba(184, 146, 78, .18);
}

.side-nav a.active span {
    color: var(--dashboard-gold-light);
}

.status-dot {
    background: var(--dashboard-gold-light);
}

.dash-header {
    background: rgba(255, 253, 248, .82);
    border: 1px solid var(--dashboard-line);
    box-shadow: var(--dashboard-shadow);
}

.dash-header h1,
.section-heading h2,
.panel-heading h3,
.auth-card h1 {
    color: var(--dashboard-ink);
}

.kicker,
.panel-heading>a,
.profile small,
.muted {
    color: var(--dashboard-muted);
}

.metric-card,
.panel,
.module-strip article,
.auth-card {
    background: var(--dashboard-surface);
    border: 1px solid rgba(169, 71, 57, .14);
    box-shadow: var(--dashboard-shadow);
}

.metric-card:hover,
.panel:hover,
.module-strip article:hover {
    box-shadow: var(--dashboard-shadow-hover);
    transform: translateY(-3px);
}

.metric-card.lime {
    background: linear-gradient(135deg, var(--dashboard-gold-light) 0%, var(--dashboard-gold) 100%);
    color: var(--dashboard-ink);
}

.metric-card.lime>strong,
.metric-card.lime small,
.metric-card.lime i {
    color: var(--dashboard-ink);
}

.metric-card>strong {
    color: var(--dashboard-accent);
}

.panel-heading {
    border-bottom-color: var(--dashboard-line);
}

.outline-button,
.primary-button,
.btn {
    border-radius: 8px;
}

.outline-button {
    border-color: #9d9180;
    color: var(--dashboard-ink);
}

.primary-button {
    background: linear-gradient(135deg, #bb5a48 0%, #7f302b 100%);
    box-shadow: 0 8px 18px rgba(127, 48, 43, .22);
}

.profile>span {
    background: var(--dashboard-accent);
    color: var(--dashboard-gold-light);
}

.auth-body {
    background: var(--dashboard-bg);
}

.status.success {
    background: #e6f0dc;
    color: #4a6b2f;
}

.status.pending {
    background: #f6e9cf;
    color: #8a5a1c;
}

.status.danger {
    background: #f3ddd8;
    color: var(--dashboard-accent);
}

.live-chip {
    color: #4a6b2f;
}

.live-chip i {
    background: #4a6b2f;
}