@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
    --bg-main: #f5f7fb;
    --bg-panel: #ffffff;
    --bg-panel-soft: #f8fafc;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --line: #dce3ec;
    --accent: #2563eb;
    --accent-2: #1d4ed8;
}

body.app-body {
    font-family: "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #fafbfd 0%, #f2f5f9 100%);
    color: var(--text-main);
    min-height: 100vh;
    font-size: 13px;
    line-height: 1.35;
}

body.app-body:has(.landing-page) {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.14), transparent 24%),
        linear-gradient(180deg, #f7fafe 0%, #edf3f8 55%, #f7fafc 100%);
}

.landing-page {
    position: relative;
    overflow: hidden;
    color: #102033;
}

.landing-hero-shell {
    position: relative;
    padding-bottom: 48px;
}

.landing-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
    pointer-events: none;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 18px 0;
    background: rgba(247, 250, 254, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.landing-brand-logo {
    width: clamp(170px, 18vw, 250px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.landing-footer-logo {
    width: min(240px, 100%);
    height: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.landing-brand-tag {
    font-size: 0.76rem;
    color: #4b647d;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-menu,
.landing-nav-actions,
.landing-cta-group,
.landing-trust-row,
.proof-grid,
.pricing-grid,
.benefit-grid,
.steps-grid,
.module-grid,
.landing-footer-grid {
    display: flex;
}

.landing-menu {
    align-items: center;
    gap: 24px;
}

.landing-menu a,
.landing-footer a,
.landing-link-btn {
    text-decoration: none;
    color: #34506b;
    font-weight: 500;
}

.landing-menu a:hover,
.landing-footer a:hover,
.landing-link-btn:hover {
    color: #0f60ff;
}

.landing-nav-actions {
    align-items: center;
    gap: 12px;
}

.landing-link-btn {
    padding: 0;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 48px;
    align-items: center;
    padding: 64px 0 32px;
}

.landing-hero-copy {
    position: relative;
    z-index: 1;
}

.landing-badge,
.section-kicker,
.pricing-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(59, 130, 246, 0.16);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    color: #0f60ff;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.landing-hero h1,
.section-heading h2,
.final-cta h2 {
    font-family: "Sora", "Segoe UI", sans-serif;
    letter-spacing: -0.04em;
}

.landing-hero h1 {
    font-size: clamp(2.9rem, 5vw, 4.7rem);
    line-height: 0.98;
    margin: 20px 0 18px;
    max-width: 11ch;
}

.landing-lead,
.section-heading p,
.final-cta p,
.landing-footer p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #51657b;
}

.landing-lead {
    max-width: 60ch;
    margin-bottom: 28px;
}

.landing-cta-group {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.landing-btn {
    border-radius: 16px;
    padding: 14px 20px;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
}

.landing-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f60ff 0%, #06b6d4 100%);
}

.landing-btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #0b53de 0%, #0891b2 100%);
}

.landing-btn-secondary {
    color: #0f2b4f;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 96, 255, 0.16);
}

.landing-btn-secondary:hover,
.landing-btn-ghost:hover {
    color: #0f60ff;
    border-color: rgba(15, 96, 255, 0.28);
    background: rgba(255, 255, 255, 0.98);
}

.landing-btn-ghost {
    color: #0f2b4f;
    background: transparent;
    border-color: rgba(100, 116, 139, 0.22);
}

.landing-btn-link {
    color: #0f60ff;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.landing-btn-link:hover {
    color: #0b53de;
}

.landing-trust-row {
    flex-wrap: wrap;
    gap: 16px;
}

.landing-trust-row div {
    flex: 1 1 230px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.landing-trust-row strong,
.benefit-card h3,
.step-card h3,
.module-card span,
.pricing-card h3,
.landing-footer h3,
.differential-panel h3 {
    display: block;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.landing-trust-row span,
.benefit-card p,
.step-card p,
.module-card p,
.pricing-card p,
.differential-panel p,
.proof-grid span,
.floating-insight span,
.product-kpi-card span,
.product-kpi-card small,
.feed-item span {
    color: #5f7286;
}

.landing-hero-visual {
    position: relative;
    min-height: 620px;
    display: grid;
    place-items: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
}

.hero-orb-a {
    inset: 12% auto auto 8%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 72%);
}

.hero-orb-b {
    inset: auto 0 8% auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(15, 96, 255, 0.18), transparent 68%);
}

.product-window {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(11, 23, 44, 0.92);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.product-window-main {
    width: min(100%, 640px);
}

.product-window-topbar {
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.product-window-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.45);
}

.product-window-grid {
    display: grid;
    grid-template-columns: 86px 1fr;
    min-height: 430px;
}

.product-mini-sidebar {
    padding: 18px 16px;
    background: rgba(9, 18, 35, 0.94);
    border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.mini-logo,
.mini-nav-item {
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.14);
}

.mini-logo {
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(15, 96, 255, 0.9), rgba(6, 182, 212, 0.9));
}

.mini-nav-item {
    width: 100%;
    height: 42px;
    margin-bottom: 12px;
}

.mini-nav-item.short {
    width: 70%;
}

.mini-nav-item.active {
    background: linear-gradient(135deg, rgba(15, 96, 255, 0.9), rgba(6, 182, 212, 0.72));
}

.product-main-panel {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(10, 18, 34, 0.84), rgba(10, 18, 34, 0.98)),
        linear-gradient(90deg, rgba(15, 96, 255, 0.08), transparent 35%);
}

.product-kpi-row,
.product-workspace {
    display: grid;
    gap: 16px;
}

.product-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.product-kpi-card,
.feed-item,
.floating-insight,
.benefit-card,
.step-card,
.module-card,
.pricing-card,
.differential-panel,
.final-cta {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.product-kpi-card {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.product-kpi-card strong,
.feed-item strong,
.floating-insight strong,
.proof-grid strong {
    display: block;
    color: #f8fbff;
    font-family: "Sora", "Segoe UI", sans-serif;
}

.product-kpi-card.accent {
    background: linear-gradient(135deg, rgba(15, 96, 255, 0.2), rgba(6, 182, 212, 0.1));
}

.product-workspace {
    grid-template-columns: 1.15fr 0.85fr;
}

.workspace-chart,
.workspace-feed {
    border-radius: 26px;
    padding: 18px;
    min-height: 238px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.workspace-chart {
    position: relative;
    overflow: hidden;
}

.workspace-chart::before,
.workspace-chart::after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.chart-line {
    position: absolute;
    left: 40px;
    right: 34px;
    bottom: 44px;
    height: 130px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), transparent 70%);
    clip-path: polygon(0 75%, 14% 66%, 28% 70%, 46% 38%, 60% 48%, 79% 18%, 100% 0, 100% 100%, 0 100%);
}

.chart-glow {
    position: absolute;
    inset: 66px 24px 24px 24px;
    background: radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.36), transparent 22%);
}

.workspace-feed {
    display: grid;
    gap: 12px;
}

.feed-item {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.floating-insight {
    position: absolute;
    z-index: 2;
    border-radius: 22px;
    padding: 16px 18px;
    max-width: 240px;
}

.floating-insight strong {
    color: #0f2b4f;
}

.floating-insight-a {
    top: 6%;
    right: -2%;
}

.floating-insight-b {
    bottom: 9%;
    left: -3%;
}

.landing-section {
    position: relative;
    padding: 56px 0;
}

.landing-section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(240, 246, 252, 0.9));
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.final-cta h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin: 18px 0 14px;
    line-height: 1.08;
}

.benefit-grid,
.steps-grid,
.module-grid,
.pricing-grid,
.proof-grid,
.landing-footer-grid {
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-card,
.step-card,
.module-card,
.pricing-card {
    flex: 1 1 250px;
    border-radius: 28px;
    padding: 28px;
}

.benefit-card i,
.differential-panel i {
    font-size: 1.4rem;
    color: #0f60ff;
}

.benefit-card h3,
.step-card h3,
.module-card span,
.pricing-card h3,
.differential-panel h3,
.landing-footer h3 {
    font-size: 1.15rem;
    margin: 18px 0 10px;
    color: #102033;
}

.steps-grid {
    counter-reset: step;
}

.step-number {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1rem;
    color: #0f60ff;
    background: rgba(15, 96, 255, 0.08);
}

.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.differential-panel {
    display: grid;
    gap: 14px;
    border-radius: 32px;
    padding: 24px;
}

.differential-panel article {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.differential-panel article:last-child {
    border-bottom: none;
}

.landing-proof-band {
    padding-top: 12px;
}

.proof-grid article {
    flex: 1 1 200px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(7, 18, 36, 0.95), rgba(10, 30, 56, 0.9));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.proof-grid strong {
    font-size: 2rem;
    margin-bottom: 10px;
}

.proof-grid span {
    color: rgba(226, 232, 240, 0.78);
}

.module-card {
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -36px;
    bottom: -36px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(15, 96, 255, 0.12), transparent 68%);
}

.pricing-card {
    position: relative;
}

.pricing-card ul {
    padding-left: 18px;
    margin: 18px 0 24px;
    color: #4e6176;
}

.pricing-placeholder {
    min-height: 72px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin-top: 10px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 96, 255, 0.08), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(15, 96, 255, 0.14);
}

.pricing-price {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #0f2b4f;
    font-weight: 700;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 700;
    color: #0f60ff;
}

.pricing-prefix {
    display: block;
    flex-basis: 100%;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f60ff;
    font-weight: 700;
}

.pricing-meta {
    display: block;
    flex-basis: 100%;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4e6176;
}

.pricing-label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 96, 255, 0.08);
    color: #0f60ff;
    font-weight: 700;
}

.pricing-card-featured {
    border-color: rgba(15, 96, 255, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(236, 246, 255, 0.96));
    transform: translateY(-10px);
}

.pricing-card-featured .pricing-placeholder {
    background: linear-gradient(180deg, rgba(15, 96, 255, 0.14), rgba(6, 182, 212, 0.08));
    border-color: rgba(15, 96, 255, 0.22);
}

.pricing-card-featured .pricing-price {
    color: #0b53de;
}

.pricing-highlight {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 12px;
}

.final-cta {
    border-radius: 34px;
    padding: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.landing-cta-group.compact {
    margin-bottom: 0;
    justify-content: flex-end;
}

.landing-footer {
    padding: 20px 0 40px;
}

.landing-footer-grid {
    justify-content: space-between;
    align-items: start;
}

.landing-footer-grid > div {
    flex: 1 1 220px;
}

.landing-footer h3 {
    margin-top: 0;
}

.landing-footer a {
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 1199.98px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .landing-hero h1 {
        max-width: 12ch;
    }

    .landing-hero-visual {
        min-height: 560px;
    }

    .landing-split,
    .final-cta {
        grid-template-columns: 1fr;
    }

    .landing-cta-group.compact {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .landing-nav-inner {
        flex-wrap: wrap;
    }

    .landing-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-workspace {
        grid-template-columns: 1fr;
    }

    .floating-insight-a {
        right: 2%;
    }

    .floating-insight-b {
        left: 2%;
    }
}

@media (max-width: 767.98px) {
    .landing-nav {
        padding: 14px 0;
    }

    .landing-brand {
        flex-wrap: wrap;
    }

    .landing-brand-logo {
        width: min(220px, 100%);
    }

    .landing-brand-tag {
        width: 100%;
        letter-spacing: 0.04em;
    }

    .landing-nav-actions,
    .landing-menu {
        justify-content: flex-start;
    }

    .landing-hero {
        padding-top: 34px;
    }

    .landing-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
        max-width: none;
    }

    .landing-lead,
    .section-heading p,
    .final-cta p,
    .landing-footer p {
        font-size: 0.95rem;
    }

    .landing-hero-visual {
        min-height: auto;
        padding-bottom: 112px;
    }

    .product-window-main {
        width: 100%;
    }

    .product-window-grid {
        grid-template-columns: 72px 1fr;
    }

    .product-kpi-row {
        grid-template-columns: 1fr;
    }

    .floating-insight {
        max-width: 200px;
    }

    .floating-insight-a {
        top: auto;
        bottom: 14px;
        right: 4px;
    }

    .floating-insight-b {
        left: 4px;
        bottom: -6px;
    }

    .benefit-card,
    .step-card,
    .module-card,
    .pricing-card,
    .final-cta {
        padding: 22px;
        border-radius: 24px;
    }
}

@supports not selector(body:has(.landing-page)) {
    body.app-body {
        background:
            radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34%),
            radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.14), transparent 24%),
            linear-gradient(180deg, #f7fafe 0%, #edf3f8 55%, #f7fafc 100%);
    }
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-brand-logo {
    width: min(220px, 100%);
    height: 72px;
    object-fit: contain;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 14px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 6px 4px 12px;
    border-bottom: 1px solid var(--line);
}

.brand-logo {
    width: 282px;
    height: 72px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-subtitle {
    color: var(--text-soft);
    font-size: .8rem;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.sidebar-link {
    color: #2f3c4e;
    text-decoration: none;
    border-radius: 8px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #edf3ff;
    color: #1d4ed8;
}

.app-main {
    margin-left: 280px;
    width: calc(100% - 280px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title { font-weight: 600; font-size: .92rem; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-company-dropdown {
    position: relative;
}

.topbar-user-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 10px 6px 6px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.topbar-user-card:hover,
.topbar-user-card:focus {
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .09);
}

.topbar-user-card::after {
    margin-left: 4px;
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .04em;
    flex: 0 0 auto;
}

.topbar-avatar-image {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(59, 130, 246, .25);
    flex: 0 0 auto;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.topbar-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    min-width: 0;
}

.topbar-user-name {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.topbar-company-name {
    font-size: .68rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.topbar-company-menu {
    min-width: 270px;
    max-width: 320px;
    padding: 4px;
}

.company-switch-item {
    border-radius: 8px;
    padding: 7px 8px;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.company-switch-item-name {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-switch-item-subtitle {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-switch-item.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.company-switch-item.active .text-secondary {
    color: #3b82f6 !important;
}

/* ── Topbar mobile (app-style) ──────────────────────────── */
@media (max-width: 767.98px) {
    .topbar {
        padding: 0 12px;
        height: 60px;
        min-height: 60px;
        position: sticky;
        top: 0;
    }

    .topbar-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: .9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 130px);
        text-align: center;
    }

    .topbar-user-card {
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        gap: 0;
    }

    .topbar-user-card:hover,
    .topbar-user-card:focus {
        background: transparent;
        box-shadow: none;
    }

    .topbar-user-card::after {
        display: none;
    }

    .topbar-user-meta {
        display: none;
    }

    .topbar-avatar {
        width: 38px;
        height: 38px;
        font-size: .8rem;
    }

    .topbar-company-menu {
        min-width: 0;
        width: calc(100vw - 24px);
        max-width: 320px;
        font-size: .82rem;
    }

    .topbar-company-menu .dropdown-header {
        font-size: .72rem;
        padding: 6px 10px 4px;
    }

    .company-switch-item {
        padding: 6px 10px;
    }

    .company-switch-item-name {
        font-size: .82rem;
    }

    .company-switch-item-subtitle {
        font-size: .7rem;
    }
}

.page-content {
    padding: 12px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.metric-card {
    background: var(--bg-panel-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(76, 119, 255, .12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.dashboard-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    font-weight: 700;
    color: #5b6f8d;
    margin-bottom: 6px;
}

.dashboard-title {
    font-family: "Sora", "Outfit", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #183153;
}

.dashboard-subtitle {
    max-width: 760px;
    color: #64748b;
    font-size: .88rem;
}

.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card-dashboard {
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.metric-card-dashboard::after {
    content: "";
    position: absolute;
    inset: auto -20px -20px auto;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
}

.metric-card-primary { background: linear-gradient(135deg, #eef4ff 0%, #f9fbff 100%); }
.metric-card-success { background: linear-gradient(135deg, #effbf4 0%, #f7fdf9 100%); }
.metric-card-info { background: linear-gradient(135deg, #eef8fb 0%, #f8fcfd 100%); }
.metric-card-warning { background: linear-gradient(135deg, #fff6ea 0%, #fffdfa 100%); }

.metric-card-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.metric-card-value {
    font-family: "Sora", "Outfit", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f3352;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.metric-card-meta {
    margin-top: 8px;
    color: #5f7088;
    font-size: .77rem;
    position: relative;
    z-index: 1;
}

.dashboard-panel {
    padding: 16px;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-chart {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.dashboard-chart-item {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.dashboard-chart-value {
    font-weight: 700;
    color: #213858;
    font-size: .84rem;
}

.dashboard-chart-bar-wrap {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
    border: 1px solid #dbe6f5;
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

.dashboard-chart-bar {
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    min-height: 12px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.dashboard-chart-label {
    font-size: .76rem;
    font-weight: 700;
    color: #2b405e;
}

.dashboard-chart-meta {
    font-size: .72rem;
    color: #64748b;
    text-align: center;
}

.dashboard-stack-list,
.dashboard-list {
    display: grid;
    gap: 10px;
}

.dashboard-stack-item,
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    background: #fbfdff;
}

.dashboard-stack-label,
.dashboard-list-title {
    font-weight: 700;
    color: #1f3352;
}

.dashboard-stack-meta,
.dashboard-list-meta {
    color: #64748b;
    font-size: .76rem;
    margin-top: 2px;
}

.dashboard-stack-total,
.dashboard-list-value {
    margin-left: auto;
    font-weight: 700;
    color: #183153;
    text-align: right;
}

.dashboard-list-rank,
.dashboard-badge {
    min-width: 48px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #e9f1ff;
    color: #2450a9;
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-badge-soft {
    background: #f0f4f8;
    color: #4a607f;
}

.dashboard-list-body {
    min-width: 0;
}

.dashboard-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-insight-card {
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-insight-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 10px;
}

.dashboard-insight-value {
    font-family: "Sora", "Outfit", sans-serif;
    font-size: 1.32rem;
    font-weight: 700;
    color: #1f3352;
    margin-bottom: 8px;
}

.dashboard-insight-text {
    font-size: .77rem;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-kpi-grid,
    .dashboard-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dashboard-kpi-grid,
    .dashboard-insight-grid,
    .dashboard-chart {
        grid-template-columns: 1fr;
    }

    .dashboard-chart {
        min-height: auto;
    }

    .dashboard-chart-bar-wrap {
        height: 120px;
    }

    .dashboard-stack-item,
    .dashboard-list-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-stack-total,
    .dashboard-list-value {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
}

.table-dark-theme {
    --bs-table-bg: transparent;
    --bs-table-color: #334155;
    --bs-table-border-color: #e2e8f0;
    font-size: .79rem;
}

.btn:not(.landing-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 38px;
    padding: .5rem .9rem;
    font-size: .8rem;
    line-height: 1.2;
    border-radius: 8px;
}

.btn-sm:not(.landing-btn) {
    min-height: 32px;
    padding: .35rem .7rem;
    font-size: .76rem;
}

.btn-lg:not(.landing-btn) {
    min-height: 44px;
    padding: .7rem 1rem;
    font-size: .92rem;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-premium:hover {
    color: #fff;
    filter: brightness(1.05);
}

.quote-premium {
    background: #fff;
}

.quote-selectors {
    display: grid;
    grid-template-columns: 1.4fr 1fr .8fr 1fr 1.8fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafcff;
}

.small-label {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .62rem;
    color: #7a8798;
}

.quote-vehicle-showcase {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    overflow: hidden;
}

.quote-vehicle-head {
    padding: 10px 12px 6px;
}

.quote-vehicle-title {
    font-family: "Sora", "Outfit", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0;
}

.quote-vehicle-subtitle {
    color: #64748b;
    margin-top: 2px;
    font-size: .75rem;
}

.quote-vehicle-price {
    font-family: "Sora", "Outfit", sans-serif;
    margin-top: 6px;
    font-size: 1.26rem;
    color: #147a43;
    font-weight: 600;
}

.quote-vehicle-visual {
    min-height: 180px;
    padding: 6px 8px 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.vehicle-image {
    width: 100%;
    max-height: 185px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.16));
}

.vehicle-image-placeholder {
    width: 100%;
    height: 155px;
    border: 1px dashed #c9d3e0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #7c8da1;
    font-weight: 500;
    font-size: .76rem;
}

.vehicle-image-placeholder i {
    font-size: 1.25rem;
    margin-right: 6px;
}

.quote-tab-block {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.quote-summary-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px;
    position: sticky;
    top: 60px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding: 6px 0;
    font-size: .78rem;
}

.summary-row.final strong,
.summary-row.total-quote strong {
    color: #15803d;
}

.summary-row.total-quote {
    font-size: .9rem;
    font-weight: 600;
}

textarea.form-control {
    resize: vertical;
}

.form-label {
    margin-bottom: .2rem;
    font-size: .72rem;
    font-weight: 500;
    color: #4b5563;
}

.form-control,
.form-select,
.input-group .btn {
    font-size: .78rem;
    min-height: 32px;
    padding-top: .24rem;
    padding-bottom: .24rem;
    border-radius: 6px;
}

.form-control,
.form-select {
    border-color: #d6e0ea;
}

.form-control:focus,
.form-select:focus {
    border-color: #86a8ff;
    box-shadow: 0 0 0 .12rem rgba(37, 99, 235, .15);
}

.h3 {
    font-size: 1.18rem;
}

.h5 {
    font-size: .94rem;
}

.h6 {
    font-size: .82rem;
    margin-bottom: .5rem;
}

.text-secondary {
    color: #6b7280 !important;
}

.badge {
    font-size: .68rem;
    font-weight: 500;
}

.btn-outline-light {
    border-color: #cdd8e5;
    color: #374151;
    background: #fff;
}

.btn-outline-light:hover {
    border-color: #b6c4d5;
    color: #111827;
    background: #f8fafc;
}

.row.g-3 {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

.mt-3 {
    margin-top: .7rem !important;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1019;
        background: rgba(0, 0, 0, .35);
        backdrop-filter: blur(1px);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .quote-selectors {
        grid-template-columns: 1fr;
    }

    .quote-summary-card {
        position: static;
    }
}
