:root {
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-primary-soft: #eff6ff;

    --app-bg: #f5f7fb;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-border: #e5eaf2;

    --app-text: #152033;
    --app-text-muted: #64748b;
    --app-text-soft: #94a3b8;

    --app-sidebar: #101827;
    --app-sidebar-2: #162033;
    --app-sidebar-text: #cbd5e1;
    --app-sidebar-muted: #7f8ca3;
    --app-sidebar-active: #ffffff;
    --app-sidebar-active-bg: rgba(59, 130, 246, .17);

    --app-success: #059669;
    --app-success-soft: #ecfdf5;
    --app-warning: #d97706;
    --app-warning-soft: #fff7ed;
    --app-danger: #dc2626;
    --app-danger-soft: #fef2f2;
    --app-purple: #7c3aed;
    --app-purple-soft: #f5f3ff;

    --app-radius-sm: 10px;
    --app-radius: 16px;
    --app-radius-lg: 24px;

    --app-shadow-sm:
        0 1px 2px rgba(15, 23, 42, .04),
        0 4px 14px rgba(15, 23, 42, .035);

    --app-shadow:
        0 10px 30px rgba(15, 23, 42, .07);

    --sidebar-width: 278px;
    --sidebar-collapsed-width: 84px;
    --topbar-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
}

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

/* =========================================================
   SHARED BOOTSTRAP REFINEMENTS
   ========================================================= */

.btn {
    border-radius: 10px;
    font-weight: 650;
    padding: .62rem 1rem;
}

.btn-sm {
    border-radius: 8px;
    padding: .42rem .72rem;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    box-shadow:
        0 6px 16px rgba(37, 99, 235, .16);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #dce3ed;
    border-radius: 10px;
    color: var(--app-text);
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #93b4fb;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08) !important;
}

.form-control[readonly] {
    background: #f8fafc;
}

.form-label {
    color: #344054;
    font-size: .86rem;
    font-weight: 650;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}

.card-header {
    background: var(--app-surface);
    border-bottom-color: var(--app-border);
}

.table {
    --bs-table-color: var(--app-text);
    --bs-table-hover-bg: #f8fafc;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: .82rem .8rem;
    border-bottom-color: #edf1f6;
}

.table thead th {
    color: #667085;
    background: #fbfcfe;
    border-bottom-width: 1px;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}

.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow:
        0 24px 70px rgba(15, 23, 42, .2);
}

.modal-header,
.modal-footer {
    border-color: var(--app-border);
}

.dropdown-menu {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: var(--app-shadow);
    padding: .45rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: .58rem .7rem;
    font-size: .9rem;
}

.dropdown-item:active {
    background: var(--app-primary);
}

/* =========================================================
   ERP APP SHELL
   ========================================================= */

.app-body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow: hidden;
    color: var(--app-sidebar-text);
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(59, 130, 246, .16),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--app-sidebar) 0%,
            #0d1523 100%
        );
    border-right: 1px solid rgba(255,255,255,.05);
    transition:
        width .22s ease,
        transform .22s ease;
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left .22s ease;
}

.sidebar-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 10px;
    padding: 0 14px 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-link {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.brand-link:hover {
    color: #fff;
}

.brand-mark,
.landing-brand-mark,
.auth-brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #4f8cff,
            #2563eb
        );
    border-radius: 13px;
    box-shadow:
        0 10px 22px rgba(37, 99, 235, .27);
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: .98rem;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: #7f8ca3;
    font-size: .69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-collapse-btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #91a0b6;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 9px;
    transition: .15s ease;
}

.sidebar-collapse-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
}

.sidebar-search-wrap {
    position: relative;
    margin: 17px 14px 12px;
}

.sidebar-search-wrap > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #7f8ca3;
    font-size: .9rem;
    transform: translateY(-50%);
}

.sidebar-search-wrap input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 38px;
    color: #e5edf8;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    outline: none;
    font-size: .84rem;
    transition: .15s ease;
}

.sidebar-search-wrap input::placeholder {
    color: #748197;
}

.sidebar-search-wrap input:focus {
    background: rgba(255,255,255,.075);
    border-color: rgba(96, 165, 250, .4);
}

.sidebar-search-clear {
    position: absolute;
    top: 50%;
    right: 9px;
    display: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #8b98ab;
    background: transparent;
    border: 0;
    transform: translateY(-50%);
}

.sidebar-search-clear.visible {
    display: inline-flex;
}

.sidebar-nav {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 12px 18px;
    scrollbar-color: rgba(148,163,184,.22) transparent;
    scrollbar-width: thin;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.2);
    border-radius: 10px;
}

.sidebar-link {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    margin: 2px 0;
    padding: 8px 11px;
    color: #aeb9ca;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 560;
    transition:
        color .15s ease,
        background .15s ease;
}

.sidebar-link:hover {
    color: #eef4ff;
    background: rgba(255,255,255,.055);
}

.sidebar-link.active {
    color: var(--app-sidebar-active);
    background: var(--app-sidebar-active-bg);
    box-shadow:
        inset 3px 0 0 #60a5fa;
}

.sidebar-icon {
    display: inline-flex;
    width: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-group {
    margin-top: 13px;
}

.sidebar-group-toggle {
    display: flex;
    width: 100%;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
    padding: 3px 9px 5px;
    color: #6f7d92;
    background: transparent;
    border: 0;
    font-size: .67rem;
    font-weight: 760;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.sidebar-group-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.sidebar-group-title > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-group-title > i {
    display: none;
}

.sidebar-group-chevron {
    font-size: .68rem;
    transition: transform .16s ease;
}

.sidebar-group.collapsed .sidebar-group-chevron {
    transform: rotate(-90deg);
}

.sidebar-group.collapsed .sidebar-group-items {
    display: none;
}

.sidebar-empty-state,
.sidebar-no-search-results {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 3px;
    padding: 12px;
    color: #7f8ca3;
    background: rgba(255,255,255,.035);
    border-radius: 10px;
    font-size: .78rem;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 13px;
    padding: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 12px;
}

.sidebar-footer-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    color: #86efac;
    background: rgba(34,197,94,.1);
    border-radius: 9px;
}

.sidebar-footer-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sidebar-footer-copy strong {
    color: #dde6f3;
    font-size: .78rem;
}

.sidebar-footer-copy small {
    margin-top: 2px;
    color: #78879c;
    font-size: .66rem;
}

/* Collapsed desktop sidebar */

.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

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

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .sidebar-search-wrap input,
.sidebar-collapsed .sidebar-search-wrap > i,
.sidebar-collapsed .sidebar-search-clear,
.sidebar-collapsed .sidebar-link-text,
.sidebar-collapsed .sidebar-group-toggle,
.sidebar-collapsed .sidebar-footer-copy {
    display: none !important;
}

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

.sidebar-collapsed .brand-link {
    flex: 0 0 auto;
}

.sidebar-collapsed .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
}

.sidebar-collapsed .sidebar-collapse-btn {
    position: absolute;
    top: 62px;
    right: -14px;
    z-index: 2;
    width: 28px;
    height: 28px;
    background: #172033;
    border-color: rgba(255,255,255,.1);
}

.sidebar-collapsed .sidebar-search-wrap {
    height: 0;
    margin: 8px 0 1px;
}

.sidebar-collapsed .sidebar-nav {
    padding: 12px 10px;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 9px 8px;
}

.sidebar-collapsed .sidebar-icon {
    width: 26px;
    flex-basis: 26px;
    font-size: 1.08rem;
}

.sidebar-collapsed .sidebar-group {
    margin-top: 8px;
}

.sidebar-collapsed .sidebar-group-items {
    display: block !important;
}

.sidebar-collapsed .sidebar-footer {
    justify-content: center;
    padding: 9px;
}

/* Topbar */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1025;
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 27px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 0;
    gap: 12px;
}

.topbar-right {
    gap: 9px;
}

.topbar-menu-btn {
    display: none !important;
}

.topbar-title-wrap {
    min-width: 0;
}

.topbar-eyebrow {
    display: block;
    margin-bottom: 1px;
    color: #98a2b3;
    font-size: .68rem;
    font-weight: 760;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.topbar-page-title {
    max-width: 540px;
    margin: 0;
    overflow: hidden;
    color: #172033;
    font-size: 1.15rem;
    font-weight: 730;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-icon-btn {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #59667a;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    transition: .15s ease;
}

.topbar-icon-btn:hover {
    color: var(--app-primary);
    background: #f8fbff;
    border-color: #cfdcf2;
}

.topbar-notification-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: content-box;
}

.user-menu-button {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
    padding: 5px 7px 5px 5px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: .15s ease;
}

.user-menu-button:hover {
    background: #f8fafc;
    border-color: var(--app-border);
}

.user-avatar {
    display: inline-flex;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 800;
}

.user-menu-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.user-menu-copy strong {
    overflow: hidden;
    color: #253047;
    font-size: .83rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-copy small {
    margin-top: 2px;
    color: #98a2b3;
    font-size: .69rem;
}

.user-menu-chevron {
    color: #98a2b3;
    font-size: .73rem;
}

.app-user-dropdown {
    min-width: 220px;
}

.app-content {
    min-height: calc(100vh - var(--topbar-height));
    padding: 25px 27px 34px;
}

.sidebar-overlay {
    display: none;
}

/* General app cards */

.app-card {
    padding: 21px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.app-card-header h3 {
    margin: 2px 0 0;
    color: #1b2739;
    font-size: 1rem;
    font-weight: 740;
}

.app-card-kicker,
.dashboard-kicker {
    color: #98a2b3;
    font-size: .68rem;
    font-weight: 760;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .58rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 720;
}

.status-pill-success {
    color: #047857;
    background: #ecfdf5;
}

/* Dashboard */

.dashboard-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 21px;
}

.dashboard-welcome h2 {
    margin: 4px 0 5px;
    color: #172033;
    font-size: 1.7rem;
    font-weight: 760;
    letter-spacing: -.03em;
}

.dashboard-welcome h2 span {
    color: var(--app-primary);
}

.dashboard-welcome p {
    max-width: 650px;
    margin: 0;
    color: var(--app-text-muted);
    font-size: .9rem;
}

.dashboard-date-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: var(--app-shadow-sm);
}

.dashboard-date-card > span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-radius: 9px;
}

.dashboard-date-card > div {
    display: flex;
    flex-direction: column;
}

.dashboard-date-card small {
    color: var(--app-text-soft);
    font-size: .68rem;
}

.dashboard-date-card strong {
    margin-top: 1px;
    color: #344054;
    font-size: .79rem;
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 4px;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}

.dashboard-stat-icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.12rem;
}

.soft-blue {
    color: #2563eb !important;
    background: #eff6ff !important;
}

.soft-green {
    color: #059669 !important;
    background: #ecfdf5 !important;
}

.soft-purple {
    color: #7c3aed !important;
    background: #f5f3ff !important;
}

.soft-orange {
    color: #d97706 !important;
    background: #fff7ed !important;
}

.dashboard-stat-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-stat-card small {
    color: #98a2b3;
    font-size: .68rem;
    font-weight: 650;
}

.dashboard-stat-card strong {
    margin-top: 2px;
    overflow: hidden;
    color: #253047;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stat-card > div > span {
    margin-top: 2px;
    overflow: hidden;
    color: #98a2b3;
    font-size: .69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setup-timeline {
    display: flex;
    flex-direction: column;
}

.setup-step {
    position: relative;
    display: flex;
    gap: 13px;
    padding: 2px 0 19px;
}

.setup-step:not(:last-child)::before {
    position: absolute;
    top: 33px;
    bottom: -1px;
    left: 16px;
    width: 1px;
    content: "";
    background: #e5eaf2;
}

.setup-step-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #dfe5ee;
    border-radius: 50%;
    font-size: .8rem;
}

.setup-step.complete .setup-step-icon {
    color: #fff;
    background: var(--app-success);
    border-color: var(--app-success);
}

.setup-step.active .setup-step-icon {
    color: #fff;
    background: var(--app-primary);
    border-color: var(--app-primary);
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, .08);
}

.setup-step > div {
    padding-top: 4px;
}

.setup-step strong {
    display: block;
    color: #2a3548;
    font-size: .84rem;
}

.setup-step p {
    margin: 3px 0 0;
    color: #7b8798;
    font-size: .76rem;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.quick-action-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 11px;
    transition: .15s ease;
}

.quick-action-item:hover {
    color: inherit;
    background: #f8fafc;
    border-color: #edf1f6;
}

.quick-action-item > span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.quick-action-item > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.quick-action-item strong {
    color: #344054;
    font-size: .8rem;
}

.quick-action-item small {
    margin-top: 2px;
    color: #98a2b3;
    font-size: .69rem;
}

.quick-action-item > i {
    color: #b0bac8;
    font-size: .72rem;
}

.platform-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
}

.platform-flow > i {
    align-self: center;
    color: #c2cad6;
}

.platform-flow-node {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    text-align: center;
    background: #fafbfd;
    border: 1px solid #edf1f6;
    border-radius: 12px;
}

.platform-flow-node > span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-radius: 10px;
}

.platform-flow-node strong {
    color: #344054;
    font-size: .77rem;
}

.platform-flow-node small {
    margin-top: 3px;
    color: #98a2b3;
    font-size: .65rem;
}

.dashboard-tip {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #f6f8ff
        );
    border: 1px solid #e3eafa;
    border-radius: 13px;
}

.dashboard-tip > span {
    display: inline-flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: #fff;
    border: 1px solid #dfe8f8;
    border-radius: 11px;
}

.dashboard-tip strong {
    display: block;
    color: #344054;
    font-size: .82rem;
}

.dashboard-tip p {
    margin-top: 3px !important;
    color: #7b8798;
    font-size: .73rem;
}

/* Empty / access denied */

.empty-state-card {
    max-width: 600px;
    margin: 7vh auto 0;
    padding: 44px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    box-shadow: var(--app-shadow-sm);
}

.empty-state-icon {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 18px;
    font-size: 1.65rem;
}

.empty-state-icon.danger {
    color: var(--app-danger);
    background: var(--app-danger-soft);
}

.empty-state-card h2 {
    font-size: 1.25rem;
    font-weight: 760;
}

.empty-state-card p {
    color: var(--app-text-muted);
}

/* Loader */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .12);
    backdrop-filter: blur(1px);
}

.page-loader-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    color: #344054;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    box-shadow: var(--app-shadow);
    font-size: .8rem;
    font-weight: 650;
}

/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f7f9fc;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns:
        minmax(380px, .95fr)
        minmax(520px, 1.05fr);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: 34px 42px;
    color: #fff;
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(96, 165, 250, .2),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 75%,
            rgba(124, 58, 237, .18),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0d1728 0%,
            #101b31 55%,
            #11172a 100%
        );
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
}

.auth-brand-panel::before {
    right: -140px;
    bottom: -180px;
    width: 520px;
    height: 520px;
}

.auth-brand-panel::after {
    top: 120px;
    left: -160px;
    width: 340px;
    height: 340px;
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.auth-brand:hover {
    color: #fff;
}

.auth-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.auth-brand strong {
    font-size: 1rem;
}

.auth-brand small {
    margin-top: 3px;
    color: #8f9caf;
    font-size: .68rem;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto 0;
}

.auth-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: #a9c4ff;
    font-size: .74rem;
    font-weight: 700;
}

.auth-brand-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.07;
}

.auth-brand-content h1 span {
    color: #79a6ff;
}

.auth-brand-content > p {
    max-width: 470px;
    margin: 19px 0 0;
    color: #a7b3c7;
    font-size: .94rem;
    line-height: 1.75;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 27px;
}

.auth-feature-list > div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d9e2ef;
    font-size: .84rem;
}

.auth-feature-list > div > span {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    color: #86efac;
    background: rgba(34,197,94,.12);
    border-radius: 7px;
}

.auth-brand-footer {
    position: relative;
    z-index: 2;
    color: #8390a4;
    font-size: .72rem;
}

.auth-form-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 45px 26px;
    background:
        linear-gradient(
            180deg,
            #fbfcfe,
            #f6f8fc
        );
}

.auth-form-panel-scroll {
    align-items: flex-start;
    overflow-y: auto;
}

.auth-form-wrap {
    width: min(100%, 450px);
}

.auth-form-wrap-wide {
    width: min(100%, 620px);
    padding: 20px 0 45px;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 25px;
}

.auth-mobile-brand .auth-brand {
    color: #172033;
}

.auth-mobile-brand .auth-brand small {
    color: #98a2b3;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    color: #667085;
    font-size: .78rem;
    font-weight: 650;
}

.auth-back-link:hover {
    color: var(--app-primary);
}

.auth-heading {
    margin-bottom: 26px;
}

.auth-heading h2 {
    margin: 3px 0 7px;
    color: #172033;
    font-size: 1.65rem;
    font-weight: 780;
    letter-spacing: -.03em;
}

.auth-heading p {
    margin: 0;
    color: #7b8798;
    font-size: .85rem;
    line-height: 1.65;
}

.auth-form-kicker {
    color: var(--app-primary);
    font-size: .7rem;
    font-weight: 780;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.auth-info-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -9px 0 20px;
    padding: 10px 12px;
    color: #52627a;
    background: #f0f6ff;
    border: 1px solid #dce9fb;
    border-radius: 10px;
    font-size: .73rem;
    line-height: 1.5;
}

.auth-info-note i {
    margin-top: 1px;
    color: var(--app-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field > label {
    color: #344054;
    font-size: .78rem;
    font-weight: 680;
}

.optional-label {
    margin-left: 5px;
    color: #98a2b3;
    font-size: .67rem;
    font-weight: 550;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: #98a2b3;
    transform: translateY(-50%);
}

.input-with-icon .form-control,
.input-with-icon .form-select {
    min-height: 48px;
    padding-left: 39px;
    background-color: #fff;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #8793a6;
    background: transparent;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--app-primary);
    background: #f5f8fc;
}

.auth-submit-btn {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 3px;
    border-radius: 11px;
}

.auth-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    color: #7b8798;
    font-size: .75rem;
}

.auth-help-row.single {
    justify-content: center;
}

.auth-help-row a {
    color: var(--app-primary);
    font-weight: 680;
}

.verification-icon {
    display: flex;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border: 1px solid #dbe8ff;
    border-radius: 18px;
    font-size: 1.7rem;
}

.verification-code-input {
    height: 58px;
    padding: 0 14px !important;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 760;
    letter-spacing: .45em;
}

.logout-screen {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background:
        linear-gradient(
            160deg,
            #f8fafc,
            #eef4ff
        );
}

.logout-card {
    width: min(100%, 420px);
    padding: 38px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    box-shadow: var(--app-shadow);
}

.logout-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-radius: 17px;
    font-size: 1.5rem;
}

.logout-card h2 {
    font-size: 1.2rem;
    font-weight: 760;
}

.logout-card p {
    color: var(--app-text-muted);
    font-size: .82rem;
}

/* =========================================================
   PUBLIC LANDING PAGE
   ========================================================= */

.public-body {
    min-height: 100vh;
    background: #fff;
}

.landing-page {
    overflow-x: hidden;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(226,232,240,.8);
    backdrop-filter: blur(15px);
}

.landing-nav-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #172033;
}

.landing-brand:hover {
    color: #172033;
}

.landing-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.landing-brand strong {
    font-size: .94rem;
    font-weight: 770;
}

.landing-brand small {
    margin-top: 2px;
    color: #98a2b3;
    font-size: .63rem;
}

.landing-brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 12px;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.landing-links a {
    color: #5e6b7f;
    font-size: .8rem;
    font-weight: 650;
}

.landing-links a:hover {
    color: var(--app-primary);
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-signin-btn {
    border-color: #e1e7ef;
}

.landing-primary-btn {
    background:
        linear-gradient(
            135deg,
            #2f6df6,
            #2563eb
        );
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 95px;
    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(37, 99, 235, .08),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(124, 58, 237, .075),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f7faff 100%
        );
}

.landing-hero::before {
    position: absolute;
    top: -220px;
    right: -180px;
    width: 520px;
    height: 520px;
    content: "";
    border: 1px solid rgba(37,99,235,.06);
    border-radius: 50%;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 11px;
    color: #476282;
    background: rgba(255,255,255,.8);
    border: 1px solid #dfe9f8;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 670;
    box-shadow: 0 6px 18px rgba(15,23,42,.035);
}

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

.landing-hero h1 {
    max-width: 710px;
    margin: 0;
    color: #101828;
    font-size: clamp(2.55rem, 5vw, 4.75rem);
    font-weight: 820;
    letter-spacing: -.06em;
    line-height: .99;
}

.landing-hero h1 span {
    display: block;
    color: var(--app-primary);
}

.hero-lead {
    max-width: 650px;
    margin: 23px 0 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-actions .btn-lg {
    min-height: 50px;
    padding-inline: 1.25rem;
    font-size: .9rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 25px;
}

.hero-proof > div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: .73rem;
    font-weight: 600;
}

.hero-proof i {
    color: #16a34a;
}

.hero-product-card {
    position: relative;
    min-height: 465px;
    padding: 22px;
    background:
        linear-gradient(
            160deg,
            rgba(255,255,255,.98),
            rgba(248,251,255,.98)
        );
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    box-shadow:
        0 30px 70px rgba(26,50,85,.14);
}

.hero-product-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9);
}

.hero-product-top,
.hero-flow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-mini-label,
.hero-flow-head small {
    display: block;
    color: #98a2b3;
    font-size: .64rem;
    font-weight: 720;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-product-top h3 {
    margin: 3px 0 0;
    color: #253047;
    font-size: 1rem;
    font-weight: 740;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 700;
}

.product-status > span {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-top: 19px;
}

.hero-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 13px;
}

.hero-metric-icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.hero-metric > div {
    display: flex;
    flex-direction: column;
}

.hero-metric small {
    color: #98a2b3;
    font-size: .63rem;
}

.hero-metric strong {
    margin-top: 1px;
    color: #253047;
    font-size: 1.05rem;
}

.hero-flow-card {
    margin-top: 15px;
    padding: 17px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 15px;
}

.hero-flow-head strong {
    display: block;
    margin-top: 2px;
    color: #344054;
    font-size: .82rem;
}

.hero-flow-head > span {
    color: var(--app-primary);
    font-size: .75rem;
    font-weight: 750;
}

.hero-progress {
    height: 6px;
    margin: 13px 0 14px;
    background: #eef2f7;
}

.hero-progress .progress-bar {
    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );
    border-radius: 999px;
}

.hero-step-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.hero-step-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #b0bac8;
    font-size: .58rem;
    text-align: center;
}

.hero-step-row > span i {
    font-size: .8rem;
}

.hero-step-row > span.done {
    color: #059669;
}

.hero-step-row > span.active {
    color: var(--app-primary);
    font-weight: 680;
}

.hero-floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    background: rgba(255,255,255,.96);
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    backdrop-filter: blur(12px);
}

.hero-floating-card > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-radius: 9px;
}

.hero-floating-card > div {
    display: flex;
    flex-direction: column;
}

.hero-floating-card strong {
    color: #344054;
    font-size: .7rem;
}

.hero-floating-card small {
    margin-top: 2px;
    color: #98a2b3;
    font-size: .58rem;
}

.hero-float-one {
    right: -18px;
    bottom: 54px;
}

.hero-float-two {
    bottom: -17px;
    left: 43px;
}

.landing-trust-strip {
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.trust-grid > div {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-right: 1px solid #edf1f6;
}

.trust-grid > div:last-child {
    border-right: 0;
}

.trust-grid i {
    color: var(--app-primary);
    font-size: 1.1rem;
}

.trust-grid span {
    display: flex;
    flex-direction: column;
    color: #98a2b3;
    font-size: .66rem;
}

.trust-grid strong {
    color: #475467;
    font-size: .75rem;
}

.landing-section {
    padding: 88px 0;
}

.section-heading {
    max-width: 730px;
    margin-bottom: 37px;
}

.section-heading.text-center {
    margin-inline: auto;
}

.section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--app-primary);
    font-size: .7rem;
    font-weight: 790;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-kicker.light {
    color: #9ec1ff;
}

.section-heading h2,
.businesses-intro h2,
.security-copy h2,
.landing-cta-card h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 790;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.section-heading p,
.businesses-intro > p {
    margin: 13px 0 0;
    color: #667085;
    font-size: .9rem;
    line-height: 1.7;
}

.workflow-section {
    background: #fff;
}

.workflow-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 13px;
}

.workflow-grid::before {
    position: absolute;
    top: 35px;
    right: 7%;
    left: 7%;
    z-index: 0;
    height: 1px;
    content: "";
    background: #e5eaf2;
}

.workflow-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.workflow-number {
    position: absolute;
    top: -8px;
    right: 20%;
    color: #cbd5e1;
    font-size: .62rem;
    font-weight: 750;
}

.workflow-icon {
    display: flex;
    width: 69px;
    height: 69px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--app-primary);
    background: #fff;
    border: 1px solid #dce5f1;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
    font-size: 1.3rem;
}

.workflow-item h3 {
    margin: 0;
    color: #344054;
    font-size: .82rem;
    font-weight: 730;
}

.workflow-item p {
    margin: 7px auto 0;
    color: #98a2b3;
    font-size: .7rem;
    line-height: 1.55;
}

.feature-section {
    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #f4f7fb
        );
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-card {
    min-height: 210px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 18px;
    box-shadow: var(--app-shadow-sm);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--app-shadow);
}

.feature-card-large {
    grid-column: span 2;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7faff
        );
}

.feature-card-wide {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 150px;
}

.feature-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-radius: 12px;
    font-size: 1.05rem;
}

.feature-card-wide .feature-icon {
    margin: 0;
    flex: 0 0 44px;
}

.feature-card h3 {
    margin: 0;
    color: #253047;
    font-size: 1rem;
    font-weight: 740;
}

.feature-card p {
    margin: 9px 0 0;
    color: #7b8798;
    font-size: .78rem;
    line-height: 1.65;
}

.feature-mini-ui {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.feature-mini-ui span {
    padding: 6px 9px;
    color: #667085;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    font-size: .65rem;
    font-weight: 650;
}

.feature-mini-ui span.active {
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-color: #dbe8ff;
}

.businesses-section {
    background: #fff;
}

.businesses-intro {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 55px;
    align-items: end;
    margin-bottom: 35px;
}

.business-type-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.business-type-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    transition: .16s ease;
}

.business-type-card:hover {
    border-color: #bfd3f7;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
    transform: translateY(-2px);
}

.business-type-card > span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-radius: 12px;
    font-size: 1.05rem;
}

.business-type-card strong {
    color: #475467;
    font-size: .74rem;
    line-height: 1.4;
}

.business-type-card small {
    color: #98a2b3;
    font-size: .62rem;
}

.business-type-custom {
    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #f6f5ff
        );
    border-style: dashed;
    border-color: #bcd0f2;
}

.business-rule-card {
    display: flex;
    max-width: 850px;
    align-items: center;
    gap: 15px;
    margin: 27px auto 0;
    padding: 16px 18px;
    color: #506075;
    background: #f8fafc;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
}

.business-rule-icon {
    display: inline-flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 11px;
}

.business-rule-card strong {
    display: block;
    color: #344054;
    font-size: .8rem;
}

.business-rule-card p {
    margin-top: 4px !important;
    font-size: .73rem;
    line-height: 1.55;
}

.security-section {
    padding-top: 40px;
    background: #fff;
}

.security-card {
    position: relative;
    display: grid;
    min-height: 410px;
    grid-template-columns: 1.15fr .85fr;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(96,165,250,.18),
            transparent 28%
        ),
        linear-gradient(
            140deg,
            #0f1b2f,
            #10172a
        );
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(15,23,42,.15);
}

.security-copy {
    align-self: center;
    padding: 54px;
}

.security-copy h2 {
    max-width: 620px;
    color: #fff;
}

.security-copy > p {
    max-width: 610px;
    margin: 16px 0 0;
    color: #a9b5c8;
    font-size: .88rem;
    line-height: 1.7;
}

.security-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 15px;
    margin-top: 26px;
}

.security-points span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #dbe4f2;
    font-size: .76rem;
}

.security-points i {
    color: #86efac;
}

.security-visual {
    position: relative;
    min-height: 380px;
}

.security-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #7c3aed
        );
    border: 8px solid rgba(255,255,255,.06);
    border-radius: 28px;
    box-shadow:
        0 22px 50px rgba(37,99,235,.26);
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
}

.security-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 250px;
    height: 250px;
}

.orbit-two {
    width: 340px;
    height: 340px;
}

.security-node {
    position: absolute;
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    color: #9ec1ff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    backdrop-filter: blur(8px);
}

.node-one {
    top: 23%;
    left: 22%;
}

.node-two {
    right: 20%;
    bottom: 24%;
}

.node-three {
    top: 26%;
    right: 18%;
}

.landing-cta-section {
    padding: 72px 0;
    background: #fff;
}

.landing-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 42px 46px;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.13),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8 55%,
            #4338ca
        );
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(37,99,235,.2);
}

.landing-cta-card h2 {
    max-width: 750px;
    color: #fff;
}

.landing-cta-card p {
    max-width: 690px;
    margin: 12px 0 0;
    color: #dbeafe;
    font-size: .84rem;
    line-height: 1.65;
}

.landing-cta-card .btn {
    flex: 0 0 auto;
    color: #1d4ed8;
    font-size: .85rem;
}

.landing-footer {
    padding: 53px 0 22px;
    background: #0f172a;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr;
    gap: 45px;
}

.landing-footer-brand {
    color: #fff;
}

.landing-footer-brand:hover {
    color: #fff;
}

.landing-footer-grid > div:first-child > p {
    max-width: 410px;
    margin: 17px 0 0;
    color: #7f8ca3;
    font-size: .73rem;
    line-height: 1.65;
}

.landing-footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-footer-grid > div:not(:first-child) strong {
    margin-bottom: 3px;
    color: #dbe3ef;
    font-size: .75rem;
}

.landing-footer-grid > div:not(:first-child) a {
    color: #7f8ca3;
    font-size: .7rem;
}

.landing-footer-grid > div:not(:first-child) a:hover {
    color: #fff;
}

.landing-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 18px;
    color: #66738a;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .65rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .dashboard-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .workflow-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 14px;
    }

    .workflow-grid::before {
        display: none;
    }

    .trust-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .auth-shell {
        grid-template-columns:
            minmax(330px, .78fr)
            minmax(500px, 1.22fr);
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        width: min(86vw, 290px) !important;
        transform: translateX(-105%);
        box-shadow: 16px 0 45px rgba(15,23,42,.18);
    }

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

    .sidebar-collapsed .brand-copy,
    .sidebar-collapsed .sidebar-search-wrap input,
    .sidebar-collapsed .sidebar-search-wrap > i,
    .sidebar-collapsed .sidebar-link-text,
    .sidebar-collapsed .sidebar-group-toggle,
    .sidebar-collapsed .sidebar-footer-copy {
        display: initial !important;
    }

    .sidebar-collapsed .sidebar-search-wrap input {
        display: block !important;
    }

    .sidebar-collapsed .sidebar-search-wrap > i {
        display: block !important;
    }

    .sidebar-collapsed .sidebar-brand {
        justify-content: initial;
        padding: 0 14px 0 18px;
    }

    .sidebar-collapsed .brand-link {
        flex: 1;
    }

    .sidebar-collapsed .sidebar-collapse-btn {
        position: static;
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,.045);
    }

    .sidebar-collapsed .sidebar-search-wrap {
        height: auto;
        margin: 17px 14px 12px;
    }

    .sidebar-collapsed .sidebar-nav {
        padding: 4px 12px 18px;
    }

    .sidebar-collapsed .sidebar-link {
        justify-content: initial;
        padding: 8px 11px;
    }

    .sidebar-collapsed .sidebar-group {
        margin-top: 13px;
    }

    .sidebar-collapsed .sidebar-footer {
        justify-content: initial;
        padding: 12px;
    }

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

    body.mobile-sidebar-open {
        overflow: hidden;
    }

    body.mobile-sidebar-open .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1035;
        display: block;
        background: rgba(15,23,42,.45);
        backdrop-filter: blur(2px);
    }

    .topbar-menu-btn {
        display: inline-flex !important;
    }

    .app-topbar {
        padding-inline: 18px;
    }

    .app-content {
        padding: 21px 18px 30px;
    }

    .platform-flow {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-flow > i {
        display: none;
    }

    .landing-hero {
        padding: 65px 0 75px;
    }

    .hero-product-card {
        max-width: 720px;
        margin-inline: auto;
    }

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

    .trust-grid > div {
        border-bottom: 1px solid #edf1f6;
    }

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

    .feature-card-large,
    .feature-card-wide {
        grid-column: span 2;
    }

    .businesses-intro {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .security-card {
        grid-template-columns: 1fr;
    }

    .security-visual {
        min-height: 310px;
    }

    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
    }

    .auth-mobile-brand {
        display: block;
    }

    .auth-mobile-brand .auth-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (max-width: 767.98px) {
    .user-menu-copy,
    .user-menu-chevron {
        display: none;
    }

    .user-menu-button {
        min-width: auto;
        padding: 0;
    }

    .app-topbar {
        min-height: 68px;
    }

    .topbar-eyebrow {
        display: none;
    }

    .topbar-page-title {
        max-width: 175px;
        font-size: .98rem;
    }

    .app-content {
        min-height: calc(100vh - 68px);
        padding: 18px 14px 28px;
    }

    .dashboard-welcome {
        flex-direction: column;
    }

    .dashboard-welcome h2 {
        font-size: 1.35rem;
    }

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

    .dashboard-date-card {
        width: 100%;
    }

    .platform-flow {
        grid-template-columns: 1fr;
    }

    .landing-nav-inner {
        min-height: 68px;
    }

    .landing-brand small {
        display: none;
    }

    .landing-actions .landing-signin-btn {
        display: none;
    }

    .landing-actions .btn {
        padding: .52rem .7rem;
        font-size: .72rem;
    }

    .landing-hero h1 {
        font-size: 2.6rem;
    }

    .hero-product-card {
        min-height: auto;
        padding: 16px;
    }

    .hero-floating-card {
        display: none;
    }

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

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid > div {
        min-height: 77px;
    }

    .landing-section {
        padding: 65px 0;
    }

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

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

    .feature-card-large,
    .feature-card-wide {
        grid-column: span 1;
    }

    .feature-card-wide {
        align-items: flex-start;
    }

    .business-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-copy {
        padding: 32px 25px;
    }

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

    .security-visual {
        min-height: 280px;
    }

    .landing-cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 25px;
    }

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

    .landing-footer-grid > div:first-child {
        grid-column: span 2;
    }

    .landing-footer-bottom {
        flex-direction: column;
    }

    .auth-form-panel {
        padding: 27px 17px;
    }

    .auth-form-wrap-wide {
        padding-top: 0;
    }

    .auth-back-link {
        margin-bottom: 24px;
    }
}

@media (max-width: 479.98px) {
    .topbar-icon-btn:not(.topbar-menu-btn) {
        display: none;
    }

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

    .hero-step-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

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

    .business-type-grid {
        grid-template-columns: 1fr;
    }

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

    .landing-footer-grid > div:first-child {
        grid-column: span 1;
    }

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