/* Vyas App Store showcase - tabs + detail panel (replaces the old carousel) */
.app-showcase {
    --as-ink: #26343a;
    --as-muted: #5f6f78;
    --as-line: #dfe6ec;
    --as-bg: #f5f5f5;
    background: var(--as-bg);
    padding: 0 0 48px;
}

/* ---------- Tabs ---------- */
.as-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 4px 4px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.as-tabs::-webkit-scrollbar { display: none; }

.as-tab {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 150px;
    min-height: 88px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(22, 46, 63, .08);
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.as-tab:hover { box-shadow: 0 6px 16px rgba(22, 46, 63, .12); transform: translateY(-2px); }
.as-tab:focus-visible { outline: 3px solid #2f6f9e; outline-offset: 2px; }
.as-tab.active { box-shadow: 0 8px 22px rgba(22, 46, 63, .16); }

.as-tab-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 6px;
}
.as-tab-logo img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .65;
    transition: filter .2s ease, opacity .2s ease;
}
.as-tab:hover .as-tab-logo img,
.as-tab.active .as-tab-logo img { filter: none; opacity: 1; }

/* ---------- Status pill ---------- */
.as-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: .3px;
    white-space: nowrap;
    color: #4d6570;
    background: #eef2f5;
    vertical-align: middle;
}
.as-status.running    { color: #1f7a45; background: #e5f5ec; }
.as-status.demo       { color: #1e5f8f; background: #e6f0f8; }
.as-status.inProgress { color: #8a5a00; background: #fbf0d9; }
.as-status-lg { font-size: 12px; padding: 2px 10px; margin-left: 8px; }

/* ---------- Panel ---------- */
.as-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 46, 63, .08);
    padding: 32px 36px;
    min-height: 380px;
}
.as-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    animation: as-fade .3s ease both;
}
@keyframes as-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.as-role {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--as-muted);
}
.as-name {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}
.as-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.as-tags li {
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 12.5px;
    line-height: 1.4;
    background: #fff;
}
.as-desc {
    margin: 0 0 22px;
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.65;
    color: var(--as-ink);
}
.as-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.as-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: filter .2s ease, transform .2s ease;
}
.as-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.as-cta:focus-visible { outline: 3px solid #2f6f9e; outline-offset: 3px; }
.as-store img { height: 44px; width: auto; }

/* ---------- Screenshots ---------- */
.as-shots {
    display: flex;
    gap: 14px;
}
.as-shot {
    flex: 0 0 auto;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--as-line);
    box-shadow: 0 6px 18px rgba(22, 46, 63, .12);
    transition: transform .2s ease;
}
.as-shot:hover { transform: translateY(-3px); }
.as-shot img {
    display: block;
    height: 300px;
    width: auto;
}

/* ---------- Controls ---------- */
.as-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.as-ctrl {
    width: 44px;
    height: 44px;
    border: 1px solid var(--as-line);
    border-radius: 50%;
    background: #fff;
    color: var(--as-ink);
    cursor: pointer;
    transition: background .2s ease;
}
.as-ctrl:hover { background: #eef2f5; }
.as-ctrl:focus-visible { outline: 3px solid #2f6f9e; outline-offset: 2px; }
.as-dots { display: flex; gap: 6px; padding: 0 6px; }
.as-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5d1da;
    transition: width .2s ease, background .2s ease;
}
.as-dots span.active { width: 22px; border-radius: 4px; background: var(--as-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .as-tabs { justify-content: flex-start; }
    .as-panel-inner { grid-template-columns: 1fr; }
    .as-shots { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .as-shot { scroll-snap-align: start; }
}
@media (max-width: 600px) {
    .app-showcase { padding-bottom: 32px; }
    .as-tab { min-width: 120px; min-height: 76px; padding: 10px 12px; }
    .as-tab-logo img { max-width: 96px; max-height: 34px; }
    .as-panel { padding: 22px 18px; border-radius: 12px; }
    .as-name { font-size: 23px; }
    .as-shot img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .as-panel-inner, .as-tab, .as-shot, .as-cta { animation: none; transition: none; }
}
