/* Public landing carousel. Keep every rule scoped to the showcase. */
.landing-page .hero-visual:has(> .landing-showcase) {
    min-width: 0;
    max-width: 100%;
}

.landing-showcase.dashboard-preview {
    --showcase-bg: rgba(255, 255, 255, .96);
    --showcase-soft: #f7f8fc;
    --showcase-line: #e8eaf1;
    --showcase-ink: #20283a;
    --showcase-muted: #596273;
    --showcase-accent: #6263ed;
    --showcase-good: #0b6f52;
    --showcase-font-secondary: clamp(10.5px, calc(10px + .15vw), 12px);
    --showcase-font-value: clamp(12px, calc(11.2px + .2vw), 14px);
    --showcase-font-control: clamp(12px, calc(11px + .22vw), 14px);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 440px;
    padding: 19px 21px 17px;
    overflow: hidden;
    color: var(--showcase-ink);
    background: var(--showcase-bg);
    isolation: isolate;
    transform: none;
}

.landing-showcase button {
    color: inherit;
    font: inherit;
}

.landing-showcase-head {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-showcase-demo {
    min-height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--showcase-muted);
    background: var(--showcase-soft);
    border: 1px solid var(--showcase-line);
    border-radius: 999px;
    font-size: var(--showcase-font-secondary);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .025em;
    white-space: nowrap;
}

.landing-showcase-demo i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: #25b889;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 184, 137, .12);
}

.landing-showcase-stage {
    position: relative;
    min-width: 0;
    max-width: 100%;
    min-height: 326px;
    margin-top: 12px;
}

.landing-showcase-slide {
    min-width: 0;
    max-width: 100%;
    min-height: 326px;
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(7px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

.landing-showcase-slide.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.landing-showcase-title {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.landing-showcase-title > div {
    min-width: 0;
}

.landing-showcase-title small,
.landing-showcase-title strong,
.landing-showcase-kpis small,
.landing-showcase-kpis strong,
.landing-showcase-kpis em,
.landing-showcase-order-summary small,
.landing-showcase-order-summary strong,
.landing-showcase-order-list strong,
.landing-showcase-order-list small {
    display: block;
}

.landing-showcase-title small {
    margin-bottom: 6px;
    color: var(--showcase-muted);
    font-size: var(--showcase-font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.landing-showcase-title strong {
    overflow: hidden;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.15;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-showcase-change {
    min-height: 27px;
    padding: 0 9px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: var(--showcase-accent);
    background: rgba(98, 99, 237, .09);
    border-radius: 8px;
    font-size: var(--showcase-font-secondary);
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.landing-showcase .is-good {
    color: var(--showcase-good);
}

.landing-showcase-change.is-good {
    background: rgba(11, 111, 82, .1);
}

.landing-showcase-overview-body {
    margin-top: 15px;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(184px, .85fr);
    align-items: stretch;
    gap: 12px;
}

.landing-showcase-chart {
    min-width: 0;
    height: 222px;
    padding: 12px 10px 7px;
    background: linear-gradient(180deg, rgba(98, 99, 237, .045), rgba(98, 99, 237, 0));
    border: 1px solid var(--showcase-line);
    border-radius: 13px;
}

.landing-showcase-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.landing-showcase-chart .grid {
    fill: none;
    stroke: var(--showcase-line);
    stroke-width: 1;
}

.landing-showcase-chart .area {
    fill: url(#landingOverviewFill);
    stroke: none;
}

.landing-showcase-chart .line {
    fill: none;
    stroke: #6667f4;
    stroke-width: 3;
}

.landing-showcase-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.landing-showcase-kpis > div {
    min-width: 0;
    padding: 12px 10px;
    background: var(--showcase-soft);
    border: 1px solid var(--showcase-line);
    border-radius: 11px;
}

.landing-showcase-kpis small {
    overflow: hidden;
    color: var(--showcase-muted);
    font-size: var(--showcase-font-secondary);
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-showcase-kpis strong {
    margin-top: 7px;
    overflow: hidden;
    font-size: var(--showcase-font-value);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-showcase-kpis em {
    margin-top: 6px;
    color: var(--showcase-muted);
    font-size: var(--showcase-font-secondary);
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.landing-showcase-ad-kpis {
    margin-top: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-showcase-ad-kpis > div {
    padding: 10px 9px;
}

.landing-showcase-marketplaces {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.landing-showcase-marketplaces > div {
    min-width: 0;
    min-height: 53px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 28px minmax(68px, .55fr) minmax(82px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    background: var(--showcase-soft);
    border: 1px solid var(--showcase-line);
    border-radius: 11px;
}

.landing-showcase-market {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 8px;
    font-size: var(--showcase-font-secondary);
    font-weight: 950;
    line-height: 1;
}

.landing-showcase-marketplaces strong,
.landing-showcase-marketplaces b,
.landing-showcase-marketplaces small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-showcase-marketplaces strong,
.landing-showcase-marketplaces b {
    font-size: var(--showcase-font-value);
    line-height: 1.15;
}

.landing-showcase-marketplaces small {
    color: var(--showcase-muted);
    font-size: var(--showcase-font-secondary);
    font-weight: 750;
    line-height: 1.15;
}

.landing-showcase-bar {
    height: 6px;
    overflow: hidden;
    background: #e8eaf3;
    border-radius: 999px;
}

.landing-showcase-bar i {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #6667f4, #8c7af7);
    border-radius: inherit;
}

.landing-showcase-table-scroll {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 14px;
    overflow: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--showcase-line);
    border-radius: 12px;
    scrollbar-width: thin;
}

.landing-showcase-table-scroll:focus-visible {
    outline: 3px solid rgba(98, 99, 237, .22);
    outline-offset: 2px;
}

.landing-showcase-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: var(--showcase-ink);
    background: var(--showcase-bg);
    font-size: var(--showcase-font-value);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.landing-showcase-table th,
.landing-showcase-table td {
    height: 39px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--showcase-line);
    text-align: right;
    white-space: nowrap;
}

.landing-showcase-table thead th {
    color: var(--showcase-muted);
    background: var(--showcase-soft);
    font-size: var(--showcase-font-secondary);
    font-weight: 850;
}

.landing-showcase-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 150px;
    color: var(--showcase-ink);
    background: var(--showcase-bg);
    text-align: left;
}

.landing-showcase-table thead th:first-child {
    z-index: 2;
    color: var(--showcase-muted);
    background: var(--showcase-soft);
}

.landing-showcase-table tbody tr:last-child > * {
    border-bottom: 0;
}

.landing-showcase-table .is-up {
    color: var(--showcase-good);
    font-weight: 800;
}

.landing-showcase-order-summary {
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.landing-showcase-order-summary > span {
    min-width: 0;
    padding: 9px 11px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    background: var(--showcase-soft);
    border: 1px solid var(--showcase-line);
    border-radius: 10px;
}

.landing-showcase-order-summary small {
    overflow: hidden;
    color: var(--showcase-muted);
    font-size: var(--showcase-font-secondary);
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-showcase-order-summary strong {
    font-size: var(--showcase-font-value);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.landing-showcase-order-list {
    margin-top: 9px;
    display: grid;
    gap: 7px;
}

.landing-showcase-order-list > div {
    min-width: 0;
    min-height: 53px;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: 29px minmax(100px, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    background: var(--showcase-soft);
    border: 1px solid var(--showcase-line);
    border-radius: 10px;
}

.landing-showcase-order-list > div > span:nth-child(2) {
    min-width: 0;
}

.landing-showcase-order-list strong,
.landing-showcase-order-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-showcase-order-list strong {
    font-size: var(--showcase-font-value);
    line-height: 1.15;
}

.landing-showcase-order-list small {
    margin-top: 4px;
    color: var(--showcase-muted);
    font-size: var(--showcase-font-secondary);
    line-height: 1.15;
}

.landing-showcase-order-list b {
    padding: 5px 7px;
    border-radius: 999px;
    font-size: var(--showcase-font-secondary);
    line-height: 1;
    white-space: nowrap;
}

.landing-showcase-order-list em {
    font-size: var(--showcase-font-value);
    font-style: normal;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.landing-showcase-order-list .status-active {
    color: #3564b7;
    background: #eaf1ff;
}

.landing-showcase-order-list .status-delivered {
    color: #147b5d;
    background: #e7f8f1;
}

.landing-showcase-order-list .status-new {
    color: #7956bd;
    background: #f1ebff;
}

.landing-showcase-controls {
    min-width: 0;
    min-height: 31px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.landing-showcase-arrow,
.landing-showcase-pause,
.landing-showcase-pagination button {
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--showcase-muted);
    background: var(--showcase-soft);
    border: 1px solid var(--showcase-line);
    border-radius: 8px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.landing-showcase-arrow {
    width: 30px;
    flex: 0 0 30px;
    font-size: var(--showcase-font-control);
    line-height: 1;
}

.landing-showcase-pagination {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.landing-showcase-pagination button {
    min-width: max-content;
    padding: 0 9px;
    flex: 0 0 auto;
    font-size: var(--showcase-font-control);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.landing-showcase-pagination button[aria-current="true"] {
    color: #fff;
    background: var(--showcase-accent);
    border-color: var(--showcase-accent);
}

.landing-showcase-pause {
    min-width: max-content;
    padding: 0 9px;
    gap: 5px;
    flex: 0 0 auto;
    font-size: var(--showcase-font-control);
    font-weight: 800;
    line-height: 1;
}

.landing-showcase-pause [data-landing-showcase-pause-icon] {
    font-size: var(--showcase-font-secondary);
    letter-spacing: -2px;
}

.landing-showcase-arrow:hover,
.landing-showcase-pause:hover,
.landing-showcase-pagination button:hover {
    color: var(--showcase-accent);
    border-color: rgba(98, 99, 237, .35);
    transform: translateY(-1px);
}

.landing-showcase-arrow:focus-visible,
.landing-showcase-pause:focus-visible,
.landing-showcase-pagination button:focus-visible {
    outline: 3px solid rgba(98, 99, 237, .24);
    outline-offset: 2px;
}

html[data-theme="dark"] .landing-showcase.dashboard-preview {
    --showcase-bg: #182232;
    --showcase-soft: #111a27;
    --showcase-line: #2b3648;
    --showcase-ink: #edf1f8;
    --showcase-muted: #b8c3d5;
    --showcase-accent: #8384ff;
    --showcase-good: #66d9af;
    color: var(--showcase-ink);
    background: rgba(24, 34, 50, .97);
}

html[data-theme="dark"] .landing-showcase-demo {
    color: #b5bfce;
}

html[data-theme="dark"] .landing-showcase-bar {
    background: #2a3547;
}

html[data-theme="dark"] .landing-showcase-order-list .status-active {
    color: #8fb9ff;
    background: #1d344d;
}

html[data-theme="dark"] .landing-showcase-order-list .status-delivered {
    color: #64dfb6;
    background: #173c34;
}

html[data-theme="dark"] .landing-showcase-order-list .status-new {
    color: #c6a7ff;
    background: #342653;
}

@media (max-width: 760px) {
    .landing-page .landing-showcase.dashboard-preview {
        min-height: 474px;
        padding: 17px 18px 15px;
        border-radius: 20px;
    }

    .landing-showcase-stage,
    .landing-showcase-slide {
        min-height: 370px;
    }

    .landing-showcase-title strong {
        font-size: clamp(16px, calc(14px + .45vw), 17px);
    }

    .landing-showcase-overview-body {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .landing-showcase-chart {
        height: 150px;
    }

    .landing-showcase-kpis > div {
        padding: 9px;
    }

    .landing-showcase-ad-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-showcase-marketplaces > div {
        grid-template-columns: 28px minmax(78px, .7fr) minmax(70px, 1fr) auto;
    }

    .landing-showcase-marketplaces > div small {
        display: none;
    }
}

@media (max-width: 460px) {
    .landing-page .landing-showcase.dashboard-preview {
        min-height: 506px;
        padding: 14px;
        border-radius: 17px;
    }

    .landing-showcase-head {
        min-height: 22px;
    }

    .landing-showcase-stage,
    .landing-showcase-slide {
        min-height: 386px;
    }

    .landing-showcase-title {
        align-items: flex-start;
    }

    .landing-showcase-title strong {
        font-size: clamp(15px, calc(14.5px + .25vw), 16px);
    }

    .landing-showcase-change {
        min-height: 24px;
        padding: 0 7px;
        font-size: var(--showcase-font-secondary);
    }

    .landing-showcase-chart {
        height: 145px;
    }

    .landing-showcase-kpis strong {
        font-size: var(--showcase-font-value);
    }

    .landing-showcase-ad-kpis {
        margin-top: 11px;
        gap: 6px;
    }

    .landing-showcase-marketplaces {
        margin-top: 8px;
        gap: 6px;
    }

    .landing-showcase-marketplaces > div {
        min-height: 51px;
        grid-template-columns: 27px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .landing-showcase-marketplaces .landing-showcase-bar {
        height: 5px;
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .landing-showcase-marketplaces > div b {
        text-align: right;
    }

    .landing-showcase-table-scroll {
        margin-top: 12px;
    }

    .landing-showcase-order-summary {
        gap: 5px;
    }

    .landing-showcase-order-summary > span {
        padding: 8px;
        display: block;
    }

    .landing-showcase-order-summary strong {
        margin-top: 4px;
    }

    .landing-showcase-order-list > div {
        min-height: 61px;
        padding: 7px 8px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .landing-showcase-order-list > div > b {
        grid-column: 2;
        width: max-content;
        margin-top: -2px;
    }

    .landing-showcase-order-list > div > em {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .landing-showcase-controls {
        min-height: 61px;
        margin-top: 5px;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        grid-template-rows: 30px 30px;
        gap: 5px 7px;
    }

    .landing-showcase-pagination {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: flex-start;
    }

    .landing-showcase-arrow:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .landing-showcase-arrow[data-landing-showcase-next] {
        grid-column: 3;
        grid-row: 2;
    }

    .landing-showcase-pause {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-showcase-slide,
    .landing-showcase-arrow,
    .landing-showcase-pause,
    .landing-showcase-pagination button {
        transition: none;
    }

    .landing-showcase-arrow:hover,
    .landing-showcase-pause:hover,
    .landing-showcase-pagination button:hover {
        transform: none;
    }

    .landing-showcase-pause {
        display: none;
    }
}
