:root {
    --bmd-primary: #e30016;
    --bmd-accent: #f2360a;
    --bmd-dark: #000000;
    --bmd-light: #ffffff;
    --bmd-muted: #6b7280;
    --bmd-border: rgba(0, 0, 0, 0.08);
    --bmd-shadow: 0 20px 45px rgba(227, 0, 22, 0.08);
    --bmd-radius: 1.1rem;
    --bmd-sidebar-width: 280px;
    --bmd-sidebar-collapsed-width: 92px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
    background:
        radial-gradient(circle at top left, rgba(242, 54, 10, 0.12), transparent 32%),
        linear-gradient(180deg, #fff6f6 0%, #ffffff 30%, #fffefe 100%);
    color: #121212;
    min-height: 100vh;
}

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

.btn {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.15;
    padding: 0.58rem 0.95rem;
    border-radius: 0.82rem;
    white-space: nowrap;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.42rem 0.72rem;
    border-radius: 0.72rem;
}

.btn-danger,
.btn-primary {
    background: linear-gradient(135deg, var(--bmd-primary), var(--bmd-accent));
    border-color: transparent;
}

.btn-danger:hover,
.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-outline-danger {
    color: var(--bmd-primary);
    border-color: rgba(227, 0, 22, 0.3);
}

.page-header-card .btn,
.filter-bar .btn,
.summary-bar .btn {
    flex-shrink: 0;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 0, 22, 0.14);
    border-color: rgba(227, 0, 22, 0.28);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--bmd-sidebar-width);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
        linear-gradient(180deg, #000000 0%, #090909 100%);
    color: var(--bmd-light);
    padding: 1.45rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-x: hidden;
    z-index: 1040;
    transition: width 0.28s ease, padding 0.28s ease, transform 0.3s ease;
}

.app-main {
    flex: 1;
    margin-left: var(--bmd-sidebar-width);
    min-width: 0;
    transition: margin-left 0.28s ease;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.35rem 0.8rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.topbar-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--bmd-muted);
}

.topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-toggle {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bmd-light);
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--bmd-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.user-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(227, 0, 22, 0.1);
    color: var(--bmd-primary);
}

.user-chip-name {
    font-size: 0.84rem;
    font-weight: 600;
}

.user-chip-role {
    color: var(--bmd-muted);
    letter-spacing: 0.08em;
    font-size: 0.68rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--bmd-primary), var(--bmd-accent));
    color: var(--bmd-light);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--bmd-shadow);
}

.sidebar-brand-copy {
    min-width: 0;
}

.sidebar-brand-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-brand-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.9rem;
    border-radius: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.98rem;
}

.sidebar-link-label {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-parent-arrow {
    margin-left: auto;
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.sidebar-link[aria-expanded="true"] .sidebar-parent-arrow {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 2.25rem;
}

.sidebar-sublink {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: var(--bmd-light);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(227, 0, 22, 0.95), rgba(242, 54, 10, 0.9));
    color: var(--bmd-light);
    transform: translateX(1px);
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-footer-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-content {
    padding: 0.15rem 1.35rem 1.6rem;
}

.section-card,
.stat-card,
.table-card,
.auth-card,
.auth-copy-card,
.profile-panel {
    border: 1px solid var(--bmd-border);
    border-radius: var(--bmd-radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--bmd-shadow);
}

.page-section {
    margin-bottom: 1.5rem;
}

.page-header-card {
    padding: 1rem 1.15rem;
    border-radius: var(--bmd-radius);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.96), rgba(32, 32, 32, 0.95));
    color: var(--bmd-light);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.page-header-card h2 {
    font-size: 1.14rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.page-header-card p {
    margin: 0;
    font-size: 0.89rem;
    color: rgba(255, 255, 255, 0.78);
}

.stat-card {
    padding: 1.25rem;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 0, 22, 0.18), transparent 72%);
}

.stat-label {
    color: var(--bmd-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.48rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}

.stat-note {
    color: #374151;
    margin-bottom: 0;
}

.section-card {
    padding: 1.2rem;
}

.service-builder-card {
    padding: 1.25rem;
}

.service-builder-block {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f9 100%);
}

.builder-divider {
    height: 1px;
    margin: 1.3rem 0;
    background: linear-gradient(90deg, transparent, rgba(227, 0, 22, 0.16), transparent);
}

.section-title {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.section-step {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--bmd-primary);
    font-weight: 700;
}

.section-subtitle {
    color: var(--bmd-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.filter-bar,
.summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.table-card {
    padding: 1.1rem;
}

.table-card .table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.78rem;
    color: var(--bmd-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom-width: 1px;
}

.table tbody td {
    vertical-align: middle;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-soft.primary {
    color: var(--bmd-primary);
    background: rgba(227, 0, 22, 0.1);
}

.badge-soft.warning {
    color: #8a5b00;
    background: rgba(255, 193, 7, 0.18);
}

.badge-soft.success {
    color: #117a37;
    background: rgba(25, 135, 84, 0.16);
}

.badge-soft.danger {
    color: #9b1c1c;
    background: rgba(220, 53, 69, 0.16);
}

.summary-item {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--bmd-border);
    background: linear-gradient(180deg, #ffffff 0%, #fff9f9 100%);
}

.summary-item p {
    color: var(--bmd-muted);
    margin-bottom: 0.35rem;
}

.summary-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.admin-module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-module-tabs .nav-link {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 0.62rem 1rem;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
}

.admin-module-tabs .nav-link.active {
    color: var(--bmd-light);
    border-color: transparent;
    background: linear-gradient(135deg, var(--bmd-primary), var(--bmd-accent));
    box-shadow: 0 12px 24px rgba(227, 0, 22, 0.16);
}

.module-tab-pane {
    padding-top: 0.5rem;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: rgba(227, 0, 22, 0.04);
}

.context-panel {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(227, 0, 22, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.product-editor-modal {
    max-width: 840px;
}

.product-editor-modal .modal-content {
    max-height: 84vh;
}

.product-editor-modal .modal-header,
.product-editor-modal .modal-footer {
    padding: 0.85rem 1rem;
}

.product-editor-modal .modal-body {
    padding: 0.95rem 1rem;
    overflow-y: auto;
}

.product-editor-modal .context-panel {
    padding: 0.85rem 0.95rem;
}

.product-editor-modal .form-label {
    margin-bottom: 0.3rem;
    font-size: 0.83rem;
}

.product-editor-modal .form-control,
.product-editor-modal .form-select {
    padding: 0.54rem 0.72rem;
}

.product-editor-modal .form-alert {
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.85rem;
}

.product-editor-modal .form-check {
    margin-top: 0.2rem;
}

.help-icon-button {
    line-height: 1;
}

.help-icon-button:hover,
.help-icon-button:focus {
    color: var(--bmd-primary) !important;
}

.product-description-toolbar {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-radius: 0.8rem 0.8rem 0 0;
    background: #fffdfd;
}

.product-description-editor {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 0.8rem 0.8rem;
    background: #ffffff;
}

.product-description-editor .ql-editor {
    min-height: 140px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 0.8rem 0.9rem;
}

.product-description-editor .ql-editor.ql-blank::before {
    font-style: normal;
    color: #9ca3af;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--bmd-muted);
}

.modal-content {
    border: none;
    border-radius: var(--bmd-radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.modal-header {
    background: linear-gradient(135deg, #101010, #1c1c1c);
    color: var(--bmd-light);
    border-bottom: none;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loader-overlay.show {
    display: flex;
}

.loader-card {
    min-width: 180px;
    text-align: center;
    padding: 1.35rem;
    border-radius: 1rem;
    background: var(--bmd-light);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.loader-card .spinner-border {
    margin-bottom: 0.75rem;
}

.sidebar-overlay {
    display: none;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-section {
    width: min(1180px, 100%);
}

.auth-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-copy {
    padding: 2.2rem;
    border-radius: calc(var(--bmd-radius) + 0.35rem);
    background:
        radial-gradient(circle at top right, rgba(242, 54, 10, 0.28), transparent 26%),
        linear-gradient(135deg, #050505 0%, #141414 45%, #2a0d10 100%);
    color: var(--bmd-light);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.2);
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
}

.auth-copy h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.auth-copy p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.auth-copy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.auth-copy-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--bmd-light);
}

.auth-copy-card i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #ffb3a8;
}

.auth-card {
    padding: 2rem;
}

.auth-card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.auth-login-section {
    width: min(1120px, 100%);
}

.auth-panel-compact {
    gap: 1.2rem;
    align-items: center;
}

.auth-copy-compact,
.auth-card-compact {
    height: 100%;
}

.auth-copy-compact {
    padding: 1.65rem;
}

.auth-login-section .auth-kicker {
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.72rem;
    font-size: 0.72rem;
}

.auth-login-section .auth-copy h1 {
    font-size: clamp(1.4rem, 2.1vw, 1.82rem);
    margin-bottom: 0.7rem;
}

.auth-login-section .auth-copy p {
    font-size: 0.87rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.auth-feature-grid {
    margin-top: 0.95rem;
}

.auth-login-section .auth-copy-card {
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
}

.auth-feature-icon {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    color: #ffb3a8;
}

.auth-feature-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.auth-feature-copy {
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

.auth-card-compact {
    padding: 1.45rem;
}

.auth-login-section .auth-card-header {
    margin-bottom: 0.85rem;
}

.auth-login-section .auth-card-header p {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.auth-login-section .auth-card-header h2 {
    font-size: 1.08rem;
}

.auth-login-section .form-alert {
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-login-section .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
}

.auth-login-section .form-control {
    padding: 0.58rem 0.75rem;
}

.auth-login-section .btn {
    padding: 0.6rem 0.9rem;
}

@media (min-width: 992px) {
    .auth-login-section {
        min-height: calc(100vh - 2rem);
        display: flex;
        align-items: center;
    }

    .auth-login-section .auth-panel {
        width: 100%;
    }
}

.profile-panel {
    padding: 1.35rem;
}

.selected-customer-card {
    background:
        radial-gradient(circle at top right, rgba(242, 54, 10, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fff9f9 100%);
}

.service-builder-side {
    position: sticky;
    top: 6rem;
}

.service-summary-panel .form-label {
    margin-bottom: 0.35rem;
}

.profile-item-label {
    color: var(--bmd-muted);
    font-size: 0.84rem;
    margin-bottom: 0.25rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
}

.detail-card {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #fff9f9;
    border: 1px solid rgba(227, 0, 22, 0.08);
}

.detail-card p {
    color: var(--bmd-muted);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.detail-card strong {
    display: block;
    font-size: 0.93rem;
}

.service-hero {
    padding: 1.25rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(242, 54, 10, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(33, 33, 33, 0.94));
    color: var(--bmd-light);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.service-hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 0.35rem;
}

.service-hero-title {
    font-size: 1.16rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.service-hero-note {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.service-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.service-hero-meta .badge-soft {
    background: rgba(255, 255, 255, 0.12);
    color: var(--bmd-light);
}

.coupon-selection-list {
    max-height: 320px;
    overflow: auto;
    padding-right: 0.3rem;
}

.selected-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(227, 0, 22, 0.08);
    color: var(--bmd-primary);
    font-size: 0.82rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 300px;
    overflow: auto;
}

.comment-item {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fcfcfc;
}

.comment-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
    color: var(--bmd-muted);
    font-size: 0.8rem;
}

.comment-item-body {
    line-height: 1.55;
}

.inline-create-panel {
    border: 1px dashed rgba(227, 0, 22, 0.24);
    border-radius: 1rem;
    padding: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f9 100%);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.summary-grid-tight {
    gap: 0.75rem;
}

.summary-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.summary-span-full {
    grid-column: 1 / -1;
}

.summary-subsection {
    margin-bottom: 1rem;
}

.summary-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
}

.code-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.code-preview-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(227, 0, 22, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.code-preview-item strong {
    display: block;
    margin-bottom: 0.15rem;
}

.code-preview-item span,
.code-preview-item small {
    color: var(--bmd-muted);
}

.sales-qty-input {
    min-width: 92px;
}

.compact-table-wrap {
    max-height: 320px;
    overflow: auto;
}

.compact-table-wrap.compact-short {
    max-height: 190px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(227, 0, 22, 0.08);
    color: var(--bmd-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

body.sidebar-collapsed .app-sidebar {
    width: var(--bmd-sidebar-collapsed-width);
    padding: 1.25rem 0.85rem;
}

body.sidebar-collapsed .app-main {
    margin-left: var(--bmd-sidebar-collapsed-width);
}

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

body.sidebar-collapsed .sidebar-brand-copy,
body.sidebar-collapsed .sidebar-link-label {
    display: none;
}

body.sidebar-collapsed .sidebar-nav {
    align-items: center;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    width: 100%;
    padding: 0.8rem;
}

body.sidebar-collapsed .sidebar-link:hover,
body.sidebar-collapsed .sidebar-link.active {
    transform: none;
}

body.sidebar-collapsed .sidebar-subnav {
    display: none;
}

.data-point {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.data-point:last-child {
    border-bottom: none;
}

.data-point-label {
    color: var(--bmd-muted);
}

.pagination .page-link {
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--bmd-primary), var(--bmd-accent));
    border-color: transparent;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-main {
        margin-left: 0;
    }

    body.sidebar-collapsed .app-sidebar {
        width: 280px;
        padding: 1.75rem 1.25rem;
    }

    body.sidebar-collapsed .app-main {
        margin-left: 0;
    }

    body.sidebar-collapsed .sidebar-brand {
        justify-content: flex-start;
    }

    body.sidebar-collapsed .sidebar-brand-copy,
    body.sidebar-collapsed .sidebar-link-label {
        display: block;
    }

    body.sidebar-collapsed .sidebar-nav {
        align-items: stretch;
    }

    body.sidebar-collapsed .sidebar-link {
        justify-content: flex-start;
        padding: 0.78rem 0.95rem;
    }

    body.sidebar-collapsed .sidebar-subnav {
        display: flex;
        margin-left: 2.25rem;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.38);
        z-index: 1030;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .topbar,
    .app-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-copy-grid {
        grid-template-columns: 1fr;
    }

    .auth-copy-compact,
    .auth-card-compact {
        padding: 1.3rem;
    }

    .auth-feature-grid {
        margin-top: 0.85rem;
    }

    .service-builder-side {
        position: static;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }

    .user-chip {
        flex: 1;
    }

    .filter-bar > *,
    .summary-bar > * {
        width: 100%;
    }

    .summary-detail-grid {
        grid-template-columns: 1fr;
    }

    .code-preview-item {
        flex-direction: column;
    }
}
