:root {
    --app-bg: #f6f8fb;
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafc;
    --app-border: #dbe3ef;
    --app-border-soft: #edf1f7;
    --app-text: #172033;
    --app-muted: #65758b;
    --app-primary: #355cff;
    --app-primary-strong: #2447d8;
    --app-primary-soft: #edf2ff;
    --app-success-soft: #eaf8f0;
    --app-warning-soft: #fff7df;
    --app-danger-soft: #fff0f0;
    --app-radius: 18px;
    --app-radius-sm: 12px;
    --app-radius-lg: 22px;
    --app-shadow: 0 24px 60px rgba(23, 32, 51, 0.10);
    --app-shadow-sm: 0 14px 36px rgba(23, 32, 51, 0.07);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--app-text);
    background: var(--app-bg);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--app-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--app-primary-strong);
}

code {
    color: #223257;
    background: #f3f6fb;
    border: 1px solid #e5ebf4;
    border-radius: 6px;
    padding: 0.12rem 0.32rem;
    font-size: 0.88em;
}

pre {
    max-width: 100%;
    overflow: auto;
    border-radius: var(--app-radius-sm);
}

pre code {
    display: block;
    min-width: max-content;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
}

.text-muted {
    color: var(--app-muted) !important;
}

.app-shell {
    width: min(calc(100% - 48px), 1480px);
    max-width: none;
    margin-inline: auto;
}

.app-page-header {
    padding: 1.45rem 1.65rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        var(--app-surface);
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-sm);
}

.app-page-header h1 {
    color: #111827;
    font-weight: 700;
    letter-spacing: 0;
}

.app-eyebrow {
    color: var(--app-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card,
.app-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}

.shadow-sm {
    box-shadow: var(--app-shadow-sm) !important;
}

.card.border-0 {
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

.card-header {
    border-bottom-color: var(--app-border-soft);
    border-top-left-radius: var(--app-radius) !important;
    border-top-right-radius: var(--app-radius) !important;
    padding: 1.05rem 1.25rem;
}

.card-body {
    padding: 1.35rem;
}

.app-card-muted {
    background: var(--app-surface-muted);
    box-shadow: none;
}

.btn {
    border-radius: 10px;
    font-weight: 650;
    letter-spacing: 0;
    box-shadow: none !important;
    padding-inline: 0.95rem;
}

.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-strong);
    --bs-btn-hover-border-color: var(--app-primary-strong);
    --bs-btn-active-bg: #1936b6;
    --bs-btn-active-border-color: #1936b6;
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: #b8c6ff;
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
}

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #ccd6e4;
    --bs-btn-hover-bg: #eef2f7;
    --bs-btn-hover-border-color: #ccd6e4;
    --bs-btn-hover-color: #172033;
}

.badge {
    border-radius: 999px;
    padding: 0.4em 0.68em;
    font-weight: 700;
    letter-spacing: 0;
}

.text-bg-info {
    color: #0f3f55 !important;
    background-color: #dff5ff !important;
}

.text-bg-success {
    color: #145232 !important;
    background-color: var(--app-success-soft) !important;
}

.text-bg-warning {
    color: #6b4a00 !important;
    background-color: var(--app-warning-soft) !important;
}

.text-bg-danger {
    color: #7f1d1d !important;
    background-color: var(--app-danger-soft) !important;
}

.text-bg-secondary {
    color: #42526b !important;
    background-color: #edf1f7 !important;
}

.text-bg-dark {
    color: #ffffff !important;
    background-color: #172033 !important;
}

.text-bg-light {
    color: #3b4658 !important;
    background-color: #f8fafc !important;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--app-radius-sm);
}

.alert-success {
    color: #145232;
    background: var(--app-success-soft);
    border-color: #bfe8cf;
}

.alert-warning {
    color: #6b4a00;
    background: var(--app-warning-soft);
    border-color: #f3dc96;
}

.alert-danger {
    color: #7f1d1d;
    background: var(--app-danger-soft);
    border-color: #f3c4c4;
}

.alert-info {
    color: #0f3f55;
    background: #e8f7fd;
    border-color: #b9e5f3;
}

.alert-secondary,
.alert-light {
    color: #334155;
    background: #f8fafc;
    border-color: var(--app-border);
}

.form-label {
    color: #243249;
    font-weight: 650;
}

.form-control,
.form-select {
    border-color: #cfd8e6;
    border-radius: 10px;
    padding: 0.66rem 0.78rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #8ba2ff;
    box-shadow: 0 0 0 0.22rem rgba(53, 92, 255, 0.16);
}

.form-text {
    color: var(--app-muted);
}

.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.table {
    --bs-table-color: var(--app-text);
    --bs-table-border-color: var(--app-border-soft);
    margin-bottom: 0;
}

.table thead th {
    color: #65758b;
    background: #f8fafc;
    border-bottom: 1px solid var(--app-border);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.86rem 1rem;
}

.table tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #fbfcff;
}

dl dt {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

dl dd {
    margin-bottom: 0.85rem;
}

.admin-surface {
    background:
        radial-gradient(circle at top left, rgba(53, 92, 255, 0.08), transparent 38rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.98) 28rem),
        var(--app-bg);
}

.admin-fixed-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(18px);
}

.admin-application-grid,
.developer-layout {
    display: grid;
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.developer-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 400px);
}

.admin-sidebar-stack,
.admin-main-stack,
.developer-main,
.developer-sidebar {
    min-width: 0;
}

.admin-sidebar-stack > .card,
.admin-main-stack > .card,
.developer-main > .card,
.developer-sidebar > .card {
    margin-bottom: 1.5rem !important;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-stats-grid .card {
    height: 100%;
}

.admin-stats-grid .card-body {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-stats-grid .fs-4 {
    font-size: 2rem !important;
    line-height: 1.05;
}

.admin-section-heading {
    padding-inline: 0.15rem;
}

.admin-section-heading h2,
.developer-page-heading h1 {
    color: #111827;
    font-weight: 750;
    letter-spacing: 0;
}

.table-responsive {
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-sm);
    overflow-x: auto;
    background: #ffffff;
}

.table-responsive > .table {
    min-width: 860px;
}

.table-responsive > .table thead th:first-child {
    border-top-left-radius: var(--app-radius-sm);
}

.table-responsive > .table thead th:last-child {
    border-top-right-radius: var(--app-radius-sm);
}

.table-sm > :not(caption) > * > * {
    padding: 0.78rem 0.9rem;
}

.admin-sidebar-stack .d-flex.gap-2 {
    flex-wrap: wrap;
}

.developer-page-heading {
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius);
}

.developer-layout pre {
    margin: 0;
}

.developer-panel {
    border-color: #d7e0ef;
}

.developer-panel pre,
.admin-surface pre.bg-dark,
.admin-surface .bg-dark {
    background: #101827 !important;
    border: 1px solid #26344d;
}

.admin-surface pre.bg-light {
    background: #f8fafc !important;
    border: 1px solid var(--app-border-soft);
}

.dashboard-page {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.dashboard-page > *,
.dashboard-page .row > * {
    min-width: 0;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 1.5rem;
    align-items: start;
}

.dashboard-grid-wide {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.dashboard-page .app-card {
    border-color: rgba(148, 163, 184, 0.20);
    min-width: 0;
}

.stat-card {
    position: relative;
    min-height: 136px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.25rem;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53, 92, 255, 0.07), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.stat-label {
    position: relative;
    display: block;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.stat-value {
    position: relative;
    display: block;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.95;
}

.stat-accent {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.stat-accent-primary {
    background: linear-gradient(135deg, #355cff, #7c9cff);
}

.stat-accent-info {
    background: linear-gradient(135deg, #0ea5e9, #67e8f9);
}

.stat-accent-success {
    background: linear-gradient(135deg, #14b88f, #86efac);
}

.stat-accent-warning {
    background: linear-gradient(135deg, #f59e0b, #fde68a);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--app-border-soft);
}

.dashboard-page section.app-card {
    overflow: hidden;
}

.session-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1.25rem;
}

.status-tile,
.metric-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    background: #f8fafc;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-sm);
    padding: 0.85rem 0.95rem;
}

.status-tile strong,
.metric-row strong {
    color: #0f172a;
    font-size: 1.05rem;
    margin-left: auto;
}

.status-label,
.metric-row span {
    color: #334155;
    font-weight: 700;
}

.status-dot {
    flex: 0 0 auto;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
}

.status-dot-success {
    background: #14b88f;
}

.status-dot-info {
    background: #0ea5e9;
}

.status-dot-warning {
    background: #f59e0b;
}

.status-dot-primary {
    background: var(--app-primary);
}

.status-dot-danger {
    background: #ef4444;
}

.status-dot-muted {
    background: #94a3b8;
}

.security-metrics {
    display: grid;
    gap: 0.8rem;
    padding: 1.25rem;
}

.app-table-wrap {
    overflow-x: auto;
}

.app-table {
    min-width: 820px;
}

.app-table thead th {
    color: #64748b;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-table tbody td {
    padding-block: 1rem;
}

.app-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.28rem 0.64rem;
    text-transform: lowercase;
    white-space: nowrap;
}

.app-status-verified,
.app-status-bypassed {
    color: #08755d;
    background: #eaf8f0;
    border-color: #b9ead8;
}

.app-status-challenge-required,
.app-status-enrollment-required,
.app-status-backup-codes-required,
.app-status-pending {
    color: #8a5a00;
    background: #fff7df;
    border-color: #f8dea0;
}

.app-status-failed,
.app-status-expired,
.app-status-cancelled {
    color: #9f1239;
    background: #fff0f0;
    border-color: #fecdd3;
}

.audit-log-page {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.audit-log-page > * {
    min-width: 0;
}

.audit-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    padding: 1.25rem 1.35rem;
}

.audit-filter-form .form-label {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.audit-filter-search {
    grid-column: span 2;
}

.audit-filter-actions {
    grid-column: span 2;
    align-items: center;
    justify-content: flex-end;
}

.audit-log-card {
    min-width: 0;
    overflow: hidden;
}

.audit-log-table {
    min-width: 1180px;
}

.audit-log-table th:nth-child(1) {
    width: 130px;
}

.audit-log-table th:nth-child(2) {
    width: 230px;
}

.audit-log-table th:nth-child(3),
.audit-log-table th:nth-child(4) {
    width: 190px;
}

.audit-log-table th:nth-child(5) {
    width: 230px;
}

.audit-date-cell time,
.audit-date-cell span {
    display: block;
}

.audit-date-cell span {
    color: var(--app-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.audit-event-badge {
    display: inline-flex;
    max-width: 100%;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    padding: 0.35rem 0.65rem;
}

.audit-event-danger {
    color: #9f1239;
    background: #fff0f0;
    border-color: #fecdd3;
}

.audit-event-warning {
    color: #8a5a00;
    background: #fff7df;
    border-color: #f8dea0;
}

.audit-event-success {
    color: #08755d;
    background: #eaf8f0;
    border-color: #b9ead8;
}

.audit-event-info {
    color: #075985;
    background: #e8f7fd;
    border-color: #bae6fd;
}

.audit-event-muted {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.audit-actor-id,
.audit-client-cell,
.audit-metadata-cell {
    overflow-wrap: anywhere;
}

.audit-client-cell {
    max-width: 230px;
}

.audit-metadata-summary {
    display: grid;
    gap: 0.35rem;
}

.audit-metadata-summary span {
    color: #475569;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.audit-metadata-summary strong {
    color: #334155;
    margin-right: 0.25rem;
}

.audit-metadata-details {
    margin-top: 0.7rem;
}

.audit-metadata-details summary {
    color: var(--app-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 750;
}

.audit-metadata-details pre {
    max-height: 260px;
    color: #dce6f5;
    background: #101827;
    border: 1px solid #26344d;
    margin: 0.65rem 0 0;
    padding: 0.85rem;
    white-space: pre-wrap;
}

.audit-metadata-details pre code {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--app-border-soft);
    padding: 1rem 1.35rem;
}

.activity-list {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-sm);
    padding: 0.95rem;
}

.activity-item strong {
    color: #172033;
    word-break: break-word;
}

.activity-item time {
    flex: 0 0 auto;
    white-space: nowrap;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 1.5rem;
    align-items: stretch;
}

.dashboard-filter-card,
.dashboard-health-card {
    overflow: hidden;
}

.dashboard-panel-heading {
    padding: 1.25rem 1.35rem 0;
}

.dashboard-kicker {
    display: inline-flex;
    color: var(--app-primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.dashboard-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1.25rem 1.35rem 1rem;
}

.dashboard-filter-form-application {
    grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
}

.dashboard-filter-form .form-label {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dashboard-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: #475569;
    background: #f8fafc;
    border-top: 1px solid var(--app-border-soft);
    padding: 0.9rem 1.35rem;
}

.dashboard-filter-summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-health-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 1.35rem;
}

.dashboard-health-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-health-main > div {
    background: #f8fafc;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-sm);
    padding: 1rem;
}

.dashboard-health-label {
    display: block;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.dashboard-health-main strong {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-rate-track {
    display: flex;
    height: 0.72rem;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}

.dashboard-rate-success {
    background: linear-gradient(90deg, #14b88f, #7dd3c7);
}

.dashboard-rate-failure {
    background: linear-gradient(90deg, #ef4444, #fda4af);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.session-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-tile {
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.status-tile:hover {
    border-color: #d7e0ef;
    transform: translateY(-1px);
}

.status-tile-success {
    background: #f0fdf9;
}

.status-tile-warning {
    background: #fffbeb;
}

.status-tile-danger {
    background: #fff5f5;
}

.dashboard-insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 1.5rem;
    align-items: start;
}

.dashboard-chart-card {
    min-width: 0;
}

.daily-chart {
    padding: 1.25rem 1.35rem 1.15rem;
}

.daily-chart-bars {
    height: 260px;
    display: flex;
    align-items: end;
    gap: 0.22rem;
    overflow-x: auto;
    padding: 0.5rem 0.1rem 0.75rem;
    border-bottom: 1px solid var(--app-border-soft);
}

.daily-chart-column {
    min-width: 7px;
    flex: 1 0 7px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.daily-chart-bar {
    display: block;
    width: 100%;
    min-height: 4px;
    background: linear-gradient(180deg, #355cff, #8da2ff);
    border-radius: 999px 999px 4px 4px;
}

.daily-chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding-top: 0.75rem;
}

.dashboard-session-table code {
    max-width: 34rem;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    min-width: 0;
}

.chart-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-card-wide {
    grid-column: 1 / -1;
}

.chart-card .app-card-header {
    min-height: 104px;
    align-items: center;
}

.chart-card-metric {
    flex: 0 0 auto;
    min-width: 96px;
    display: grid;
    justify-items: end;
    color: var(--app-muted);
    background: #f8fafc;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-sm);
    padding: 0.65rem 0.8rem;
}

.chart-card-metric strong {
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
}

.chart-card-metric span {
    font-size: 0.72rem;
    font-weight: 750;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.chart-card-metric-compact {
    min-width: 82px;
}

.chart-box {
    position: relative;
    height: 340px;
    min-height: 340px;
    padding: 1.1rem 1.25rem 1.25rem;
}

.chart-box-lg {
    height: 330px;
    min-height: 330px;
}

.chart-box canvas {
    display: block;
    max-width: 100%;
}

.mfa-hosted-surface {
    background: #f5f7fb;
}

.mfa-hosted-page {
    background:
        linear-gradient(180deg, rgba(53, 92, 255, 0.08), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 18% 12%, rgba(18, 181, 130, 0.10), transparent 22rem),
        #f5f7fb;
}

.mfa-hosted-card {
    border: 1px solid rgba(219, 227, 239, 0.9) !important;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.14);
}

.mfa-brand-mark {
    width: 66px;
    height: 66px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #355cff, #14b88f);
    box-shadow: 0 14px 30px rgba(53, 92, 255, 0.25);
}

.mfa-security-note {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
}

.qr-frame {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    box-shadow: inset 0 0 0 8px #f8fafc;
}

.backup-code-tile {
    color: #172033;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    box-shadow: inset 0 -1px 0 rgba(23, 32, 51, 0.04);
}

.accordion {
    --bs-accordion-border-color: var(--app-border);
    --bs-accordion-border-radius: var(--app-radius-sm);
    --bs-accordion-inner-border-radius: var(--app-radius-sm);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.22rem rgba(53, 92, 255, 0.16);
    --bs-accordion-active-bg: var(--app-primary-soft);
    --bs-accordion-active-color: #1936b6;
}

.demo-surface,
.front-surface {
    background:
        linear-gradient(180deg, #ffffff, #f6f8fb 38%),
        var(--app-bg);
}

.login-surface {
    background:
        radial-gradient(circle at 50% 0%, rgba(53, 92, 255, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff, #f6f8fb 42%),
        var(--app-bg);
}

.login-page {
    background:
        radial-gradient(circle at 18% 14%, rgba(20, 184, 143, 0.10), transparent 22rem),
        radial-gradient(circle at 82% 20%, rgba(53, 92, 255, 0.10), transparent 24rem);
}

.login-shell {
    max-width: 500px;
}

.login-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 28px 80px rgba(23, 32, 51, 0.14);
}

.login-brand-mark {
    width: 64px;
    height: 64px;
    color: #ffffff;
    background: linear-gradient(135deg, #355cff, #14b88f);
    box-shadow: 0 16px 34px rgba(53, 92, 255, 0.24);
}

.auth-shell {
    max-width: 540px;
}

.auth-shell-wide {
    max-width: 780px;
}

.auth-card {
    border: 1px solid var(--app-border-soft);
}

.front-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.front-home .display-5 {
    color: #111827;
    letter-spacing: 0;
}

.flow-list {
    display: grid;
    gap: 0.7rem;
}

.flow-list > div {
    position: relative;
    padding: 0.8rem 0.9rem 0.8rem 2.35rem;
    background: #f8fafc;
    border: 1px solid var(--app-border-soft);
    border-radius: 12px;
    font-weight: 650;
}

.flow-list > div::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 0.62rem;
    height: 0.62rem;
    background: var(--app-primary);
    border-radius: 999px;
    transform: translateY(-50%);
}

/* Public SaaS landing page */
.front-surface {
    background: #ffffff;
}

.front-home {
    display: block;
    min-height: 100vh;
    color: #182235;
    background: #ffffff;
}

.front-home *,
.front-home *::before,
.front-home *::after {
    letter-spacing: 0;
}

.front-home a {
    text-decoration: none;
}

.home-shell,
.home-nav,
.home-hero-inner {
    width: min(calc(100% - 48px), 1360px);
    margin-inline: auto;
}

.home-hero {
    position: relative;
    min-height: max(600px, calc(100svh - 96px));
    overflow: hidden;
    color: #ffffff;
    background-color: #0b1220;
    background-image: var(--home-hero-image);
    background-position: center 18%;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 12% 8%, rgba(53, 92, 255, 0.28), transparent 42%),
        radial-gradient(110% 90% at 92% 16%, rgba(20, 184, 143, 0.20), transparent 40%),
        linear-gradient(180deg, rgba(6, 12, 24, 0.93) 0%, rgba(6, 12, 24, 0.95) 50%, rgba(4, 9, 18, 0.98) 100%);
}

.home-nav {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    min-height: 82px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-brand:hover {
    color: inherit;
}

.home-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #0b1220;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 900;
}

.home-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.home-nav-links a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    font-weight: 650;
    transition: color 180ms ease;
}

.home-nav-links a:hover {
    color: #ffffff;
}

.home-nav-cta {
    min-height: 42px;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: max(518px, calc(100svh - 178px));
    padding-block: 3.5rem 5rem;
}

.home-hero-content {
    max-width: 780px;
}

.home-kicker {
    display: inline-flex;
    color: #2d56ed;
    font-size: 0.76rem;
    font-weight: 850;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.home-kicker-light {
    color: #8de4c4;
}

.home-hero h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: 4.75rem;
    font-weight: 820;
    line-height: 0.98;
    margin: 0 0 1.4rem;
}

.home-hero-lead {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    line-height: 1.65;
    margin: 0 0 2rem;
}

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

.home-hero-actions .btn,
.home-cta-actions .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-hero .btn-outline-light,
.home-cta-band .btn-outline-light {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.52);
    --bs-btn-hover-color: #0b1220;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
}

.home-hero-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 2.25rem;
}

.home-hero-signals span {
    position: relative;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    padding-left: 1rem;
}

.home-hero-signals span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    background: #55d6a7;
    border-radius: 999px;
    transform: translateY(-50%);
}

.home-trust-band {
    background: #ffffff;
    border-bottom: 1px solid #e7ecf3;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-trust-item {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    border-right: 1px solid #e7ecf3;
}

.home-trust-item:first-child {
    border-left: 1px solid #e7ecf3;
}

.home-trust-item strong,
.home-trust-item span {
    display: block;
}

.home-trust-item strong {
    color: #111827;
    font-size: 0.96rem;
    margin-bottom: 0.3rem;
}

.home-trust-item span {
    color: #68778d;
    font-size: 0.82rem;
    line-height: 1.5;
}

.home-section {
    padding-block: 7rem;
}

.home-section-heading {
    max-width: 850px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.home-section-heading-left {
    margin-inline: 0;
    text-align: left;
}

.home-section-heading h2,
.home-product-copy h2,
.home-developer-copy h2,
.home-cta-inner h2 {
    color: #111827;
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1.14;
    margin: 0 0 1.1rem;
}

.home-section-heading p,
.home-product-copy p,
.home-developer-copy p {
    color: #68778d;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

.home-value-section {
    background: #ffffff;
}

.home-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-feature-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 16px 38px rgba(20, 29, 46, 0.06);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.home-feature-card:hover {
    border-color: #b8c7e7;
    box-shadow: 0 22px 48px rgba(20, 29, 46, 0.11);
    transform: translateY(-4px);
}

.home-feature-index {
    color: #2d56ed;
    background: #edf2ff;
    border: 1px solid #d6e0ff;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 850;
    padding: 0.4rem 0.55rem;
}

.home-feature-card h3,
.home-flow-step h3,
.home-security-item h3 {
    color: #182235;
    font-size: 1.1rem;
    font-weight: 780;
    margin: auto 0 0.75rem;
}

.home-feature-card p,
.home-flow-step p,
.home-security-item p {
    color: #68778d;
    line-height: 1.65;
    margin: 0;
}

.home-flow-section {
    background: #f4f7fb;
    border-block: 1px solid #e7ecf3;
}

.home-flow-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-flow-step {
    position: relative;
    min-height: 255px;
    background: #ffffff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    padding: 1.7rem;
    transition: border-color 200ms ease, transform 200ms ease;
}

.home-flow-step:hover {
    border-color: #9fb2dc;
    transform: translateY(-3px);
}

.home-flow-step > span {
    display: inline-flex;
    color: #ffffff;
    background: #172033;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 850;
    padding: 0.42rem 0.56rem;
}

.home-flow-step h3 {
    margin-top: 3.8rem;
}

.home-product-band {
    overflow: hidden;
    color: #ffffff;
    background: #111827;
    padding-block: 7rem;
}

.home-product-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 4rem;
}

.home-product-copy h2,
.home-product-copy p {
    color: #ffffff;
}

.home-product-copy p {
    color: rgba(255, 255, 255, 0.70);
}

.home-check-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1.75rem 0 2rem;
    padding: 0;
}

.home-check-list li {
    position: relative;
    color: rgba(255, 255, 255, 0.84);
    padding-left: 1.6rem;
}

.home-check-list li::before {
    content: "";
    position: absolute;
    top: 0.48rem;
    left: 0;
    width: 0.7rem;
    height: 0.4rem;
    border-bottom: 2px solid #55d6a7;
    border-left: 2px solid #55d6a7;
    transform: rotate(-45deg);
}

.home-product-visual {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.34);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.home-product-visual:hover {
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.42);
    transform: translateY(-4px);
}

.home-product-browser {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 38px;
    color: #64748b;
    background: #f4f7fb;
    border-bottom: 1px solid #dce4ef;
    padding-inline: 0.85rem;
}

.home-product-browser span {
    width: 0.55rem;
    height: 0.55rem;
    background: #cbd5e1;
    border-radius: 999px;
}

.home-product-browser span:first-child {
    background: #ef6b6b;
}

.home-product-browser span:nth-child(2) {
    background: #eab64d;
}

.home-product-browser span:nth-child(3) {
    background: #55b98c;
}

.home-product-browser strong {
    font-size: 0.72rem;
    margin-left: 0.45rem;
}

.home-product-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-product-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 500ms ease;
}

.home-product-visual:hover img {
    transform: scale(1.012);
}

.home-security-section {
    background: #ffffff;
}

.home-security-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 5rem;
}

.home-security-list {
    display: grid;
    border-top: 1px solid #dfe6ef;
}

.home-security-item {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 1.6rem;
    border-bottom: 1px solid #dfe6ef;
}

.home-security-item > span {
    color: #2d56ed;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.home-security-item h3 {
    margin: 0 0 0.55rem;
}

.home-developer-section {
    background: #f4f7fb;
    border-top: 1px solid #e7ecf3;
}

.home-developer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 5rem;
}

.home-developer-copy p {
    margin-bottom: 1.8rem;
}

.home-code-panel {
    overflow: hidden;
    color: #dce6f5;
    background: #101827;
    border: 1px solid #26344d;
    border-radius: 8px;
    box-shadow: 0 24px 56px rgba(15, 24, 39, 0.20);
}

.home-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    background: #172033;
    border-bottom: 1px solid #26344d;
    font-size: 0.75rem;
    font-weight: 750;
    padding: 0.8rem 1rem;
}

.home-code-panel pre {
    margin: 0;
    padding: 1.7rem;
}

.home-code-panel code {
    min-width: 0;
    color: #dce6f5;
    background: transparent;
    border: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    padding: 0;
    white-space: pre-wrap;
}

.home-code-panel code span {
    color: #8de4c4;
    font-weight: 800;
}

.home-cta-band {
    color: #ffffff;
    background: #0f766e;
    padding-block: 4.5rem;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.home-cta-inner > div:first-child {
    max-width: 760px;
}

.home-cta-inner h2 {
    color: #ffffff;
    font-size: 2.15rem;
    margin-bottom: 0;
}

.home-cta-band .home-kicker-light {
    color: #d3fff1;
}

.home-cta-actions {
    flex: 0 0 auto;
}

.home-footer {
    color: #536176;
    background: #ffffff;
    border-top: 1px solid #e7ecf3;
    padding-block: 2rem;
}

.home-footer .home-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.home-footer .home-brand {
    color: #172033;
}

.home-footer .home-brand-mark {
    color: #ffffff;
    background: #172033;
    border-color: #172033;
}

.home-footer p {
    margin: 0;
    text-align: center;
}

.home-footer a {
    font-weight: 700;
}

.has-reveal-animations .home-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--home-reveal-delay, 0ms);
}

.has-reveal-animations .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Directional reveal variants */
.has-reveal-animations .home-reveal-left {
    transform: translateX(-28px);
}

.has-reveal-animations .home-reveal-right {
    transform: translateX(28px);
}

.has-reveal-animations .home-reveal-left.is-visible,
.has-reveal-animations .home-reveal-right.is-visible {
    transform: none;
}

/* ===== Landing enhancements ===== */

/* Scroll progress indicator */
.home-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 60;
    pointer-events: none;
    background: transparent;
}

.home-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    transform-origin: left center;
    background: linear-gradient(90deg, #355cff 0%, #2dd4a7 100%);
    box-shadow: 0 1px 10px rgba(45, 212, 167, 0.45);
    transition: width 120ms linear;
}

/* Hero decorative layers */
.home-hero-overlay,
.home-hero-grid,
.home-hero-aurora {
    z-index: 0;
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(120% 90% at 20% 10%, #000 0%, transparent 72%);
    mask-image: radial-gradient(120% 90% at 20% 10%, #000 0%, transparent 72%);
    opacity: 0.6;
}

.home-hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.55;
    will-change: transform, translate;
    animation: home-orb-float 16s ease-in-out infinite;
}

.home-orb-1 {
    top: -6rem;
    left: -4rem;
    width: 26rem;
    height: 26rem;
    background: radial-gradient(circle, rgba(53, 92, 255, 0.65), transparent 68%);
}

.home-orb-2 {
    top: 30%;
    right: -6rem;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(20, 184, 143, 0.55), transparent 68%);
    animation-duration: 20s;
    animation-delay: -4s;
}

.home-orb-3 {
    bottom: -8rem;
    left: 32%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
    animation-duration: 24s;
    animation-delay: -8s;
}

@keyframes home-orb-float {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 1.5rem -1.75rem;
    }
}

/* Hero kicker accent */
.home-kicker {
    align-items: center;
    gap: 0.55rem;
    padding: 0.32rem 0.7rem;
    background: rgba(45, 86, 237, 0.08);
    border: 1px solid rgba(45, 86, 237, 0.16);
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.home-kicker-light {
    background: rgba(141, 228, 196, 0.1);
    border-color: rgba(141, 228, 196, 0.26);
}

.home-kicker-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #55d6a7;
    box-shadow: 0 0 0 0 rgba(85, 214, 167, 0.55);
    animation: home-pulse 2.4s ease-out infinite;
}

@keyframes home-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 214, 167, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(85, 214, 167, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 214, 167, 0);
    }
}

/* Hero entrance (staggered, self-running so it never depends on a JS toggle) */
@keyframes home-hero-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.front-home.is-animated .home-hero-content > * {
    opacity: 0;
    animation: home-hero-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.front-home.is-animated .home-hero-content > *:nth-child(1) { animation-delay: 120ms; }
.front-home.is-animated .home-hero-content > *:nth-child(2) { animation-delay: 220ms; }
.front-home.is-animated .home-hero-content > *:nth-child(3) { animation-delay: 320ms; }
.front-home.is-animated .home-hero-content > *:nth-child(4) { animation-delay: 420ms; }
.front-home.is-animated .home-hero-content > *:nth-child(5) { animation-delay: 520ms; }

/* Hero scroll cue */
.home-hero-scroll {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    display: flex;
}

.home-hero-scroll-track {
    display: flex;
    justify-content: center;
    width: 1.45rem;
    height: 2.4rem;
    padding-top: 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.home-hero-scroll-dot {
    width: 0.28rem;
    height: 0.6rem;
    border-radius: 999px;
    background: #ffffff;
    animation: home-scroll-dot 1.9s ease-in-out infinite;
}

@keyframes home-scroll-dot {
    0% { opacity: 0; transform: translateY(-0.2rem); }
    35% { opacity: 1; }
    70% { opacity: 0; transform: translateY(0.7rem); }
    100% { opacity: 0; transform: translateY(0.7rem); }
}

/* Animated underline on nav links */
.home-nav-links a {
    position: relative;
    padding-bottom: 2px;
}

.home-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, #8de4c4, #ffffff);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms ease;
}

.home-nav-links a:hover::after {
    transform: scaleX(1);
}

/* Trust band refinements */
.home-trust-item {
    transition: background-color 220ms ease, transform 220ms ease;
}

.home-trust-item:hover {
    background: #f7faff;
    transform: translateY(-2px);
}

.home-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.95rem;
    color: #2d56ed;
    background: linear-gradient(135deg, #edf2ff, #e6fbf3);
    border: 1px solid #dde7ff;
    border-radius: 11px;
}

.home-trust-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Shared accent/spotlight for cards */
.home-feature-card,
.home-flow-step {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    --home-spot-x: 50%;
    --home-spot-y: 0%;
}

.home-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #355cff, #2dd4a7);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-feature-card:hover::before {
    transform: scaleX(1);
}

.home-feature-card::after,
.home-flow-step::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        16rem 16rem at var(--home-spot-x) var(--home-spot-y),
        rgba(53, 92, 255, 0.1),
        transparent 60%
    );
    transition: opacity 280ms ease;
}

.home-feature-card:hover::after,
.home-flow-step:hover::after {
    opacity: 1;
}

/* Feature card layout with icon + corner index */
.home-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    margin-bottom: 1.25rem;
    color: #2d56ed;
    background: linear-gradient(135deg, #eef3ff, #e7fbf4);
    border: 1px solid #dbe6ff;
    border-radius: 12px;
    transition: transform 260ms ease;
}

.home-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.home-feature-card:hover .home-feature-icon {
    transform: translateY(-2px) rotate(-4deg);
}

.home-feature-index {
    position: absolute;
    top: 1.7rem;
    right: 1.7rem;
    margin: 0;
}

.home-feature-card h3 {
    margin-top: auto;
}

/* Flow connector + steps */
.home-flow-grid {
    z-index: 0;
}

.home-flow-line {
    position: absolute;
    top: 2.6rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, #c9d6ef, #c9d6ef);
    z-index: -1;
}

.home-flow-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #355cff, #2dd4a7);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
}

.has-reveal-animations .home-flow-grid.is-line-active .home-flow-line::after {
    transform: scaleX(1);
}

.home-flow-step > span {
    box-shadow: 0 8px 20px rgba(23, 32, 51, 0.16);
    transition: transform 220ms ease, background-color 220ms ease;
}

.home-flow-step:hover > span {
    background: var(--app-primary);
    transform: translateY(-2px) scale(1.04);
}

/* Security tags with icons */
.home-security-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #2d56ed;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.home-security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    color: #2d56ed;
    background: linear-gradient(135deg, #edf2ff, #e6fbf3);
    border: 1px solid #dde7ff;
    border-radius: 9px;
    flex: 0 0 auto;
}

.home-security-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.home-security-item {
    transition: border-color 200ms ease;
}

.home-security-item:hover {
    border-bottom-color: #b8c7e7;
}

/* Kicker accent line for left-aligned headings */
.home-section-heading-left .home-kicker {
    position: relative;
}

/* CTA band glow */
.home-cta-band {
    position: relative;
    overflow: hidden;
}

.home-cta-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(60% 120% at 12% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(50% 120% at 88% 100%, rgba(45, 212, 167, 0.22), transparent 62%);
    pointer-events: none;
}

.home-cta-band .home-shell {
    position: relative;
    z-index: 1;
}

/* Code panel glow accent */
.home-code-panel {
    position: relative;
}

.home-code-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(53, 92, 255, 0.55), rgba(45, 212, 167, 0.45), transparent 70%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.home-code-panel,
.home-product-visual {
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    .home-nav-links {
        display: none;
    }

    .home-nav {
        grid-template-columns: 1fr auto;
    }

    .home-hero h1 {
        font-size: 3.7rem;
    }

    .home-trust-grid,
    .home-value-grid,
    .home-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-grid,
    .home-security-layout,
    .home-developer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .home-product-copy,
    .home-security-layout .home-section-heading,
    .home-developer-copy {
        max-width: 760px;
    }

    .home-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-cta-actions {
        flex: auto;
    }

    .home-flow-line {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .home-shell,
    .home-nav,
    .home-hero-inner {
        width: min(calc(100% - 24px), 100%);
    }

    .home-nav {
        min-height: 70px;
        gap: 1rem;
    }

    .home-nav-cta {
        padding-inline: 0.72rem;
    }

    .home-hero {
        min-height: max(590px, calc(100svh - 72px));
        background-position: 46% top;
    }

    .home-hero-overlay {
        background:
            radial-gradient(120% 80% at 18% 6%, rgba(53, 92, 255, 0.26), transparent 50%),
            linear-gradient(180deg, rgba(5, 10, 20, 0.93) 0%, rgba(4, 9, 18, 0.97) 100%);
    }

    .home-hero-grid {
        background-size: 48px 48px;
        opacity: 0.4;
    }

    .home-hero-scroll {
        display: none;
    }

    .home-feature-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 1rem;
    }

    .home-feature-index {
        top: 1.4rem;
        right: 1.4rem;
    }

    .home-hero-inner {
        min-height: max(520px, calc(100svh - 142px));
        padding-block: 3rem 4rem;
    }

    .home-hero h1 {
        font-size: 3rem;
    }

    .home-hero-lead {
        font-size: 1.02rem;
        line-height: 1.6;
    }

    .home-hero-actions,
    .home-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-actions .btn,
    .home-cta-actions .btn {
        width: 100%;
    }

    .home-trust-grid,
    .home-value-grid,
    .home-flow-grid {
        grid-template-columns: 1fr;
    }

    .home-trust-item,
    .home-trust-item:first-child {
        border-right: 1px solid #e7ecf3;
        border-bottom: 1px solid #e7ecf3;
        border-left: 1px solid #e7ecf3;
        padding: 1.15rem;
    }

    .home-section,
    .home-product-band {
        padding-block: 4.5rem;
    }

    .home-section-heading {
        margin-bottom: 2.25rem;
        text-align: left;
    }

    .home-section-heading h2,
    .home-product-copy h2,
    .home-developer-copy h2,
    .home-cta-inner h2 {
        font-size: 2rem;
    }

    .home-feature-card,
    .home-flow-step {
        min-height: auto;
        padding: 1.4rem;
    }

    .home-feature-card h3,
    .home-flow-step h3 {
        margin-top: 2.5rem;
    }

    .home-product-grid,
    .home-security-layout,
    .home-developer-grid {
        gap: 2.5rem;
    }

    .home-security-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .home-code-panel pre {
        padding: 1.2rem;
    }

    .home-code-panel code {
        font-size: 0.8rem;
    }

    .home-cta-band {
        padding-block: 3.5rem;
    }

    .home-footer .home-shell {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 1rem;
    }

    .home-footer p {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card,
    .home-flow-step,
    .home-product-visual,
    .home-product-image-wrap img,
    .home-reveal,
    .home-reveal-left,
    .home-reveal-right,
    .home-trust-item,
    .home-feature-icon,
    .home-flow-step > span,
    .front-home.is-animated .home-hero-content > *,
    .home-feature-card::before,
    .home-feature-card::after,
    .home-flow-step::after,
    .home-flow-line::after,
    .home-nav-links a::after {
        transition: none !important;
        transform: none !important;
    }

    .front-home.is-animated .home-hero-content > * {
        opacity: 1 !important;
    }

    .home-orb,
    .home-kicker-dot,
    .home-hero-scroll-dot,
    .front-home.is-animated .home-hero-content > * {
        animation: none !important;
    }

    .home-progress,
    .home-hero-scroll {
        display: none !important;
    }
}

.developer-docs-surface {
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 32%, #eef3f9 100%),
        var(--app-bg);
}

.developer-docs-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(20, 184, 143, 0.10), transparent 24rem),
        radial-gradient(circle at 82% 10%, rgba(53, 92, 255, 0.12), transparent 26rem);
}

.developer-docs-shell {
    width: min(calc(100% - 48px), 1320px);
    margin-inline: auto;
}

.developer-docs-hero {
    padding: 1.5rem 0 0.75rem;
}

.developer-docs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.developer-docs-brand {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.developer-docs-brand:hover {
    color: var(--app-primary);
}

.developer-docs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 3rem;
    align-items: center;
    padding: 4.25rem 0 3.5rem;
}

.developer-docs-hero h1 {
    max-width: 820px;
    color: #0f172a;
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.developer-docs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.developer-docs-summary-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
    padding: 1.5rem;
    backdrop-filter: blur(18px);
}

.developer-docs-flow {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.25rem;
}

.developer-docs-flow li {
    color: #334155;
    padding-left: 0.25rem;
}

.developer-docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding-bottom: 4rem;
}

.developer-docs-sidebar {
    position: sticky;
    top: 1.5rem;
}

.developer-docs-toc {
    display: grid;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    padding: 1rem;
}

.developer-docs-toc strong {
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.developer-docs-toc a {
    color: #475569;
    border-radius: 10px;
    padding: 0.52rem 0.65rem;
    text-decoration: none;
}

.developer-docs-toc a:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.developer-docs-content {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.developer-docs-section,
.endpoint-doc-card,
.framework-doc-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-sm);
    min-width: 0;
}

.developer-docs-section {
    padding: 1.65rem;
    scroll-margin-top: 1.5rem;
}

.endpoint-doc-card,
.framework-doc-card {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.15rem;
    padding: 1.25rem;
}

.developer-docs-section h2,
.developer-docs-section h3,
.developer-docs-section h4 {
    color: #0f172a;
    font-weight: 750;
    letter-spacing: 0;
}

.developer-docs-section h2 {
    margin-bottom: 0.75rem;
}

.developer-docs-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.developer-docs-section h4 {
    color: #334155;
    font-size: 0.82rem;
    margin: 0.25rem 0 -0.35rem;
    text-transform: uppercase;
}

.developer-docs-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0;
}

.app-code-block {
    color: #e5edf8;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        #101827;
    border: 1px solid #26344d;
    border-radius: var(--app-radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1rem;
    margin-bottom: 0;
    max-width: 100%;
    overflow-x: auto;
}

.app-code-block code {
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
}

.endpoint-meta {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0.4rem 1rem;
    margin-bottom: 0.25rem;
}

.endpoint-meta dt {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.endpoint-meta dd {
    margin-bottom: 0;
}

.endpoint-meta ul {
    margin: 0;
    padding-left: 1.1rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    background: #f8fafc;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-sm);
    padding: 1rem;
}

.faq-list summary {
    color: #172033;
    cursor: pointer;
    font-weight: 750;
}

.faq-list p {
    color: #475569;
    margin: 0.65rem 0 0;
}

@media (max-width: 767.98px) {
    .app-shell {
        width: min(calc(100% - 24px), 100%);
    }

    .app-page-header,
    .card-body {
        padding: 1rem;
    }

    .mfa-hosted-page {
        align-items: flex-start !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mfa-hosted-card {
        border-radius: 18px;
    }

    .mfa-brand-mark {
        width: 58px;
        height: 58px;
    }

    .table {
        min-width: 680px;
    }

    .table-responsive > .table {
        min-width: 720px;
    }

    .admin-application-grid,
    .developer-layout,
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .developer-page-heading {
        padding: 1rem;
    }

    .front-home {
        align-items: flex-start;
    }

    .developer-docs-shell {
        width: min(calc(100% - 24px), 100%);
    }

    .developer-docs-topbar,
    .developer-docs-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .developer-docs-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0 1.5rem;
    }

    .developer-docs-hero h1 {
        font-size: 2.45rem;
    }

    .developer-docs-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 2rem;
    }

    .developer-docs-sidebar {
        position: static;
    }

    .developer-docs-section {
        padding: 1rem;
    }

    .dashboard-overview-grid,
    .dashboard-top-grid,
    .dashboard-charts-grid,
    .dashboard-grid,
    .dashboard-grid-wide,
    .dashboard-insights-grid,
    .session-status-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-form,
    .dashboard-health-main {
        grid-template-columns: 1fr;
    }

    .audit-filter-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .audit-filter-search,
    .audit-filter-actions {
        grid-column: auto;
    }

    .audit-filter-actions {
        justify-content: flex-start;
    }

    .audit-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .stat-card,
    .app-card-header,
    .dashboard-panel-heading,
    .dashboard-filter-form,
    .session-status-grid,
    .security-metrics,
    .activity-list,
    .daily-chart {
        padding: 1rem;
    }

    .stat-card {
        min-height: 118px;
    }

    .stat-accent {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 14px;
    }

    .activity-item {
        flex-direction: column;
        gap: 0.45rem;
    }

    .activity-item time {
        white-space: normal;
    }

    .daily-chart-bars {
        height: 180px;
    }

    .dashboard-session-table code {
        max-width: 16rem;
    }

    .chart-card .app-card-header {
        min-height: auto;
        align-items: flex-start;
    }

    .chart-card-metric {
        min-width: 76px;
    }

    .chart-box,
    .chart-box-lg {
        height: 280px;
        min-height: 280px;
        padding: 0.85rem 0.75rem 1rem;
    }

    .endpoint-doc-card,
    .framework-doc-card {
        padding: 1rem;
    }

    .endpoint-meta {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .admin-application-grid,
    .developer-layout {
        grid-template-columns: 1fr;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-top-grid,
    .dashboard-charts-grid,
    .dashboard-grid,
    .dashboard-grid-wide,
    .dashboard-insights-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-filter-actions {
        grid-column: 1 / -1;
    }

    .audit-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .developer-docs-hero-grid,
    .developer-docs-layout {
        grid-template-columns: 1fr;
    }

    .developer-docs-sidebar {
        position: static;
    }

    .developer-docs-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .developer-docs-toc strong {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1500px) {
    .app-shell {
        width: min(calc(100% - 64px), 1536px);
    }

    .admin-application-grid {
        grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
        gap: 2.25rem;
    }

    .developer-layout {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
        gap: 2.25rem;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    }
}
