:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e4e7ec;
    --panel: #ffffff;
    --canvas: #f6f8fb;
    --brand: #2454d6;
    --brand-2: #159a85;
    --accent: #e7b84b;
    --danger: #c2414b;
    --sidebar: #182033;
}

* {
    box-sizing: border-box;
}

body {
    color: var(--ink);
    background: var(--canvas);
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

.btn {
    border-radius: 6px;
    font-weight: 650;
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    justify-content: center;
}

.form-control,
.form-select,
.accordion-item,
.panel,
.feature-card,
.pricing-card,
.stat-card {
    border-radius: 8px;
}

.public-body {
    background: #fbfcf8;
}

.public-nav {
    background: rgba(251, 252, 248, .92);
    border-bottom: 1px solid rgba(23, 32, 51, .08);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
}

.public-nav .navbar-brand {
    color: #111827;
}

.public-nav .nav-link {
    color: #475467;
    font-weight: 650;
}

.public-nav .nav-link:hover {
    color: var(--brand);
}

.public-nav {
    padding: 10px 0;
    border-bottom: 0;
    background: rgba(251, 252, 248, .78);
    box-shadow: 0 10px 30px rgba(24, 32, 51, .06);
}

.public-nav-inner {
    min-height: 70px;
    border: 1px solid rgba(23, 32, 51, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 16px 44px rgba(24, 32, 51, .08);
    padding: 9px 12px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #111827;
}

.public-brand:hover {
    color: #111827;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 24px rgba(36, 84, 214, .22);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1.02rem;
}

.brand-copy small {
    max-width: 230px;
    color: #667085;
    font-size: .73rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-menu {
    gap: 4px;
}

.public-nav .nav-link {
    border-radius: 8px;
    padding: .58rem .78rem !important;
    transition: background .18s ease, color .18s ease;
}

.public-nav .nav-link:hover,
.public-nav .nav-link:focus {
    background: #eef4ff;
    color: #1d3f9f;
}

.public-language {
    margin-left: .45rem;
    padding-left: .45rem;
    border-left: 1px solid rgba(23, 32, 51, .10);
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: .25rem;
}

.public-nav-actions .btn {
    white-space: nowrap;
}

.language-form {
    min-width: 132px;
}

.hero-section {
    position: relative;
    min-height: min(720px, calc(100svh - 64px));
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background: #152033;
    isolation: isolate;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .76);
    z-index: -2;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 92px;
    background: rgba(251, 252, 248, .06);
    z-index: -1;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(900px) rotateX(56deg) translateY(110px) scale(1.35);
    transform-origin: bottom;
}

.hero-product-shell {
    position: absolute;
    right: max(3vw, 22px);
    top: 82px;
    width: min(760px, 58vw);
    transform: rotate(-2deg);
    filter: drop-shadow(0 36px 70px rgba(0, 0, 0, .38));
}

.hero-window {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.hero-window-top {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: #f4f7fb;
    border-bottom: 1px solid #e5e9f0;
}

.hero-window-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.hero-window-top span:nth-child(1) {
    background: #ef6f6c;
}

.hero-window-top span:nth-child(2) {
    background: #e7b84b;
}

.hero-window-top span:nth-child(3) {
    background: #159a85;
}

.hero-window-top strong {
    margin-left: 10px;
    font-size: .86rem;
}

.hero-window-body {
    display: grid;
    grid-template-columns: 74px 1fr;
    min-height: 486px;
}

.hero-side-rail {
    background: #172033;
    padding: 22px 18px;
    display: grid;
    align-content: start;
    gap: 16px;
}

.hero-side-rail i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
    background: rgba(255, 255, 255, .14);
}

.hero-side-rail i:nth-child(1) {
    background: #159a85;
}

.hero-data-area {
    padding: 22px;
    background: #f8fafc;
}

.hero-kpis,
.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-kpis div,
.mock-grid span {
    border: 1px solid #e5e9f0;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
}

.hero-kpis small,
.mock-grid small {
    display: block;
    color: #667085;
    font-size: .78rem;
    font-weight: 700;
}

.hero-kpis b,
.mock-grid b {
    display: block;
    margin-top: 8px;
    font-size: 1.55rem;
}

.hero-workflow {
    margin: 18px 0;
    display: grid;
    grid-template-columns: 1fr 46px 1fr 46px 1fr;
    align-items: center;
}

.workflow-node {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 8px;
    min-height: 92px;
}

.workflow-node.active {
    border-color: rgba(21, 154, 133, .45);
    background: #ecfdf8;
}

.workflow-node i {
    color: var(--brand);
    font-size: 1.25rem;
}

.workflow-node span {
    font-size: .82rem;
    font-weight: 800;
}

.workflow-line {
    height: 2px;
    background: #cbd5e1;
}

.hero-chart-card,
.hero-table-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 16px;
}

.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 800;
}

.chart-head em {
    font-style: normal;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .75rem;
}

.hero-bars,
.mock-chart {
    height: 142px;
    display: flex;
    align-items: end;
    gap: 12px;
    margin-top: 18px;
}

.hero-bars i,
.mock-chart i {
    flex: 1;
    display: block;
    border-radius: 6px 6px 0 0;
    background: #2454d6;
}

.hero-bars i:nth-child(1),
.mock-chart i:nth-child(1) { height: 46%; background: #159a85; }
.hero-bars i:nth-child(2),
.mock-chart i:nth-child(2) { height: 72%; background: #2454d6; }
.hero-bars i:nth-child(3),
.mock-chart i:nth-child(3) { height: 54%; background: #e7b84b; }
.hero-bars i:nth-child(4),
.mock-chart i:nth-child(4) { height: 86%; background: #ef6f6c; }
.hero-bars i:nth-child(5),
.mock-chart i:nth-child(5) { height: 64%; background: #159a85; }
.hero-bars i:nth-child(6) { height: 78%; background: #2454d6; }

.hero-table-card {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.hero-table-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
}

.hero-table-card b {
    color: #172033;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    padding: 86px 0;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #0f766e;
    background: #dff8f0;
    border: 1px solid rgba(21, 154, 133, .18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-copy .eyebrow {
    color: #c8f7ec;
    background: rgba(21, 154, 133, .20);
    border-color: rgba(200, 247, 236, .22);
}

.hero-copy h1 {
    font-size: clamp(2.55rem, 5vw, 5.35rem);
    line-height: .98;
    font-weight: 850;
    max-width: 900px;
    margin: 0;
}

.hero-copy p {
    font-size: 1.12rem;
    max-width: 680px;
    color: rgba(255, 255, 255, .84);
    margin: 24px 0 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .88rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.hero-proof i {
    color: #8cebd8;
}

.section-pad {
    padding: 92px 0;
}

.section-muted {
    background: #f2f6f8;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

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

.section-heading.centered .section-kicker {
    margin-inline: auto;
}

.section-heading h2,
.section-pad h2,
.cta-band h2 {
    font-weight: 850;
    letter-spacing: 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 14px;
}

.benefit-strip {
    background: #fbfcf8;
    margin-top: -38px;
    position: relative;
    z-index: 4;
}

.benefit-strip-inner {
    background: #fff;
    border: 1px solid rgba(23, 32, 51, .10);
    box-shadow: 0 18px 50px rgba(24, 32, 51, .11);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.benefit-strip-inner div {
    padding: 22px;
    display: grid;
    gap: 6px;
    border-right: 1px solid var(--line);
}

.benefit-strip-inner div:last-child {
    border-right: 0;
}

.benefit-strip-inner i {
    color: var(--brand-2);
    font-size: 1.35rem;
}

.benefit-strip-inner strong {
    font-size: .98rem;
}

.benefit-strip-inner span {
    color: var(--muted);
    font-size: .92rem;
}

.feature-section {
    background: #fbfcf8;
}

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

.workflow-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, .09);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(24, 32, 51, .08);
}

.workflow-step-card {
    position: relative;
    min-height: 220px;
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 10px;
    border-right: 1px solid var(--line);
}

.workflow-step-card:last-child {
    border-right: 0;
}

.workflow-step-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    background: var(--brand-2);
}

.workflow-step-card:nth-child(2)::before {
    background: var(--brand);
}

.workflow-step-card:nth-child(3)::before {
    background: var(--accent);
}

.workflow-step-card:nth-child(4)::before {
    background: #ef6f6c;
}

.workflow-step-number {
    width: fit-content;
    color: #667085;
    background: #f2f5f7;
    border: 1px solid #e2e8ee;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .72rem;
    font-weight: 850;
}

.workflow-step-card i {
    color: var(--brand);
    font-size: 1.35rem;
}

.workflow-step-card strong {
    color: #111827;
    font-size: 1rem;
    line-height: 1.3;
}

.workflow-step-card p {
    color: var(--muted);
    margin: 0;
    font-size: .93rem;
}

.modern-card {
    background: #fff;
    border: 1px solid rgba(23, 32, 51, .09);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(24, 32, 51, .07);
}

.feature-card {
    padding: 26px;
    min-height: 100%;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--brand);
    margin-bottom: 18px;
}

.feature-icon i {
    color: inherit;
    font-size: 1.25rem;
}

.feature-card h3,
.pricing-card h3 {
    font-size: 1.08rem;
    margin: 0 0 8px;
    font-weight: 800;
}

.feature-card p,
.pricing-card p {
    color: var(--muted);
    margin: 0;
}

.product-preview-section {
    background: #eef3f6;
}

.preview-layout {
    display: grid;
    grid-template-columns: minmax(280px, .55fr) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.dashboard-mockup {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 500px;
    border: 1px solid rgba(23, 32, 51, .10);
    box-shadow: 0 30px 80px rgba(24, 32, 51, .18);
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}

.mock-sidebar {
    background: #172033;
    color: #fff;
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 14px;
}

.mock-sidebar strong {
    margin-bottom: 16px;
}

.mock-sidebar span {
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .08);
    border-radius: 6px;
    padding: 10px 12px;
}

.mock-main {
    padding: 28px;
    background: #f8fafc;
}

.mock-top {
    min-height: 48px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
}

.mock-top em {
    font-style: normal;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: .78rem;
}

.mock-grid {
    margin: 18px 0;
}

.mock-chart {
    background: #fff;
    border: 1px solid #e5e9f0;
    padding: 18px;
    border-radius: 8px;
}

.mock-table {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.mock-table span {
    min-height: 38px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 0 14px;
}

.mock-table em {
    font-style: normal;
    color: var(--muted);
}

.mock-table strong {
    color: #0f766e;
}

.pricing-section {
    background: #fbfcf8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pricing-card {
    padding: 28px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.pricing-card .price {
    font-size: 1.9rem;
    font-weight: 850;
    color: var(--brand);
}

.price-marker {
    width: fit-content;
    color: #0f766e;
    background: #dff8f0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 800;
}

.featured-price {
    border-color: rgba(36, 84, 214, .34);
    box-shadow: 0 22px 60px rgba(36, 84, 214, .14);
}

.faq-section {
    background: #eef3f6;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    gap: 42px;
}

.modern-accordion .accordion-item {
    border: 1px solid rgba(23, 32, 51, .10);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(24, 32, 51, .06);
}

.modern-accordion .accordion-button {
    font-weight: 800;
    padding: 18px 20px;
}

.modern-accordion .accordion-button:not(.collapsed) {
    color: var(--ink);
    background: #fff;
    box-shadow: none;
}

.modern-accordion .accordion-body {
    color: var(--muted);
}

.cta-band {
    padding: 72px 0;
    background: #152033;
    color: #fff;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.cta-panel .section-kicker {
    color: #c8f7ec;
    background: rgba(21, 154, 133, .20);
    border-color: rgba(200, 247, 236, .22);
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.public-footer {
    background: #101828;
    color: #d0d5dd;
}

.auth-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(36, 84, 214, .10), rgba(21, 154, 133, .16)),
        #f6f8fb;
}

.auth-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.brand-link {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.1rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(24, 32, 51, .08);
}

.auth-card.wide {
    max-width: 760px;
}

.stacked-form {
    display: grid;
    gap: 16px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: .94rem;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 268px 1fr;
}

.sidebar {
    background: var(--sidebar);
    color: #fff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    min-height: 42px;
}

.sidebar-brand img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.sidebar-nav a,
.sidebar-logout {
    color: rgba(255, 255, 255, .78);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-logout:hover {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

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

.main-panel {
    min-width: 0;
}

.topbar {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    padding: 7px 12px;
    background: #eef2ff;
    border-radius: 999px;
    font-weight: 700;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content {
    padding: 28px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.page-heading h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 22px;
}

.narrow-panel {
    max-width: 760px;
}

.panel-header,
.subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-header h2,
.subsection-header h2,
.panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-size: .9rem;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.65rem;
}

.stat-card.warning strong {
    color: #b7791f;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-actions {
    min-width: 260px;
}

.empty-state {
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.recipe-rows {
    display: grid;
    gap: 10px;
}

.recipe-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(120px, .75fr) minmax(120px, .75fr) auto;
    gap: 10px;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) 1fr;
    gap: 10px 16px;
    margin: 0;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-stats span {
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
}

.mini-stats strong {
    display: block;
    color: var(--ink);
    font-size: 1.4rem;
}

canvas {
    max-width: 100%;
}

/* Modern dashboard skin */
.app-body {
    --app-bg: #f4f7f6;
    --app-surface: #ffffff;
    --app-line: #dfe6ea;
    --app-soft-line: rgba(23, 32, 51, .08);
    --app-shadow: 0 18px 48px rgba(24, 32, 51, .08);
    --app-shadow-sm: 0 8px 24px rgba(24, 32, 51, .06);
    --app-sidebar: #121a2b;
    --app-sidebar-muted: rgba(255, 255, 255, .62);
    background: var(--app-bg);
}

.app-body .app-shell {
    grid-template-columns: 292px minmax(0, 1fr);
    background:
        linear-gradient(rgba(18, 26, 43, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 26, 43, .025) 1px, transparent 1px),
        var(--app-bg);
    background-size: 34px 34px;
}

.app-body .sidebar {
    margin: 14px;
    height: calc(100vh - 28px);
    top: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: var(--app-sidebar);
    box-shadow: 0 22px 58px rgba(18, 26, 43, .28);
    padding: 16px;
}

.app-body .super-sidebar {
    background: #141d31;
}

.app-body .sidebar-brand {
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.app-body .sidebar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-body .sidebar-brand img {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.app-body .sidebar-nav {
    gap: 6px;
    margin-top: 6px;
}

.app-body .sidebar-nav a,
.app-body .sidebar-logout {
    min-height: 44px;
    color: var(--app-sidebar-muted);
    border: 1px solid transparent;
    padding: 10px 12px;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.app-body .sidebar-nav a i,
.app-body .sidebar-logout i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

.app-body .sidebar-nav a:hover,
.app-body .sidebar-logout:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .10);
    color: #fff;
    transform: translateX(2px);
}

.app-body .sidebar-nav a.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #121a2b;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.app-body .sidebar-nav a.active i {
    color: var(--brand);
}

.app-body .sidebar-logout {
    background: rgba(194, 65, 75, .10);
    color: rgba(255, 255, 255, .82);
}

.app-body .main-panel {
    background: transparent;
}

.app-body .topbar {
    height: 76px;
    margin: 14px 18px 0 0;
    padding: 0 22px;
    top: 14px;
    border: 1px solid var(--app-soft-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    box-shadow: var(--app-shadow-sm);
}

.app-body .topbar .small {
    color: #7a8794 !important;
    font-weight: 700;
}

.app-body .topbar .badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
}

.app-body .topbar-actions {
    gap: 14px;
}

.app-body .topbar-actions .form-select {
    border-color: var(--app-line);
    background-color: #f8fafc;
    font-weight: 700;
}

.app-body .user-chip {
    background: #eef4ff;
    border: 1px solid #d9e6ff;
    color: #1d3f9f;
    border-radius: 999px;
    padding: 8px 13px;
}

.app-body .content {
    padding: 26px 32px 34px 14px;
}

.app-body .page-heading {
    margin-bottom: 20px;
}

.app-body .page-heading h1 {
    font-size: 1.62rem;
    font-weight: 850;
    color: #111827;
}

.app-body .page-heading .text-muted {
    color: #7a8794 !important;
    font-weight: 650;
}

.app-body .panel,
.app-body .stat-card,
.app-body .auth-card {
    border: 1px solid var(--app-soft-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--app-shadow-sm);
}

.app-body .panel {
    padding: 24px;
}

.app-body .panel-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--app-line);
}

.app-body .panel-header h2,
.app-body .subsection-header h2,
.app-body .panel-title {
    color: #111827;
    font-size: 1rem;
    letter-spacing: 0;
}

.app-body .stat-grid {
    gap: 18px;
    margin-bottom: 24px;
}

.app-body .stat-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    min-height: 124px;
}

.app-body .stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--brand);
}

.app-body .stat-card:nth-child(2)::before,
.app-body .stat-card.warning::before {
    background: var(--accent);
}

.app-body .stat-card:nth-child(3)::before {
    background: var(--brand-2);
}

.app-body .stat-card:nth-child(4)::before {
    background: #ef6f6c;
}

.app-body .stat-card span {
    color: #6b7787;
    font-weight: 750;
    font-size: .84rem;
}

.app-body .stat-card strong {
    margin-top: 12px;
    color: #111827;
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    line-height: 1.1;
}

.app-body .quick-actions {
    gap: 12px;
    margin-bottom: 24px;
}

.app-body .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgba(36, 84, 214, .18);
}

.app-body .btn-primary:hover {
    background: #1d46b8;
    border-color: #1d46b8;
}

.app-body .btn-outline-primary,
.app-body .btn-outline-secondary,
.app-body .btn-outline-danger {
    background: #fff;
    border-color: var(--app-line);
    color: #344054;
}

.app-body .btn-outline-primary:hover {
    background: #eef4ff;
    border-color: #c8d8ff;
    color: #1d3f9f;
}

.app-body .btn-outline-secondary:hover {
    background: #f3f6f8;
    border-color: #cbd5dd;
    color: #172033;
}

.app-body .btn-outline-danger:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.app-body .table-responsive {
    border-radius: 8px;
}

.app-body .table {
    --bs-table-bg: transparent;
    vertical-align: middle;
}

.app-body .table thead th {
    background: #f7fafb;
    border-bottom: 1px solid var(--app-line);
    color: #667085;
    font-size: .76rem;
    letter-spacing: .02em;
}

.app-body .table tbody td {
    border-color: #edf1f3;
    color: #344054;
    padding-top: 14px;
    padding-bottom: 14px;
}

.app-body .table tbody tr:hover td {
    background: #f9fbfc;
}

.app-body .badge {
    border-radius: 999px;
    padding: .42rem .62rem;
    font-weight: 800;
}

.app-body .text-bg-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

.app-body .text-bg-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.app-body .text-bg-danger {
    background-color: #ffe4e6 !important;
    color: #9f1239 !important;
}

.app-body .text-bg-secondary {
    background-color: #e5e7eb !important;
    color: #374151 !important;
}

.app-body .form-control,
.app-body .form-select {
    border-color: var(--app-line);
    background-color: #fff;
    min-height: 42px;
}

.app-body .form-control:focus,
.app-body .form-select:focus {
    border-color: rgba(36, 84, 214, .55);
    box-shadow: 0 0 0 .2rem rgba(36, 84, 214, .12);
}

.app-body .form-label {
    color: #475467;
    font-weight: 750;
    font-size: .86rem;
}

.app-body .empty-state {
    background: #f8fafc;
    border-color: #d8e0e6;
    color: #667085;
}

.app-body .detail-list dt {
    color: #667085;
}

.app-body .detail-list dd {
    color: #243044;
    font-weight: 650;
}

.app-body .mini-stats span {
    background: #f8fafc;
    border-color: var(--app-line);
}

.app-body canvas {
    background: #fff;
    border-radius: 8px;
}

.app-body .sidebar {
    background:
        linear-gradient(180deg, rgba(36, 84, 214, .18), rgba(21, 154, 133, .08) 38%, transparent 72%),
        var(--app-sidebar);
}

.app-body .sidebar-brand {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.app-body .page-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(23, 32, 51, .08);
}

.app-body .page-heading h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-body .page-heading h1::before {
    content: "";
    width: 5px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.app-body .panel,
.app-body .stat-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.app-body .panel:hover,
.app-body .stat-card:hover {
    border-color: rgba(36, 84, 214, .16);
    box-shadow: 0 20px 54px rgba(24, 32, 51, .10);
}

.app-body .stat-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .98) 58%, rgba(238, 244, 255, .72) 100%);
}

.app-body .stat-card:hover {
    transform: translateY(-2px);
}

.app-body .quick-actions .btn,
.app-body .panel-header .btn,
.app-body .page-heading .btn {
    min-height: 42px;
    padding-inline: 14px;
}

.app-body .quick-actions .btn {
    box-shadow: 0 8px 20px rgba(24, 32, 51, .07);
}

.app-body .table {
    border-collapse: separate;
    border-spacing: 0;
}

.app-body .table thead th:first-child {
    border-top-left-radius: 8px;
}

.app-body .table thead th:last-child {
    border-top-right-radius: 8px;
}

.app-body .table-actions .btn {
    min-height: 34px;
    padding: 6px 9px;
    font-size: .82rem;
}

.app-body .alert {
    border-radius: 8px;
    border-color: rgba(23, 32, 51, .08);
    box-shadow: var(--app-shadow-sm);
}

.app-body .activation-dropdown .btn {
    min-height: 38px;
}

.app-body .activation-menu {
    min-width: 280px;
    padding: 10px;
    border: 1px solid var(--app-soft-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(24, 32, 51, .14);
}

.app-body .activation-menu-title {
    color: #667085;
    font-size: .78rem;
    font-weight: 850;
    padding: 4px 8px 8px;
}

.app-body .activation-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 750;
}

.app-body .activation-plan strong {
    color: var(--brand);
    white-space: nowrap;
}

.app-body .activation-note {
    margin-top: 8px;
    padding: 10px;
    color: #667085;
    background: #f8fafc;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    font-size: .82rem;
}

@media (max-width: 1200px) {
    .brand-copy small {
        display: none;
    }

    .public-nav .nav-link {
        padding-inline: .62rem !important;
    }
}

@media (max-width: 991.98px) {
    .public-nav {
        padding: 8px 0;
    }

    .public-nav-inner {
        min-height: 62px;
    }

    .public-nav .navbar-collapse {
        padding-top: 12px;
    }

    .public-menu {
        align-items: stretch !important;
        gap: 8px;
    }

    .public-language {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .public-nav-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }

    .public-nav-actions .btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 1100px) {
    .app-body .app-shell {
        grid-template-columns: 1fr;
    }

    .app-body .sidebar {
        position: relative;
        top: auto;
        height: auto;
        margin: 12px;
    }

    .app-body .topbar {
        margin: 0 12px;
        top: 12px;
    }

    .app-body .content {
        padding: 20px 12px 30px;
    }

    .app-body .sidebar-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-product-shell {
        width: min(650px, 64vw);
        opacity: .58;
        right: -130px;
    }

    .workflow-panel,
    .feature-mosaic,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-step-card:nth-child(2) {
        border-right: 0;
    }

    .workflow-step-card:nth-child(1),
    .workflow-step-card:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

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

    .preview-layout,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

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

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

@media (max-width: 768px) {
    .app-body .app-shell {
        background-size: 28px 28px;
    }

    .app-body .sidebar {
        margin: 10px;
        padding: 12px;
    }

    .app-body .sidebar-brand {
        min-height: 50px;
    }

    .app-body .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .app-body .topbar {
        height: auto;
        min-height: 76px;
        margin: 0 10px;
        padding: 14px;
        top: 10px;
    }

    .app-body .topbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .app-body .topbar-actions .language-form {
        flex: 1 1 150px;
    }

    .app-body .user-chip {
        max-width: 100%;
    }

    .app-body .content {
        padding: 16px 10px 26px;
    }

    .app-body .panel {
        padding: 18px;
    }

    .app-body .stat-card {
        min-height: 104px;
    }

    .app-body .table-actions {
        min-width: 0;
    }

    .hero-section {
        min-height: auto;
        align-items: flex-start;
    }

    .hero-product-shell {
        position: relative;
        inset: auto;
        width: min(720px, calc(100% - 28px));
        margin: 18px auto 30px;
        transform: none;
        opacity: .96;
    }

    .hero-backdrop {
        position: relative;
        display: flex;
        order: 2;
        inset: auto;
        z-index: 1;
        overflow: visible;
    }

    .hero-section {
        display: grid;
    }

    .hero-container {
        order: 1;
    }

    .hero-copy {
        padding: 56px 0 16px;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 11vw, 3.45rem);
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-window-body {
        grid-template-columns: 54px 1fr;
        min-height: 420px;
    }

    .hero-side-rail {
        padding: 18px 10px;
    }

    .hero-side-rail i {
        width: 32px;
        height: 32px;
    }

    .hero-data-area {
        padding: 14px;
    }

    .hero-kpis,
    .mock-grid,
    .hero-workflow {
        grid-template-columns: 1fr;
    }

    .workflow-line {
        display: none;
    }

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

    .benefit-strip {
        margin-top: 0;
    }

    .brand-copy small {
        max-width: 180px;
    }

    .benefit-strip-inner,
    .workflow-panel,
    .feature-mosaic,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step-card,
    .workflow-step-card:nth-child(2) {
        border-right: 0;
    }

    .workflow-step-card {
        min-height: auto;
        border-bottom: 1px solid var(--line);
    }

    .workflow-step-card:last-child {
        border-bottom: 0;
    }

    .benefit-strip-inner div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .benefit-strip-inner div:last-child {
        border-bottom: 0;
    }

    .section-pad {
        padding: 56px 0;
    }

    .dashboard-mockup {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mock-sidebar {
        display: none;
    }

    .mock-main {
        padding: 18px;
    }

    .mock-chart {
        height: 120px;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .content {
        padding: 18px;
    }

    .topbar,
    .page-heading,
    .panel-header,
    .subsection-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-grid,
    .mini-stats,
    .sidebar-nav,
    .recipe-row {
        grid-template-columns: 1fr;
    }

    .auth-links {
        flex-direction: column;
    }
}

/* Premium marketing and auth refresh */
.public-body {
    background: #f7faf8;
}

.marketing-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 96px 0 82px;
    background:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(135deg, #101828 0%, #18344a 54%, #0f766e 118%);
    background-size: 54px 54px, 54px 54px, auto;
}

.marketing-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(247, 250, 248, 0), #f7faf8);
    pointer-events: none;
}

.marketing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr);
    gap: 42px;
    align-items: center;
}

.marketing-hero-copy {
    max-width: 780px;
}

.marketing-hero-copy .eyebrow,
.auth-promo .eyebrow {
    color: #c8f7ec;
    background: rgba(21, 154, 133, .20);
    border-color: rgba(200, 247, 236, .22);
}

.marketing-hero-copy h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(2.65rem, 5.2vw, 5.7rem);
    line-height: .98;
    font-weight: 850;
}

.marketing-hero-copy p {
    max-width: 720px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.12rem;
}

.marketing-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.marketing-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .09);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .88rem;
    font-weight: 750;
}

.marketing-proof i {
    color: #8cebd8;
}

.command-center {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .95);
    color: var(--ink);
    border-radius: 8px;
    box-shadow: 0 34px 82px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.command-top {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e9f0;
    background: #f5f8fb;
}

.window-dots {
    display: inline-flex;
    gap: 7px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.window-dots span:nth-child(1) { background: #ef6f6c; }
.window-dots span:nth-child(2) { background: #e7b84b; }
.window-dots span:nth-child(3) { background: #159a85; }

.command-top em {
    font-style: normal;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .76rem;
    font-weight: 850;
}

.command-body {
    display: grid;
    grid-template-columns: 72px 1fr;
    min-height: 520px;
}

.command-rail {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px 16px;
    background: #121a2b;
}

.command-rail i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .10);
    border-radius: 8px;
}

.command-rail i:first-child {
    color: #fff;
    background: var(--brand-2);
}

.command-main {
    display: grid;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
}

.command-alert,
.recipe-panel,
.usage-panel,
.command-stats span {
    border: 1px solid #e5e9f0;
    background: #fff;
    border-radius: 8px;
}

.command-alert {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.command-alert > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 8px;
}

.command-alert span,
.command-stats small,
.usage-panel span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.command-alert strong,
.usage-panel strong {
    display: block;
    margin-top: 2px;
    color: #111827;
}

.command-alert b {
    color: #9f1239;
    background: #ffe4e6;
    border-radius: 999px;
    padding: 6px 10px;
}

.command-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.command-stats span {
    padding: 15px;
}

.command-stats b {
    display: block;
    margin-top: 7px;
    font-size: 1.45rem;
}

.recipe-panel,
.usage-panel {
    padding: 16px;
}

.recipe-panel-head,
.usage-panel {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.recipe-panel-head span {
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .76rem;
    font-weight: 850;
}

.recipe-lines {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.recipe-lines i {
    display: block;
    width: var(--w);
    height: 10px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 999px;
}

.usage-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-width: 130px;
    height: 86px;
}

.usage-bars i {
    flex: 1;
    display: block;
    border-radius: 6px 6px 0 0;
    background: var(--brand);
}

.usage-bars i:nth-child(1) { height: 46%; background: var(--brand-2); }
.usage-bars i:nth-child(2) { height: 72%; }
.usage-bars i:nth-child(3) { height: 58%; background: var(--accent); }
.usage-bars i:nth-child(4) { height: 86%; background: #ef6f6c; }
.usage-bars i:nth-child(5) { height: 64%; background: var(--brand-2); }

.proof-strip {
    position: relative;
    z-index: 2;
    margin-top: -34px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.proof-grid article {
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(23, 32, 51, .08);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(24, 32, 51, .09);
}

.proof-grid i {
    color: var(--brand-2);
    font-size: 1.25rem;
}

.proof-grid strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 1.02rem;
}

.proof-grid p {
    margin: 0;
    color: var(--muted);
}

.flow-section,
.pricing-section {
    background: #f7faf8;
}

.flow-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.flow-card {
    position: relative;
    min-height: 245px;
    padding: 24px;
    border: 1px solid rgba(23, 32, 51, .08);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(24, 32, 51, .07);
}

.flow-card span {
    display: inline-flex;
    color: #667085;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .74rem;
    font-weight: 850;
}

.flow-card i {
    display: block;
    margin: 20px 0 14px;
    color: var(--brand);
    font-size: 1.45rem;
}

.flow-card h3,
.preview-insights strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
}

.flow-card p,
.preview-insights p {
    color: var(--muted);
    margin: 9px 0 0;
    font-size: .93rem;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 10px;
}

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

.feature-card-spotlight {
    grid-column: span 2;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(36, 84, 214, .96), rgba(21, 154, 133, .92)),
        #18344a;
}

.feature-card-spotlight .feature-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.feature-card-spotlight h3,
.feature-card-spotlight p {
    color: #fff;
}

.preview-header .section-heading {
    max-width: 860px;
}

.preview-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .38fr);
    gap: 18px;
    align-items: stretch;
}

.preview-stage .dashboard-mockup {
    min-height: 560px;
}

.preview-insights {
    display: grid;
    gap: 14px;
}

.preview-insights article {
    padding: 22px;
    border: 1px solid rgba(23, 32, 51, .08);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(24, 32, 51, .07);
}

.preview-insights i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    color: var(--brand);
    background: #eef4ff;
    border-radius: 8px;
}

.pricing-card {
    min-height: 100%;
}

.pricing-card .btn {
    margin-top: auto;
}

.cta-band {
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
        #111827;
    background-size: 42px 42px, 42px 42px, auto;
}

.cta-panel {
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 24px 62px rgba(0, 0, 0, .18);
}

.auth-body {
    background:
        linear-gradient(rgba(18, 26, 43, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 26, 43, .035) 1px, transparent 1px),
        #eef3f6;
    background-size: 34px 34px;
}

.auth-shell {
    width: min(1180px, calc(100% - 32px));
    padding: 24px 0 58px;
}

.auth-top {
    min-height: 70px;
    margin-bottom: 22px;
    padding: 10px 12px;
    border: 1px solid rgba(23, 32, 51, .08);
    background: rgba(255, 255, 255, .88);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(24, 32, 51, .07);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand span:last-child {
    display: grid;
    line-height: 1.15;
}

.auth-brand small {
    color: var(--muted);
    font-size: .76rem;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-screen {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(360px, .58fr);
    gap: 18px;
    align-items: stretch;
}

.auth-screen-register {
    grid-template-columns: minmax(300px, .48fr) minmax(0, .9fr);
}

.auth-promo {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    padding: 34px;
    color: #fff;
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(145deg, #101828 0%, #18344a 62%, #0f766e 120%);
    background-size: 42px 42px, 42px 42px, auto;
    box-shadow: 0 24px 64px rgba(24, 32, 51, .18);
}

.auth-promo h2 {
    margin: 12px 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
    font-weight: 850;
}

.auth-promo p {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 24px;
}

.auth-promo-list {
    display: grid;
    gap: 10px;
}

.auth-promo-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    font-weight: 750;
}

.auth-promo-list i {
    color: #8cebd8;
}

.auth-mini-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.auth-mini-dashboard div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .09);
    border-radius: 8px;
}

.auth-mini-dashboard small {
    display: block;
    color: rgba(255, 255, 255, .70);
    font-size: .72rem;
    font-weight: 800;
}

.auth-mini-dashboard strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 1.35rem;
}

.auth-screen .auth-card {
    max-width: none;
    margin: 0;
    align-self: center;
}

.auth-screen-register .auth-card {
    align-self: stretch;
}

.auth-card {
    border: 1px solid rgba(23, 32, 51, .08);
    box-shadow: 0 24px 64px rgba(24, 32, 51, .10);
}

.auth-card-header {
    margin-bottom: 22px;
}

.auth-card-header span {
    display: inline-flex;
    color: #0f766e;
    background: #dff8f0;
    border: 1px solid rgba(21, 154, 133, .18);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .76rem;
    font-weight: 850;
    margin-bottom: 12px;
}

.auth-card-header h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 850;
}

.auth-card-header p {
    margin: 10px 0 0;
    color: var(--muted);
}

.input-shell {
    position: relative;
}

.input-shell > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    pointer-events: none;
}

.input-shell .form-control {
    min-height: 46px;
    padding-left: 42px;
}

.auth-submit {
    min-height: 46px;
}

.auth-secure-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    color: #667085;
    font-size: .9rem;
}

.auth-secure-note i {
    color: var(--brand-2);
}

.activation-request-card {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(23, 32, 51, .08);
    background: #f8fafc;
    border-radius: 8px;
}

.activation-request-card p {
    color: var(--muted);
    font-size: .9rem;
    margin: 8px 0 14px;
}

/* Landing contrast refresh */
.marketing-hero {
    padding: 84px 0 74px;
}

.marketing-hero-copy {
    max-width: 650px;
}

.marketing-hero-copy h1 {
    max-width: 660px;
    font-size: clamp(2.35rem, 4vw, 4.35rem);
    line-height: 1.02;
}

.marketing-hero-copy p {
    max-width: 610px;
    font-size: 1.04rem;
}

.proof-strip {
    padding-bottom: 56px;
    background: #f7faf8;
}

.proof-grid {
    gap: 18px;
}

.proof-grid article {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.proof-grid article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.flow-section {
    color: #fff;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(135deg, #101828 0%, #18344a 62%, #0f766e 130%);
    background-size: 48px 48px, 48px 48px, auto;
}

.flow-section .section-kicker {
    color: #c8f7ec;
    background: rgba(21, 154, 133, .18);
    border-color: rgba(200, 247, 236, .22);
}

.flow-section .section-heading h2,
.flow-section .section-heading p {
    color: #fff;
}

.flow-section .section-heading p {
    color: rgba(255, 255, 255, .74);
}

.flow-card {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.flow-card span {
    color: #c8f7ec;
    background: rgba(21, 154, 133, .20);
}

.flow-card i,
.flow-card h3 {
    color: #fff;
}

.flow-card p {
    color: rgba(255, 255, 255, .72);
}

.feature-section {
    background: #f7faf8;
}

.feature-showcase {
    gap: 18px;
}

.feature-showcase .feature-card {
    border-color: rgba(23, 32, 51, .08);
    box-shadow: 0 16px 42px rgba(24, 32, 51, .08);
}

.feature-showcase .feature-card:not(.feature-card-spotlight) {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
}

.product-preview-section {
    color: #fff;
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
        #111827;
    background-size: 44px 44px, 44px 44px, auto;
}

.product-preview-section .section-kicker {
    color: #c8f7ec;
    background: rgba(21, 154, 133, .18);
    border-color: rgba(200, 247, 236, .22);
}

.product-preview-section .section-heading h2,
.product-preview-section .section-heading p {
    color: #fff;
}

.product-preview-section .section-heading p {
    color: rgba(255, 255, 255, .72);
}

.preview-stage .dashboard-mockup {
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

.preview-insights article {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.preview-insights i {
    color: #fff;
    background: rgba(36, 84, 214, .40);
}

.preview-insights strong {
    color: #fff;
}

.preview-insights p {
    color: rgba(255, 255, 255, .72);
}

.pricing-section {
    background:
        linear-gradient(180deg, #eef4ff 0%, #f7faf8 100%);
}

.pricing-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(36, 84, 214, .12);
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #d9e6ff;
}

.pricing-card.featured-price::before {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.faq-section {
    background: #ffffff;
}

.faq-layout {
    align-items: start;
}

.modern-accordion .accordion-item {
    border-color: rgba(23, 32, 51, .08);
    box-shadow: 0 12px 34px rgba(24, 32, 51, .07);
}

.cta-band {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

@media (max-width: 1100px) {
    .marketing-hero-grid,
    .preview-stage,
    .auth-screen,
    .auth-screen-register {
        grid-template-columns: 1fr;
    }

    .command-center {
        max-width: 760px;
    }

    .flow-track,
    .feature-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card-spotlight {
        grid-column: span 1;
    }

    .auth-promo {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .marketing-hero {
        padding: 58px 0 56px;
    }

    .marketing-hero-copy h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .command-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .command-rail {
        display: none;
    }

    .command-stats,
    .proof-grid,
    .flow-track,
    .feature-showcase,
    .pricing-grid,
    .auth-mini-dashboard {
        grid-template-columns: 1fr;
    }

    .proof-strip {
        margin-top: 0;
    }

    .proof-grid article,
    .flow-card {
        min-height: auto;
    }

    .feature-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-stage .dashboard-mockup {
        min-height: auto;
    }

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

    .auth-brand small {
        white-space: normal;
    }

    .auth-promo,
    .auth-card {
        padding: 24px;
    }
}

/* Requested landing alignment */
.marketing-hero::after {
    display: none;
}

.proof-strip {
    margin-top: 80px;
    padding-bottom: 80px;
}

.feature-showcase {
    grid-auto-rows: 1fr;
}

.feature-card-spotlight {
    grid-column: auto;
}

.feature-showcase .feature-card {
    height: 100%;
    min-height: 286px;
    display: flex;
    flex-direction: column;
}

.product-preview-section,
.cta-band {
    background:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(135deg, #101828 0%, #18344a 54%, #0f766e 118%);
    background-size: 54px 54px, 54px 54px, auto;
}

@media (max-width: 768px) {
    .proof-strip {
        margin-top: 40px;
        padding-bottom: 56px;
    }

    .feature-showcase .feature-card {
        min-height: auto;
    }
}
