:root {
    --ink: #0b1220;
    --ink2: #182235;
    --muted: #718096;
    --line: #e7ebf2;
    --panel: #fff;
    --bg: #f4f7fb;
    --brand: #5b5cf0;
    --brand2: #8b5cf6;
    --cyan: #16b9c4;
    --shadow: 0 18px 55px rgba(20, 31, 55, .08)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 264px;
    background: linear-gradient(180deg, #09111f 0%, #0e1728 58%, #101b2e 100%);
    color: #fff;
    padding: 20px 14px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: 18px 0 45px rgba(5, 12, 25, .08)
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 12px 24px
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6d5dfc, #9a5cf5);
    box-shadow: 0 10px 25px rgba(112, 91, 255, .35)
}

.brand-mark i {
    font-size: 19px
}

.brand-name {
    font-weight: 900;
    letter-spacing: 1.3px;
    font-size: 17px;
    line-height: 1
}

.brand-sub {
    font-size: 9px;
    letter-spacing: 2px;
    color: #8ea0ba;
    margin-top: 4px
}

.nav-wrap {
    overflow: auto
}

.nav-title {
    font-size: 10px;
    color: #71839f;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 19px 10px 7px;
    font-weight: 800
}

.nav-wrap a {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #b9c5d8;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 12px;
    margin: 4px 0;
    font-size: 13px;
    font-weight: 650;
    transition: .18s
}

.nav-wrap a:hover {
    background: rgba(255, 255, 255, .075);
    color: #fff;
    transform: translateX(2px)
}

.nav-wrap a i {
    width: 19px;
    text-align: center;
    font-size: 15px
}

.nav-wrap a.nav-cta {
    color: #fff;
    background: linear-gradient(135deg, #5b5cf0, #875cf3);
    box-shadow: 0 10px 24px rgba(91, 92, 240, .25)
}

.sidebar-foot {
    margin-top: auto;
    padding: 12px 11px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 11px;
    color: #7789a5;
    display: flex;
    align-items: center;
    gap: 8px
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1)
}

.main {
    margin-left: 264px;
    min-height: 100vh
}

.topbar {
    height: 76px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    position: sticky;
    top: 0;
    z-index: 40
}

.top-company,
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px
}

.company-dot {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #eef0ff;
    color: #5657e8;
    display: grid;
    place-items: center
}

.top-plan {
    font-size: 10px;
    color: #8995a8;
    text-transform: capitalize
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    background: linear-gradient(135deg, #222b40, #667085)
}

.logout-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #596579;
    text-decoration: none;
    margin-left: 5px
}

.logout-btn:hover {
    background: #f7f8fb;
    color: #111827
}

.content {
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto
}

.mobile-brand {
    display: none;
    font-weight: 900;
    letter-spacing: .5px
}

.eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    color: var(--brand);
    font-weight: 900;
    margin-bottom: 5px
}

.h-title {
    font-size: 31px;
    font-weight: 850;
    letter-spacing: -1px
}

.cardx {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow)
}

.cardx.p-4 {
    padding: 26px !important
}

.cardx h5 {
    font-size: 15px;
    letter-spacing: -.2px
}

.form-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .65px;
    font-weight: 800;
    color: #68758a;
    margin-bottom: 7px
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid #dfe5ee;
    border-radius: 11px;
    padding: .62rem .8rem;
    font-size: 13px;
    color: #182235;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(10, 20, 40, .02)
}

.form-control:focus,
.form-select:focus {
    border-color: #8d8df5;
    box-shadow: 0 0 0 4px rgba(91, 92, 240, .1)
}

textarea.form-control {
    min-height: auto
}

.input-group-text {
    border-color: #dfe5ee;
    background: #f8fafc
}

.btn {
    border-radius: 11px;
    font-weight: 750;
    font-size: 13px;
    padding: .62rem .95rem
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border: 0;
    box-shadow: 0 10px 24px rgba(91, 92, 240, .2)
}

.btn-primary:hover {
    filter: brightness(.98);
    transform: translateY(-1px)
}

.btn-outline-secondary {
    border-color: #dce2eb;
    color: #4e5b6f
}

.metric {
    padding: 21px;
    position: relative;
    overflow: hidden
}

.metric:after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -30px;
    top: -35px;
    background: linear-gradient(135deg, rgba(91, 92, 240, .1), rgba(139, 92, 246, .02))
}

.metric .num {
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -1px
}

.metric .label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px
}

.table {
    margin-bottom: 0
}

.table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #8490a2;
    border-bottom-color: #edf0f5;
    padding: 13px 12px
}

.table td {
    vertical-align: middle;
    padding: 14px 12px;
    border-bottom-color: #eef1f5;
    font-size: 12px
}

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

.badge-soft {
    background: #eef0ff;
    color: #4f46d8;
    border-radius: 8px;
    padding: 6px 9px;
    font-weight: 800
}

.section-kicker {
    font-size: 12px;
    color: #7a879a;
    font-weight: 700
}

.items-card {
    border: 1px solid #e3e7ef;
    border-radius: 16px;
    overflow: hidden;
    background: #fbfcfe
}

.items-head {
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8f9fc, #fff);
    border-bottom: 1px solid #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.items-head strong {
    font-size: 13px
}

.item-row {
    padding: 10px;
    border-bottom: 1px solid #edf0f4;
    background: #fff
}

.item-row:last-child {
    border-bottom: 0
}

.item-grid {
    display: grid;
    grid-template-columns: minmax(190px, 2fr) 90px 105px 80px 105px 105px 42px;
    gap: 8px;
    align-items: end
}

.item-total {
    font-weight: 800;
    text-align: right;
    padding-bottom: 10px;
    font-size: 12px
}

.remove-item {
    width: 38px;
    height: 38px;
    border: 1px solid #ece2e2;
    background: #fff7f7;
    color: #d14b4b;
    border-radius: 10px
}

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

.summary-box {
    background: #f7f8fc;
    border: 1px solid #e9edf4;
    border-radius: 12px;
    padding: 12px 14px
}

.summary-box small {
    display: block;
    color: #8a95a6;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .6px
}

.summary-box strong {
    font-size: 18px
}

.master-hint {
    font-size: 10px;
    color: #8a95a6;
    margin-top: 5px
}

.login-wrap {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 12%, #9ea5ff 0, transparent 29%), radial-gradient(circle at 88% 85%, #4c3caa 0, transparent 27%), linear-gradient(135deg, #070e19, #161e3c 60%, #312e81);
    display: grid;
    place-items: center;
    padding: 25px
}

.login-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 26px;
    padding: 38px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, .3)
}

@media(max-width:1000px) {
    .sidebar {
        width: 230px
    }

    .main {
        margin-left: 230px
    }

    .content {
        padding: 22px
    }

    .item-grid {
        grid-template-columns: 1.7fr 80px 95px 70px 95px 95px 40px
    }
}

@media(max-width:760px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto
    }

    .nav-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 3px
    }

    .nav-title {
        width: 100%;
        margin: 10px 10px 2px
    }

    .nav-wrap a {
        display: inline-flex
    }

    .sidebar-foot {
        display: none
    }

    .main {
        margin-left: 0
    }

    .topbar {
        padding: 0 16px;
        height: 68px
    }

    .mobile-brand {
        display: block
    }

    .top-company {
        display: none
    }

    .content {
        padding: 17px
    }

    .h-title {
        font-size: 25px
    }

    .item-grid {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .item-grid .item-desc {
        grid-column: 1/-1
    }

    .item-grid .item-total {
        grid-column: 1
    }

    .item-grid .remove-item {
        grid-column: 2;
        justify-self: end
    }

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

    .cardx.p-4 {
        padding: 18px !important
    }
}

/* Premium sidebar/navigation refinement */
.sidebar {
    padding: 18px 12px
}

.brand {
    position: relative;
    padding: 7px 11px 25px
}

.sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    background: rgba(255, 255, 255, .07);
    color: #cbd5e1;
    border-radius: 9px;
    width: 34px;
    height: 34px
}

.nav-wrap {
    padding: 0 2px
}

.nav-title {
    margin: 22px 10px 8px
}

.nav-wrap a {
    position: relative;
    min-height: 44px;
    padding: 10px 12px;
    margin: 3px 0;
    border: 1px solid transparent
}

.nav-wrap a.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, .22), rgba(99, 102, 241, .07));
    border-color: rgba(129, 140, 248, .13);
    color: #fff;
    box-shadow: inset 3px 0 0 #8b7cf6
}

.nav-wrap a.active i {
    color: #b8b1ff
}

.nav-wrap a span {
    flex: 1
}

.nav-wrap a kbd {
    font: 700 10px ui-monospace, monospace;
    color: #b8c2d3;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .09);
    padding: 2px 6px;
    border-radius: 5px
}

.nav-wrap a.nav-cta.active {
    background: linear-gradient(135deg, #5b5cf0, #875cf3);
    box-shadow: 0 10px 24px rgba(91, 92, 240, .25), inset 3px 0 0 rgba(255, 255, 255, .55)
}

.sidebar-backdrop {
    display: none
}

.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 1px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #667085;
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #8b7cff;
}

.sidebar,
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: #667085 transparent;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: #4b5565;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 20px
}

.topbar {
    gap: 12px
}

.print-btn {
    white-space: nowrap
}

.bilty-actions {
    display: flex;
    gap: 6px;
    align-items: center
}

.bilty-actions .btn {
    padding: .48rem .65rem
}

@media(max-width:760px) {
    .sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        min-height: 100vh;
        transition: left .22s ease;
        box-shadow: 20px 0 60px rgba(0, 0, 0, .24)
    }

    .sidebar.open {
        left: 0
    }

    .sidebar-close {
        display: block
    }

    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(5, 10, 20, .48);
        backdrop-filter: blur(2px);
        z-index: 45
    }

    .main {
        margin-left: 0
    }

    .menu-toggle {
        display: grid;
        place-items: center
    }

    .mobile-brand {
        display: block
    }

    .topbar {
        padding: 0 14px
    }

    .user-menu {
        margin-left: auto
    }

    .content {
        padding: 17px
    }

    .bilty-actions .btn-label {
        display: none
    }

    .bilty-actions .btn {
        width: 38px;
        height: 38px;
        padding: 0;
        display: grid;
        place-items: center
    }
}