:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #edf1f5;
    --text: #182434;
    --muted: #617086;
    --line: rgba(24, 36, 52, 0.09);
    --primary: #2f5d8a;
    --primary-deep: #1f4263;
    --success: #2c7a55;
    --danger: #b84f4f;
    --sidebar: #162231;
}

body[data-theme="dark"] {
    --bg: #0f1722;
    --surface: #16212f;
    --surface-soft: #1d2a3a;
    --text: #edf2f7;
    --muted: #9aa9bc;
    --line: rgba(188, 202, 221, 0.12);
    --primary: #6d97bf;
    --primary-deep: #4e7397;
    --success: #5da97c;
    --danger: #e08282;
    --sidebar: #0d1520;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(47, 93, 138, 0.08), transparent 34%),
        linear-gradient(180deg, #f9fbfc 0%, var(--bg) 100%);
    color: var(--text);
    scroll-behavior: smooth;
}
body.app-body {
    overflow-x: hidden;
}

body.language-gate-open {
    overflow: hidden;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
iframe.skiptranslate,
.skiptranslate:not(#google_translate_element) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0 !important;
}

.modal {
    z-index: 20020 !important;
}

.modal-backdrop {
    z-index: 20010 !important;
}

.modal .modal-content {
    position: relative;
    z-index: 1;
}

.language-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(13, 21, 32, 0.52);
    backdrop-filter: blur(14px);
}

.language-gate-card {
    width: min(520px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    padding: 1.5rem;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
    box-shadow: 0 30px 90px rgba(13, 21, 32, 0.24);
}

.language-gate-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.language-gate-card h2 {
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    margin: 0 0 0.6rem;
}

.language-gate-card p {
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.language-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.language-gate-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

body[data-theme="dark"] .surface-panel,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .table,
body[data-theme="dark"] .quick-action-card,
body[data-theme="dark"] .accordion-item,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .offcanvas {
    background-color: rgba(15, 26, 43, 0.92) !important;
    color: var(--text);
    border-color: var(--line) !important;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .alert-light,
body[data-theme="dark"] .bg-light-subtle,
body[data-theme="dark"] pre,
body[data-theme="dark"] code {
    background-color: #13233a !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

body[data-theme="dark"] .table thead th,
body[data-theme="dark"] .text-muted,
body[data-theme="dark"] .text-muted-soft,
body[data-theme="dark"] .page-description,
body[data-theme="dark"] small {
    color: var(--muted) !important;
}

body[data-theme="dark"] .btn-light {
    background: #13233a;
    color: var(--text);
    border-color: var(--line);
}

body[data-theme="dark"] .topbar-shell,
body[data-theme="dark"] .topbar-user-chip {
    background:
        linear-gradient(180deg, rgba(15, 26, 43, 0.92), rgba(19, 35, 58, 0.94)) !important;
    border-color: var(--line) !important;
}
body[data-theme="dark"] .topbar-balance-pill {
    background: rgba(19, 35, 58, 0.9);
    border-color: var(--line);
}
body[data-theme="dark"] .topbar-balance-dropdown {
    background: rgba(15, 26, 43, 0.98);
    border-color: var(--line);
}
body[data-theme="dark"] .topbar-balance-dropdown-item + .topbar-balance-dropdown-item {
    border-top-color: rgba(255, 255, 255, 0.06);
}
body[data-theme="dark"] .topbar-balance-dropdown-value {
    color: #7fc0ff;
}
body[data-theme="dark"] .topbar-balance-icon {
    background: rgba(82, 168, 255, 0.12);
}
body[data-theme="dark"] .topbar-balance-pill.is-low {
    background: rgba(74, 57, 20, 0.92);
}
body[data-theme="dark"] .topbar-balance-pill.is-empty {
    background: rgba(72, 29, 29, 0.9);
}

body[data-theme="dark"] .quick-action-card.active,
body[data-theme="dark"] .quick-action-card {
    border-color: var(--line);
}
.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(47, 93, 138, 0.12), transparent 24%),
        radial-gradient(circle at 90% 18%, rgba(22, 34, 49, 0.06), transparent 22%),
        linear-gradient(180deg, #fbfcfd 0%, #eef2f6 52%, #f6f8fa 100%);
    color: var(--text);
}

.landing-shell {
    width: min(1380px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 2.5rem;
}

.landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(16, 27, 45, 0.08);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text);
}

.landing-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #4d7aa4, #2f5d8a);
    box-shadow: 0 12px 24px rgba(47, 93, 138, 0.16);
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.landing-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.landing-brand-copy strong {
    font-family: "Manrope", sans-serif;
    font-size: 1.02rem;
}

.landing-brand-copy small {
    color: var(--muted);
    font-size: 0.8rem;
}

.landing-nav {
    display: inline-flex;
    align-items: center;
    gap: 1.3rem;
}

.landing-nav a,
.landing-action-link {
    color: var(--muted);
    font-weight: 600;
}

.landing-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-btn {
    border-radius: 999px;
    padding-inline: 1.2rem;
}

.landing-main {
    padding-top: 1.4rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 1.4rem;
    align-items: stretch;
}

.landing-hero-copy,
.landing-hero-panel,
.landing-section,
.landing-bottom-cta {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-radius: 34px;
    box-shadow: 0 16px 34px rgba(16, 27, 45, 0.07);
}

.landing-hero-copy {
    padding: clamp(1.8rem, 3vw, 3rem);
}

.landing-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.77rem;
    font-weight: 800;
    color: var(--primary);
}

.landing-hero-copy h1,
.landing-section-heading h2,
.landing-bottom-copy h2 {
    margin: 0.85rem 0 1rem;
    font-family: "Manrope", sans-serif;
    line-height: 0.96;
}

.landing-hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 5.1rem);
    max-width: 11ch;
}

.landing-lead {
    max-width: 56rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.landing-cta-row {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.landing-primary-cta,
.landing-secondary-cta {
    padding: 0.95rem 1.4rem;
    border-radius: 20px;
    font-weight: 700;
}

.landing-secondary-cta {
    background: rgba(15, 108, 189, 0.08);
    border-color: rgba(15, 108, 189, 0.14);
}

.landing-micro-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 1.4rem;
    color: var(--text);
    font-size: 0.95rem;
}

.landing-micro-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
}

.landing-micro-points i {
    color: var(--success);
}

.landing-hero-panel {
    padding: 1.1rem;
}

.landing-signal-card {
    height: 100%;
    border-radius: 26px;
    padding: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(15, 108, 189, 0.12), transparent 28%),
        linear-gradient(155deg, rgba(8, 25, 50, 0.98), rgba(14, 45, 80, 0.95));
    color: #f4f8ff;
}

.landing-signal-header,
.landing-price-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(102, 217, 150, 0.12);
    color: #bff2d1;
    font-weight: 700;
    font-size: 0.78rem;
}

.landing-signal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1rem;
}

.landing-signal-item {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-signal-item strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.7rem;
    font-family: "Manrope", sans-serif;
}

.landing-signal-item p,
.landing-price-strip span {
    color: rgba(244, 248, 255, 0.72);
    margin: 0.45rem 0 0;
    line-height: 1.6;
}

.landing-signal-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: rgba(244, 248, 255, 0.7);
}

.landing-price-strip {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.landing-price-strip strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.landing-price-strip i {
    font-size: 1.4rem;
    color: #8ad1ff;
}

.landing-section {
    margin-top: 1.4rem;
    padding: clamp(1.4rem, 2.5vw, 2.2rem);
}

.landing-section-heading {
    max-width: 56rem;
}

.landing-section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.landing-section-heading p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.landing-feature-card,
.landing-workflow-step {
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 244, 255, 0.78));
    border: 1px solid rgba(22, 32, 49, 0.08);
}

.landing-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 0.9rem;
    background: rgba(15, 108, 189, 0.08);
    color: var(--primary);
    font-size: 1.1rem;
}

.landing-feature-card h3 {
    margin: 0 0 0.55rem;
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
}

.landing-feature-card p,
.landing-workflow-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.landing-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.landing-step-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    background: rgba(15, 108, 189, 0.1);
    color: var(--primary);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.landing-bottom-cta {
    margin-top: 1.4rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.landing-bottom-copy {
    max-width: 44rem;
}

.landing-bottom-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-site-footer {
    margin-top: 1.4rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.landing-site-footer p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.landing-site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
}

.landing-site-footer-links a {
    color: var(--muted);
    font-weight: 600;
}

.public-page-hero h1 {
    margin: 0.85rem 0 0.95rem;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.25rem);
    line-height: 0.96;
}

.public-page-hero p {
    margin: 0;
    max-width: 60rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.public-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 1rem;
}

.public-page-sections {
    display: grid;
    gap: 1rem;
}

.public-page-card {
    padding: 1.3rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 108, 189, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 245, 255, 0.8));
    box-shadow: 0 18px 40px rgba(11, 36, 72, 0.06);
}

.public-page-card h2 {
    margin: 0 0 0.75rem;
    font-family: "Manrope", sans-serif;
    font-size: 1.25rem;
}

.public-page-card p {
    margin: 0.6rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.public-page-list {
    margin: 0.85rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted);
    line-height: 1.75;
}

.public-page-sidebar {
    display: grid;
    align-self: start;
}

body[data-theme="dark"] .landing-body,
body[data-theme="dark"].landing-body {
    background:
        radial-gradient(circle at top left, rgba(82, 168, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #07111d 0%, #09111d 100%);
}

body[data-theme="dark"] .landing-topbar,
body[data-theme="dark"] .landing-hero-copy,
body[data-theme="dark"] .landing-hero-panel,
body[data-theme="dark"] .landing-section,
body[data-theme="dark"] .landing-bottom-cta,
body[data-theme="dark"] .landing-feature-card,
body[data-theme="dark"] .landing-workflow-step {
    background: rgba(15, 26, 43, 0.9);
    border-color: var(--line);
}

body[data-theme="dark"] .public-page-card,
body[data-theme="dark"] .landing-site-footer {
    background: rgba(15, 26, 43, 0.9);
    border-color: var(--line);
}

body[data-theme="dark"] .landing-brand,
body[data-theme="dark"] .landing-nav a,
body[data-theme="dark"] .landing-action-link {
    color: var(--text);
}

@media (max-width: 1200px) {
    .landing-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .landing-shell {
        width: min(100% - 1rem, 100%);
    }

    .landing-topbar,
    .landing-bottom-cta,
    .landing-site-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-nav,
    .landing-actions,
    .landing-bottom-actions {
        justify-content: flex-start;
    }

    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-workflow-grid {
        grid-template-columns: 1fr;
    }

    .public-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing-shell {
        width: min(100% - 0.8rem, 100%);
        padding-top: 0.7rem;
    }

    .landing-topbar,
    .landing-hero-copy,
    .landing-hero-panel,
    .landing-section,
    .landing-bottom-cta {
        border-radius: 24px;
    }

    .landing-nav {
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero-copy h1 {
        max-width: none;
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .landing-cta-row,
    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-micro-points {
        flex-direction: column;
        align-items: flex-start;
    }
}
h1, h2, h3, h4, .sidebar-title, .page-title { font-family: "Manrope", sans-serif; }
a { text-decoration: none; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 2.2vw, 2rem);
    background:
        radial-gradient(circle at 12% 12%, rgba(47, 93, 138, 0.12), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(4, 19, 38, 0.08), transparent 26%),
        linear-gradient(180deg, #f7faff 0%, #eef3fa 100%);
}
.auth-panel {
    width: min(1120px, 100%);
    min-height: min(760px, calc(100vh - 2.5rem));
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 32px 70px rgba(16, 27, 45, 0.14);
    border-radius: 34px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
    backdrop-filter: blur(14px);
}
.auth-copy {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    color: #f4f8ff;
    background:
        radial-gradient(circle at 24% 22%, rgba(109, 151, 191, 0.14), transparent 22%),
        radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(155deg, rgba(4, 19, 38, 0.96), rgba(15, 37, 70, 0.92)),
        linear-gradient(180deg, #2f5d8a, #1f4263);
}
.auth-copy-inner {
    width: 100%;
    max-width: 34rem;
    margin-right: auto;
    padding: clamp(2rem, 4vw, 3.4rem);
}
.eyebrow, .page-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
}
.auth-copy .eyebrow { color: rgba(255, 255, 255, 0.72); }
.auth-copy h1 {
    font-size: clamp(2.6rem, 4.7vw, 4.6rem);
    line-height: 0.94;
    margin: 0.9rem 0 1.15rem;
    max-width: 7ch;
}
.auth-copy p {
    max-width: 28rem;
    font-size: 1.03rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}
.auth-points {
    margin: 2.1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}
.auth-points li {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
}
.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.24)),
        radial-gradient(circle at 80% 20%, rgba(47, 93, 138, 0.05), transparent 26%);
}
.auth-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding: clamp(1.9rem, 3vw, 2.8rem);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(22, 32, 49, 0.08);
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(16, 27, 45, 0.08);
}
.auth-card .alert {
    border-radius: 18px;
}
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.app-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent), var(--sidebar);
    color: #eef4ff;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100vh;
    position: sticky;
    top: 0;
    will-change: transform, opacity;
}
.sidebar-brand { display: flex; gap: 0.9rem; align-items: center; }
.sidebar-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4d7aa4, #2f5d8a);
    font-weight: 800;
    font-family: "Manrope", sans-serif;
}
.sidebar-title { font-size: 1.05rem; font-weight: 800; }
.sidebar-subtitle { color: rgba(238, 244, 255, 0.7); font-size: 0.86rem; }
.sidebar-nav { display: grid; gap: 0.45rem; }
.sidebar-group {
    display: grid;
    gap: 0.2rem;
}
.sidebar-group > summary {
    list-style: none;
    cursor: pointer;
}
.sidebar-group > summary::-webkit-details-marker {
    display: none;
}
.sidebar-link {
    color: rgba(238, 244, 255, 0.86);
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}
.sidebar-group-toggle {
    width: 100%;
}
.sidebar-group-toggle .sidebar-group-chevron {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.sidebar-group[open] .sidebar-group-chevron {
    transform: rotate(180deg);
}
.sidebar-subnav {
    display: grid;
    gap: 0.25rem;
    margin: 0.15rem 0 0.25rem 1.1rem;
    padding-left: 0.7rem;
    border-left: 1px solid rgba(238, 244, 255, 0.14);
}
.sidebar-sublink {
    padding: 0.58rem 0.75rem;
    border-radius: 11px;
    font-size: 0.92rem;
}
.sidebar-sublink i {
    font-size: 0.9rem;
}
.sidebar-link.locked {
    opacity: 0.6;
}
.sidebar-link.locked .sidebar-lock-note {
    margin-left: auto;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(238, 244, 255, 0.72);
}
.sidebar-link:hover, .sidebar-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(109, 151, 191, 0.12));
    color: #ffffff;
}
.sidebar-footer { margin-top: auto; padding: 1rem; background: rgba(255, 255, 255, 0.06); border-radius: 18px; }
.app-main { padding: 1.6rem; }
.app-topbar {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1080;
}
.topbar-shell {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.92)),
        radial-gradient(circle at top right, rgba(47, 93, 138, 0.06), transparent 34%);
    border: 1px solid rgba(201, 216, 235, 0.68);
    box-shadow: 0 10px 24px rgba(16, 27, 45, 0.05);
    transition: padding 0.25s ease, transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: visible;
}
.topbar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
}
.topbar-toolbar-start,
.topbar-toolbar-end {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}
.topbar-toolbar-start {
    flex: 1;
}
.topbar-toolbar-end {
    justify-content: flex-end;
    flex-wrap: wrap;
}
.topbar-heading { min-width: 0; flex: 1; }
.topbar-compact-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.topbar-menu-toggle { flex-shrink: 0; border-radius: 16px; }
.topbar-collapse-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}
.topbar-collapse-btn i {
    transition: transform 0.25s ease;
}
.topbar-details {
    display: grid;
    gap: 0.7rem;
    overflow: hidden;
    max-height: 220px;
    opacity: 1;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
}
.topbar-shell.is-collapsed {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
}
.topbar-shell.is-collapsed .topbar-toolbar {
    align-items: center;
}
.topbar-shell.is-collapsed .topbar-toolbar-start,
.topbar-shell.is-collapsed .topbar-toolbar-end {
    align-items: center;
}
.topbar-shell.is-collapsed .topbar-details {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}
.topbar-shell.is-collapsed .topbar-collapse-btn i {
    transform: rotate(180deg);
}
.topbar-shell.is-collapsed .topbar-summary-row {
    padding-top: 0;
}
.topbar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-width: 0;
}
.topbar-user-chip {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    flex: 1;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.topbar-user-name {
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    font-family: "Manrope", sans-serif;
}
.topbar-user-email {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-title {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    margin: 0;
    line-height: 1.06;
}
.page-description {
    margin: 0;
    color: var(--muted);
    max-width: 52rem;
    font-size: 0.98rem;
}
.topbar-page-tag {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.topbar-balance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}
.topbar-summary-row {
    padding-top: 0.1rem;
}
.topbar-balance-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1 1 220px;
    padding: 0.78rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(47, 93, 138, 0.1);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.topbar-balance-trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.topbar-balance-trigger .topbar-balance-copy {
    flex: 1 1 auto;
}
.topbar-balance-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
}
.topbar-balance-pill.is-low {
    border-color: rgba(196, 139, 28, 0.22);
    background: linear-gradient(180deg, rgba(255, 247, 227, 0.9), rgba(255, 255, 255, 0.7));
}
.topbar-balance-pill.is-empty {
    border-color: rgba(196, 68, 68, 0.12);
    background: linear-gradient(180deg, rgba(255, 241, 241, 0.92), rgba(255, 255, 255, 0.72));
}
.topbar-balance-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--primary);
    background: rgba(47, 93, 138, 0.1);
}
.topbar-balance-pill.is-low .topbar-balance-icon {
    color: #9a6a00;
    background: rgba(196, 139, 28, 0.14);
}
.topbar-balance-pill.is-empty .topbar-balance-icon {
    color: var(--danger);
    background: rgba(196, 68, 68, 0.1);
}
.topbar-balance-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}
.topbar-balance-label {
    font-size: 0.72rem;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}
.topbar-balance-value {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.topbar-balance-note {
    font-size: 0.76rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-balance-dropdown {
    min-width: 320px;
    padding: 0.45rem 0;
    border-radius: 18px;
    border: 1px solid rgba(47, 93, 138, 0.12);
    box-shadow: 0 18px 38px rgba(16, 27, 45, 0.14);
}
.topbar-balance-dropdown-header {
    padding: 0.2rem 1rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.topbar-balance-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
}
.topbar-balance-dropdown-item + .topbar-balance-dropdown-item {
    border-top: 1px solid rgba(47, 93, 138, 0.08);
}
.topbar-balance-dropdown-copy {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}
.topbar-balance-dropdown-title {
    font-weight: 700;
    color: var(--text);
}
.topbar-balance-dropdown-meta {
    color: var(--muted);
    font-size: 0.84rem;
}
.topbar-balance-dropdown-value {
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}
.topbar-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.topbar-badge {
    top: 0.18rem !important;
    left: calc(100% - 0.06rem) !important;
    transform: translate(-18%, -34%) !important;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(196, 68, 68, 0.28);
}
.topbar-logout {
    flex-shrink: 0;
    min-height: 42px;
    border-radius: 14px;
}
.notification-dropdown {
    width: min(360px, 92vw);
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    z-index: 2000;
    border: 1px solid rgba(24, 36, 52, 0.08);
    box-shadow: 0 22px 44px rgba(16, 27, 45, 0.16);
}
.topbar-notification-wrap {
    position: relative;
}
.notification-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(360px, 92vw);
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    z-index: 2000;
    border: 1px solid rgba(24, 36, 52, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(16, 27, 45, 0.16);
}
.notification-panel[hidden] {
    display: none !important;
}
.notification-dropdown .dropdown-header {
    padding: 0.9rem 1rem;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}
.notification-panel .dropdown-header {
    padding: 0.9rem 1rem;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}
.notification-item {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    white-space: normal;
}
.notification-title { font-weight: 700; margin-bottom: 0.2rem; }
.notification-copy { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.2rem; }
.notification-empty { padding: 1rem; color: var(--muted); }
.notification-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2500;
    display: grid;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 2rem));
}
.notification-toast {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(24, 36, 52, 0.08);
    box-shadow: 0 20px 44px rgba(16, 27, 45, 0.16);
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.notification-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.notification-toast-bar {
    height: 4px;
    background: var(--primary);
}
.notification-toast.warning .notification-toast-bar {
    background: #b98510;
}
.notification-toast.danger .notification-toast-bar {
    background: var(--danger);
}
.notification-toast.success .notification-toast-bar {
    background: var(--success);
}
.notification-toast-body {
    padding: 0.95rem 1rem 1rem;
}
.notification-toast-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.notification-toast-title {
    font-weight: 800;
    color: var(--text);
}
.notification-toast-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0;
    line-height: 1;
}
.notification-toast-copy {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}
.notification-toast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.notification-toast-link {
    color: var(--primary);
    font-weight: 700;
}
.mobile-nav-bar {
    display: none;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(16, 27, 45, 0.06);
}
.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mobile-nav-copy {
    min-width: 0;
}
.mobile-nav-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--primary);
}
.mobile-nav-title {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-balance-strip {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}
.mobile-balance-strip .topbar-balance-pill {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.72rem 0.78rem;
}
.mobile-balance-strip .topbar-balance-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}
.mobile-balance-strip .topbar-balance-value {
    font-size: 0.96rem;
}
.mobile-balance-strip .topbar-balance-note {
    white-space: normal;
}
.page-content { animation: riseIn 0.45s ease; }
.surface-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(16, 27, 45, 0.07);
    border-radius: 24px;
    padding: 1.4rem;
    min-width: 0;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}
.surface-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(16, 27, 45, 0.1);
    border-color: rgba(15, 108, 189, 0.16);
}
.quick-action-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--text);
}
.quick-action-card.active {
    background: linear-gradient(180deg, rgba(47, 93, 138, 0.08), rgba(47, 93, 138, 0.03));
}
.quick-action-copy p { margin: 0.35rem 0 0; color: var(--muted); }
.quick-action-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--primary); display: block; margin-bottom: 0.2rem; }
.quick-action-icon { display: inline-flex; align-items: center; }
.stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.9));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(16, 27, 45, 0.1);
    border-color: rgba(47, 93, 138, 0.16);
}
.stat-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-size: 2rem; font-family: "Manrope", sans-serif; font-weight: 800; margin-top: 0.4rem; }
.stat-meta { color: var(--muted); font-size: 0.92rem; }
.quick-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid rgba(47, 93, 138, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.quick-link:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 30px rgba(47, 93, 138, 0.08);
    border-color: rgba(47, 93, 138, 0.18);
}
.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom-width: 1px;
}
.badge-soft { padding: 0.45rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-soft.success { background: rgba(31, 139, 76, 0.14); color: var(--success); }
.badge-soft.warning { background: rgba(215, 146, 25, 0.14); color: #a66b00; }
.badge-soft.danger { background: rgba(196, 68, 68, 0.14); color: var(--danger); }
.badge-soft.info { background: rgba(47, 93, 138, 0.12); color: var(--primary); }
.section-title { font-family: "Manrope", sans-serif; font-size: 1.2rem; font-weight: 800; }
.text-muted-soft { color: var(--muted); }
.notification-copy,
.notification-empty,
.stat-meta,
.page-description,
small.text-muted-soft {
    color: var(--muted) !important;
}
.auth-form .form-control, .auth-form .form-select, .surface-panel .form-control, .surface-panel .form-select {
    border-radius: 14px;
    padding: 0.92rem 1rem;
    border-color: rgba(22, 32, 49, 0.12);
}
.auth-form .form-label {
    font-weight: 600;
    color: #31425b;
    margin-bottom: 0.45rem;
}
.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: rgba(47, 93, 138, 0.28);
    box-shadow: 0 0 0 0.22rem rgba(47, 93, 138, 0.12);
}
.auth-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.auth-helper-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 93, 138, 0.08);
    color: #51627d;
    font-size: 0.82rem;
}
.auth-helper-pill strong {
    color: #1f2e43;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); border-color: transparent; }
@keyframes riseIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }
    .app-sidebar {
        display: none;
    }
    .app-main {
        padding: 1rem;
    }
    .app-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }
    .topbar-user {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    .topbar-identity {
        order: 3;
        width: 100%;
        max-width: 100%;
        text-align: left !important;
    }
    .topbar-logout {
        margin-left: auto;
    }
    .surface-panel,
    .stat-card,
    .command-link,
    .quick-action-card {
        border-radius: 20px;
    }
    .offcanvas.offcanvas-start {
        width: min(320px, 84vw);
    }
    #mobileSidebar .offcanvas-body {
        background: var(--sidebar);
    }
    #mobileSidebar .app-sidebar {
        display: flex;
        min-height: 100%;
        position: static;
        padding-bottom: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .mobile-balance-strip {
        grid-template-columns: 1fr;
    }
}

/* Colorful professional interaction theme */
:root {
    --bg: #eef5ff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-soft: #eef6ff;
    --text: #142238;
    --muted: #60718b;
    --line: rgba(28, 47, 76, 0.11);
    --primary: #2563eb;
    --primary-deep: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --success: #12a06a;
    --danger: #dc3d5a;
    --sidebar: #101b34;
    --app-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 48%, #f43f5e 100%);
    --app-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.10), rgba(244, 63, 94, 0.12));
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    background:
        radial-gradient(circle at 10% 4%, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(244, 63, 94, 0.13), transparent 24%),
        radial-gradient(circle at 45% 88%, rgba(6, 182, 212, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #edf4ff 48%, #f7f2ff 100%);
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 18%, rgba(6, 182, 212, 0.28), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(244, 63, 94, 0.22), transparent 25%),
        radial-gradient(circle at 52% 88%, rgba(124, 58, 237, 0.22), transparent 30%),
        linear-gradient(135deg, #0d1730 0%, #12295f 46%, #38145c 100%);
}

.auth-shell {
    background: transparent;
    padding: clamp(0.85rem, 2vw, 1.6rem);
    position: relative;
    overflow: hidden;
}

.auth-shell::before {
    content: "";
    position: fixed;
    inset: -20%;
    background:
        conic-gradient(from 140deg at 50% 50%, rgba(37, 99, 235, 0.28), rgba(6, 182, 212, 0.2), rgba(244, 63, 94, 0.24), rgba(245, 158, 11, 0.16), rgba(37, 99, 235, 0.28));
    filter: blur(58px);
    opacity: 0.74;
    animation: gradientDrift 16s ease-in-out infinite alternate;
    pointer-events: none;
}

.auth-panel {
    position: relative;
    width: min(1120px, 100%);
    min-height: min(760px, calc(100vh - 2rem));
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.10)),
        radial-gradient(circle at 24% 22%, rgba(6, 182, 212, 0.24), transparent 30%),
        radial-gradient(circle at 78% 22%, rgba(244, 63, 94, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(14, 27, 57, 0.92), rgba(26, 31, 86, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 34px 90px rgba(6, 18, 46, 0.38);
    border-radius: 30px;
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.auth-titlebar {
    grid-column: 1 / -1;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 1.6rem);
    background: rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.auth-titlebar-brand,
.auth-titlebar-status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.auth-titlebar-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.35;
}

.auth-titlebar-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #06b6d4, #7c3aed 60%, #f43f5e);
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

.auth-titlebar-status {
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-copy,
.auth-card-wrap {
    background: transparent;
}

.auth-copy {
    color: #fff;
}

.auth-copy-inner {
    max-width: 39rem;
}

.auth-copy .eyebrow {
    color: #8ee8ff;
}

.auth-copy h1 {
    max-width: 11ch;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.auth-points li {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.24s ease, background 0.24s ease;
}

.auth-points li:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.15);
}

.auth-card-wrap {
    padding: clamp(1rem, 3vw, 2rem);
}

.auth-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 24px 64px rgba(5, 17, 46, 0.26);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--app-gradient);
}

.auth-form .form-control,
.auth-form .form-select,
.surface-panel .form-control,
.surface-panel .form-select {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(37, 99, 235, 0.13);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus,
.surface-panel .form-control:focus,
.surface-panel .form-select:focus {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.42);
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.10), 0 12px 26px rgba(37, 99, 235, 0.10);
}

.app-main {
    background:
        radial-gradient(circle at 28% 0%, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at 95% 22%, rgba(244, 63, 94, 0.10), transparent 28%);
    min-width: 0;
}

.app-sidebar {
    background:
        radial-gradient(circle at 20% 6%, rgba(6, 182, 212, 0.20), transparent 28%),
        radial-gradient(circle at 80% 28%, rgba(124, 58, 237, 0.22), transparent 25%),
        linear-gradient(180deg, #0f1e3d 0%, #11152f 58%, #23113a 100%);
    box-shadow: 16px 0 44px rgba(15, 23, 42, 0.14);
}

.sidebar-mark,
.landing-brand-mark {
    background: var(--app-gradient);
}

.sidebar-link.active,
.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(124, 58, 237, 0.20));
    border-color: rgba(255, 255, 255, 0.12);
}

.topbar-shell,
.mobile-nav-bar {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.84)),
        var(--app-gradient-soft) !important;
    border: 1px solid rgba(255, 255, 255, 0.84) !important;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.10);
}

.surface-panel,
.stat-card,
.quick-action-card,
.command-link,
.dashboard-hero,
.mission-panel,
.signal-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
        var(--app-gradient-soft);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.09);
}

.surface-panel,
.stat-card {
    border-radius: 20px;
}

.page-content {
    padding-top: 1.15rem !important;
}

.btn-primary,
.btn-outline-primary:hover {
    background: var(--app-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.btn {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn.is-loading {
    pointer-events: none;
    filter: saturate(1.12);
}

.btn-loader {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    margin-right: 0.55rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    vertical-align: -0.15rem;
    animation: spinLoader 0.72s linear infinite;
}

.app-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 4000;
    width: min(390px, calc(100vw - 2rem));
    display: grid;
    gap: 0.8rem;
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
    transform: translate3d(18px, -10px, 0) scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: auto;
}

.app-toast.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.app-toast-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--app-gradient);
}

.app-toast.success .app-toast-icon {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.app-toast.warning .app-toast-icon {
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.app-toast.danger .app-toast-icon {
    background: linear-gradient(135deg, #ef4444, #7c3aed);
}

.app-toast-title {
    font-weight: 800;
    color: var(--text);
}

.app-toast-message {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.app-toast-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.1rem;
}

@keyframes gradientDrift {
    from { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
    to { transform: translate3d(2%, 1%, 0) rotate(10deg) scale(1.04); }
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-titlebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-copy-inner {
        max-width: none;
        padding-bottom: 0.5rem;
    }

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

@media (max-width: 575.98px) {
    .auth-titlebar-status {
        width: 100%;
        justify-content: center;
    }

    .app-toast-host {
        top: 0.75rem;
        right: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .auth-card {
        padding: 1.35rem;
    }
}

.admin-dashboard-shell {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dashboard-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(52, 197, 255, 0.24), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(16, 97, 255, 0.18), transparent 24%),
        linear-gradient(145deg, #071426 0%, #0d1f3b 54%, #112b4d 100%);
    border: 1px solid rgba(126, 180, 255, 0.14);
    border-radius: 32px;
    box-shadow: 0 34px 90px rgba(6, 16, 34, 0.28);
    padding: 1.6rem;
}

.dashboard-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    animation: dashboardFloat 9s ease-in-out infinite;
}

.dashboard-orb-one {
    width: 180px;
    height: 180px;
    right: -30px;
    top: -20px;
    background: rgba(0, 214, 255, 0.12);
}

.dashboard-orb-two {
    width: 150px;
    height: 150px;
    left: 34%;
    bottom: -40px;
    background: rgba(82, 126, 255, 0.16);
    animation-delay: 1.8s;
}

.dashboard-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1.25rem;
}

.mission-panel,
.signal-panel,
.kpi-tile,
.command-board,
.pulse-panel,
.route-panel,
.stream-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(152, 190, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mission-panel,
.signal-panel {
    border-radius: 28px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    min-height: 100%;
}

.mission-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(122, 203, 255, 0.86);
}

.mission-title {
    margin: 0.8rem 0 0.9rem;
    color: #f7fbff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 3rem);
    line-height: 1.03;
    max-width: 12ch;
}

.mission-copy {
    color: rgba(223, 234, 250, 0.82);
    max-width: 52ch;
    margin-bottom: 1.25rem;
}

.mission-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.mission-metric {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(152, 190, 255, 0.1);
}

.mission-metric span,
.signal-grid span {
    display: block;
    color: rgba(211, 223, 241, 0.7);
    font-size: 0.8rem;
}

.mission-metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 0.35rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #eff7ff;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(152, 190, 255, 0.14);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-action.primary {
    background: linear-gradient(135deg, rgba(26, 171, 255, 0.28), rgba(24, 105, 255, 0.18));
}

.hero-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(171, 209, 255, 0.24);
    color: #fff;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.signal-header h3 {
    margin: 0.25rem 0 0;
    color: #f5f9ff;
    font-family: "Manrope", sans-serif;
    font-size: 1.25rem;
}

.signal-label {
    color: rgba(146, 200, 255, 0.8);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.signal-badge,
.route-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(130, 183, 255, 0.14);
    color: #8cc8ff;
    font-size: 0.76rem;
    font-weight: 700;
}

.signal-rings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.signal-ring {
    padding: 1rem 0.85rem;
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-ring span {
    display: block;
    font-size: 0.78rem;
    color: rgba(223, 234, 250, 0.72);
}

.signal-ring strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 1.35rem;
    font-family: "Manrope", sans-serif;
}

.signal-ring.delivered { box-shadow: inset 0 0 0 1px rgba(31, 139, 76, 0.25); }
.signal-ring.failed { box-shadow: inset 0 0 0 1px rgba(196, 68, 68, 0.25); }
.signal-ring.pending { box-shadow: inset 0 0 0 1px rgba(15, 108, 189, 0.25); }

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

.signal-grid div {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.signal-grid strong {
    display: block;
    color: #fff;
    margin-top: 0.35rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-tile {
    border-radius: 26px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.9));
}

.kpi-tile::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(15, 108, 189, 0.14), transparent 70%);
}

.kpi-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--muted);
}

.kpi-value {
    display: block;
    margin: 0.5rem 0 0.55rem;
    font-family: "Manrope", sans-serif;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--text);
}

.kpi-tile p {
    margin: 0;
    color: var(--muted);
    max-width: 20ch;
}

.command-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.command-link {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(245, 248, 255, 0.95), rgba(236, 242, 252, 0.88));
    border: 1px solid rgba(15, 108, 189, 0.09);
    color: var(--text);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.command-link strong {
    display: block;
    font-family: "Manrope", sans-serif;
    margin-bottom: 0.3rem;
}

.command-link span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.command-link i {
    font-size: 1.2rem;
    color: var(--primary);
}

.command-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 108, 189, 0.12);
    color: var(--text);
}

.pulse-panel {
    background:
        radial-gradient(circle at top, rgba(41, 171, 255, 0.12), transparent 50%),
        rgba(255, 255, 255, 0.85);
}

.route-panel,
.stream-panel,
.command-board,
.pulse-panel {
    border-radius: 26px;
}

.route-row,
.stream-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(22, 32, 49, 0.08);
}

.route-row:last-child,
.stream-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.route-row strong,
.stream-row strong {
    display: block;
    font-family: "Manrope", sans-serif;
    color: var(--text);
}

.route-row small,
.stream-row small {
    display: block;
    color: #52647a;
    font-size: 0.84rem;
    line-height: 1.45;
}

.surface-panel .stream-row,
.surface-panel .route-row,
.alert-light .stream-row,
.alert-light .route-row {
    color: var(--text);
}

.surface-panel .stream-row small,
.surface-panel .route-row small,
.alert-light .stream-row small,
.alert-light .route-row small {
    color: #52647a !important;
}

.surface-panel .text-muted-soft,
.surface-panel small.text-muted-soft,
.quick-action-card .text-muted-soft,
.quick-action-card small.text-muted-soft {
    color: #5b6c82 !important;
}

.form-text,
.form-label,
.surface-panel label {
    color: #263548;
}

.sidebar-footer .text-muted,
.sidebar-footer .small {
    color: rgba(238, 244, 255, 0.68) !important;
}

.route-panel .route-row small,
.stream-panel .stream-row small,
.command-board .stream-row small,
.pulse-panel .stream-row small,
.dashboard-hero .stream-row small,
.dashboard-hero .route-row small {
    color: rgba(211, 223, 241, 0.7) !important;
}

body[data-theme="dark"] .surface-panel .stream-row small,
body[data-theme="dark"] .surface-panel .route-row small,
body[data-theme="dark"] .alert-light .stream-row small,
body[data-theme="dark"] .alert-light .route-row small,
body[data-theme="dark"] .surface-panel .text-muted-soft,
body[data-theme="dark"] .quick-action-card .text-muted-soft {
    color: var(--muted) !important;
}

.chart-shell {
    width: 100%;
    overflow-x: auto;
}

.chart-shell canvas {
    width: 100%;
    min-height: 260px;
    border-radius: 20px;
    background: rgba(15, 108, 189, 0.02);
}

.dashboard-table tbody tr {
    transition: transform 0.2s ease, background 0.2s ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(15, 108, 189, 0.035);
    transform: translateX(4px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    animation: dashboardReveal 0.7s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--delay, 0s);
}

.motion-enter {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
    transition:
        opacity 0.7s cubic-bezier(.2,.8,.2,1),
        transform 0.7s cubic-bezier(.2,.8,.2,1),
        filter 0.7s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--motion-delay, 0ms);
    filter: blur(8px);
}

.motion-enter.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.motion-enter.motion-enter-left {
    transform: translate3d(-26px, 12px, 0) scale(0.985);
}

.motion-enter.motion-enter-right {
    transform: translate3d(26px, 12px, 0) scale(0.985);
}

.motion-enter.motion-enter-scale {
    transform: translate3d(0, 18px, 0) scale(0.95);
}

.motion-enter.is-visible.motion-enter-left,
.motion-enter.is-visible.motion-enter-right,
.motion-enter.is-visible.motion-enter-scale {
    transform: translate3d(0, 0, 0) scale(1);
}

.topbar-shell:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 27, 45, 0.07);
    border-color: rgba(15, 108, 189, 0.12);
}

.sidebar-link,
.btn,
.badge-soft,
.table tbody tr,
.alert,
.auth-card,
.mobile-nav-bar {
    will-change: transform, opacity;
}

.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

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

.btn:active {
    transform: translateY(0) scale(0.985);
}

body[data-theme="dark"] .surface-panel:hover,
body[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

@keyframes dashboardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashboardFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(10px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .motion-enter,
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

@media (max-width: 991.98px) {
    .auth-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .auth-copy {
        min-height: auto;
    }
    .auth-copy-inner {
        padding: 1.5rem;
    }
    .auth-copy h1 {
        font-size: clamp(2.1rem, 8vw, 3.2rem);
        max-width: 100%;
    }
    .auth-copy p {
        max-width: 100%;
    }
    .auth-points {
        gap: 0.75rem;
    }
    .auth-card-wrap {
        justify-content: stretch;
    }
    .auth-card {
        width: 100%;
        max-width: none;
    }
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { display: none; }
    .offcanvas .app-sidebar { display: flex; min-height: 100%; }
    .app-main { padding: 1rem; }
    .dashboard-hero-grid,
    .dashboard-kpi-grid,
    .command-links { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .auth-shell {
        padding: 0.75rem;
    }
    .auth-panel {
        border-radius: 24px;
    }
    .auth-card-wrap {
        padding: 1rem;
    }
    .auth-copy-inner {
        padding: 1.25rem;
    }
    .auth-card {
        padding: 1.5rem;
        border-radius: 22px;
    }
    .auth-copy h1 {
        max-width: 100%;
    }
    .stat-value { font-size: 1.7rem; }
    .mission-metrics,
    .signal-rings,
    .signal-grid { grid-template-columns: 1fr; }
    .dashboard-hero { padding: 1.1rem; border-radius: 24px; }
    .mission-title { font-size: 1.8rem; }
    .kpi-value { font-size: 1.8rem; }
    .topbar-icon-btn {
        width: 42px;
        height: 42px;
    }
    .sidebar-footer {
        padding: 0.85rem;
    }
}

@media (max-width: 991.98px) {
    .app-topbar {
        display: none;
    }
    .mobile-nav-bar {
        display: flex;
    }
    .mobile-balance-strip {
        display: grid;
    }
    .page-header {
        display: none;
    }
    .topbar-shell {
        padding: 0.82rem 0.9rem 0.92rem;
        border-radius: 20px;
    }
    .topbar-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .topbar-toolbar-start,
    .topbar-toolbar-end {
        width: 100%;
    }
    .topbar-toolbar-start {
        align-items: flex-start;
    }
    .topbar-toolbar-end {
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.55rem;
    }
    .topbar-logout {
        margin-left: auto;
        min-width: 84px;
        padding-inline: 0.75rem;
    }
    .topbar-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .topbar-page-tag {
        display: none;
    }
    .page-title {
        font-size: clamp(1.1rem, 6vw, 1.35rem);
        line-height: 1.08;
    }
    .page-description {
        max-width: 100%;
        font-size: 0.92rem;
    }
    .topbar-balance-row {
        display: grid;
        grid-template-columns: 1fr;
    }
    .surface-panel {
        padding: 1rem;
    }
    .dashboard-kpi-grid,
    .command-links,
    .hero-actions,
    .signal-rings,
    .signal-grid,
    .mission-metrics {
        grid-template-columns: 1fr !important;
    }
    .mission-panel,
    .signal-panel,
    .dashboard-hero {
        border-radius: 22px;
        padding: 1rem;
    }
    .route-row,
    .stream-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .route-pill,
    .signal-badge {
        align-self: flex-start;
    }
    .chart-shell canvas {
        min-height: 220px;
    }
    .btn,
    .form-control,
    .form-select {
        min-height: 44px;
    }
    .table-responsive {
        overflow: visible;
    }
    .table-responsive > .table.mobile-stack {
        display: block;
        width: 100%;
        border-collapse: separate;
    }
    .table-responsive > .table.mobile-stack thead {
        display: none;
    }
    .table-responsive > .table.mobile-stack tbody,
    .table-responsive > .table.mobile-stack tr,
    .table-responsive > .table.mobile-stack td {
        display: block;
        width: 100%;
    }
    .table-responsive > .table.mobile-stack tbody tr {
        margin-bottom: 0.9rem;
        padding: 0.9rem 0.95rem;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(16, 27, 45, 0.06);
    }
    body[data-theme="dark"] .table-responsive > .table.mobile-stack tbody tr {
        background: rgba(15, 26, 43, 0.92);
    }
    .table-responsive > .table.mobile-stack tbody tr > td {
        border: 0 !important;
        padding: 0.45rem 0;
    }
    .table-responsive > .table.mobile-stack tbody tr > td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.73rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
    }
    .table-responsive > .table.mobile-stack tbody tr > td:first-child {
        padding-top: 0;
    }
    .table-responsive > .table.mobile-stack tbody tr > td:last-child {
        padding-bottom: 0;
    }
    .table-responsive > .table.mobile-stack tbody tr > td .btn,
    .table-responsive > .table.mobile-stack tbody tr > td form .btn {
        width: 100%;
    }
    .table-responsive > .table.mobile-stack tbody tr > td .d-flex {
        flex-direction: column;
        width: 100%;
    }
    .table-responsive > .table.mobile-stack tbody tr > td .flex-wrap {
        flex-wrap: nowrap !important;
    }
    .table-responsive > .table.mobile-stack tbody tr > td form {
        width: 100%;
    }
}

body.compact-ui .page-title {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.05;
}

body.compact-ui .page-description {
    max-width: 100%;
}

body.compact-ui .surface-panel {
    padding: 1rem;
}

body.compact-ui .dashboard-kpi-grid,
body.compact-ui .command-links,
body.compact-ui .hero-actions,
body.compact-ui .signal-rings,
body.compact-ui .signal-grid,
body.compact-ui .mission-metrics {
    grid-template-columns: 1fr !important;
}

body.compact-ui .mission-panel,
body.compact-ui .signal-panel,
body.compact-ui .dashboard-hero {
    border-radius: 22px;
    padding: 1rem;
}

body.compact-ui .route-row,
body.compact-ui .stream-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

body.compact-ui .topbar-shell {
    padding: 0.82rem 0.9rem 0.92rem;
    border-radius: 20px;
}

body.compact-ui .app-topbar {
    display: none;
}

body.compact-ui .mobile-nav-bar {
    display: flex;
}
body.compact-ui .mobile-balance-strip {
    display: grid;
    grid-template-columns: 1fr;
}

body.compact-ui .page-header {
    display: none;
}

body.compact-ui .topbar-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

body.compact-ui .topbar-toolbar-start,
body.compact-ui .topbar-toolbar-end {
    width: 100%;
}

body.compact-ui .topbar-toolbar-end {
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

body.compact-ui .topbar-icon-btn,
body.compact-ui .topbar-logout {
    min-height: 40px;
}

body.compact-ui .topbar-logout {
    margin-left: auto;
    min-width: 84px;
    padding-inline: 0.75rem;
}

body.compact-ui .topbar-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

body.compact-ui .topbar-page-tag {
    display: none;
}

body.compact-ui .route-pill,
body.compact-ui .signal-badge {
    align-self: flex-start;
}

body.compact-ui .table-responsive {
    overflow: visible;
}

body.compact-ui .table-responsive > .table.mobile-stack {
    display: block;
    width: 100%;
    border-collapse: separate;
}

body.compact-ui .table-responsive > .table.mobile-stack thead {
    display: none;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody,
body.compact-ui .table-responsive > .table.mobile-stack tr,
body.compact-ui .table-responsive > .table.mobile-stack td {
    display: block;
    width: 100%;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr {
    margin-bottom: 0.9rem;
    padding: 0.9rem 0.95rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(16, 27, 45, 0.06);
}

body[data-theme="dark"].compact-ui .table-responsive > .table.mobile-stack tbody tr {
    background: rgba(15, 26, 43, 0.92);
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td {
    border: 0 !important;
    padding: 0.45rem 0;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td:first-child {
    padding-top: 0;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td:last-child {
    padding-bottom: 0;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td .btn,
body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td form .btn {
    width: 100%;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td .d-flex {
    flex-direction: column;
    width: 100%;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td .flex-wrap {
    flex-wrap: nowrap !important;
}

body.compact-ui .table-responsive > .table.mobile-stack tbody tr > td form {
    width: 100%;
}

body.compact-ui .dashboard-table strong,
body.compact-ui .table strong {
    word-break: break-word;
}
