:root {
    --more-primary: #5b5ce2;
    --more-primary-dark: #39368f;
    --more-accent: #f5b43c;
    --more-ink: #172033;
    --more-muted: #747b8c;
    --more-border: #e7e8f2;
    --more-surface: #fff;
    --more-bg: #f6f7fc;
    --more-shadow: 0 16px 42px rgba(31, 41, 55, .075);
}

.more-apps-page {
    position: relative;
    min-height: 74vh;
    overflow: hidden;
    background: var(--more-bg);
}

.more-apps-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.more-apps-ambient-one {
    top: 90px;
    right: -170px;
    width: 430px;
    height: 430px;
    background: rgba(124, 58, 237, .07);
}

.more-apps-ambient-two {
    bottom: 4%;
    left: -180px;
    width: 380px;
    height: 380px;
    background: rgba(245, 180, 60, .07);
}

.more-apps-main {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.more-apps-search-shell {
    position: relative;
    z-index: 2;
}

.more-apps-hero {
    position: relative;
    z-index: 1;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: clamp(25px, 4vw, 45px);
    border-radius: 25px;
    background:
        radial-gradient(
            circle at 88% 14%,
            rgba(245, 180, 60, .24),
            transparent 21%
        ),
        linear-gradient(
            135deg,
            #232166,
            #4f46e5 60%,
            #7c3aed
        );
    color: #fff;
    box-shadow: 0 22px 58px rgba(42, 39, 126, .18);
}

.more-apps-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );
    background-size: 34px 34px;
}

.more-apps-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.more-apps-kicker > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--more-accent);
    box-shadow: 0 0 0 5px rgba(245, 180, 60, .14);
}

.more-apps-hero h1 {
    max-width: 720px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(35px, 5vw, 62px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.05em;
}

.more-apps-hero p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .77);
    font-size: 13px;
    line-height: 1.7;
}

.more-apps-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 9px;
}

.more-apps-hero-stats article {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: rgba(15, 17, 55, .24);
    backdrop-filter: blur(9px);
}

.more-apps-hero-stats span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .58);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.more-apps-hero-stats strong {
    color: #fff;
    font-size: 19px;
}

.more-apps-toolbar {
    position: relative;
    z-index: 3;
    margin: 15px 0;
    padding: 12px;
    border: 1px solid var(--more-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--more-shadow);
    backdrop-filter: blur(12px);
}

.more-apps-filter-form {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(135px, auto)
        minmax(105px, auto)
        auto
        auto;
    gap: 9px;
    align-items: end;
}

.more-apps-filter-search {
    position: relative;
}

.more-apps-filter-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 16px;
    height: 16px;
    fill: #9196a5;
    transform: translateY(-50%);
    pointer-events: none;
}

.more-apps-filter-search input,
.more-apps-filter-form select {
    width: 100%;
    min-height: 43px;
    border: 1px solid #e1e3ec;
    border-radius: 11px;
    background: #fafafe;
    color: #3f4655;
    font-size: 11px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.more-apps-filter-search input {
    padding: 9px 36px 9px 39px;
}

.more-apps-filter-search input:focus,
.more-apps-filter-form select:focus {
    border-color: #bfc0ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 92, 226, .08);
}

.more-apps-filter-search > a {
    position: absolute;
    top: 50%;
    right: 11px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ececff;
    color: #5753c9;
    font-size: 15px;
    text-decoration: none;
    transform: translateY(-50%);
}

.more-apps-filter-form label > span {
    display: block;
    margin: 0 0 5px 2px;
    color: #8c92a2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.more-apps-filter-form select {
    padding: 8px 30px 8px 11px;
}

.more-apps-view-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e1e3ec;
    border-radius: 11px;
    background: #fafafe;
}

.more-apps-view-toggle button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8c92a2;
}

.more-apps-view-toggle button.is-active {
    background: #ececff;
    color: #5753c9;
}

.more-apps-view-toggle svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.more-apps-submit {
    min-height: 43px;
    padding: 9px 14px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        var(--more-primary),
        #7c3aed
    );
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    box-shadow: 0 9px 20px rgba(91, 92, 226, .18);
}

.more-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.more-app-card {
    min-width: 0;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .55s ease,
        transform .55s cubic-bezier(.22, 1, .36, 1);
}

.more-app-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.more-app-card-link {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--more-border);
    border-radius: 18px;
    background: var(--more-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .055);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.more-app-card-link:hover {
    border-color: #d1d2ff;
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 19px 42px rgba(49, 46, 134, .12);
}

.more-app-image-shell {
    position: relative;
    overflow: hidden;
    margin: 13px 13px 0;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #f0f1f8,
            #fafafe
        );
}

.more-app-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .42s ease;
}

.more-app-card-link:hover .more-app-image {
    transform: scale(1.045);
}

.more-app-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    background: rgba(34, 31, 99, .82);
    color: #fff;
    font-size: 8px;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.more-app-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px;
}

.more-app-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.more-app-heading h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--more-ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.more-app-heading > span {
    flex: 0 0 auto;
    color: #9297a5;
    font-size: 12px;
    transition:
        color .2s ease,
        transform .2s ease;
}

.more-app-card-link:hover .more-app-heading > span {
    color: var(--more-primary);
    transform: translate(2px, -2px);
}

.more-app-developer {
    overflow: hidden;
    margin: 5px 0 9px;
    color: #8a90a0;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-app-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-height: 18px;
}

.more-app-rating > span {
    display: inline-flex;
    color: #f59e0b;
}

.more-app-rating svg,
.more-app-rating i {
    width: 12px;
    height: 12px;
    color: #f59e0b;
    font-size: 11px;
}

.more-app-rating strong {
    color: #4a5060;
    font-size: 9px;
}

.more-app-rating small {
    color: #a0a5b2;
    font-size: 8px;
}

.more-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.more-app-meta span {
    padding: 4px 6px;
    border-radius: 999px;
    background: #f2f2fa;
    color: #686f80;
    font-size: 7px;
    font-weight: 750;
}

.more-app-content time {
    display: block;
    margin-top: auto;
    padding-top: 10px;
    color: #a0a5b2;
    font-size: 8px;
}

.more-apps-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

.more-apps-grid[data-view="list"] .more-app-card-link {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
}

.more-apps-grid[data-view="list"] .more-app-image-shell {
    width: 88px;
    height: 88px;
    margin: 10px;
}

.more-apps-grid[data-view="list"] .more-app-content {
    padding-left: 4px;
}

.more-apps-load-area {
    display: flex;
    justify-content: center;
    margin-top: 19px;
}

.more-apps-load-button {
    min-width: 210px;
    min-height: 45px;
    padding: 10px 17px;
    border: 1px solid #d9daef;
    border-radius: 12px;
    background: #fff;
    color: #5753c9;
    font-size: 10px;
    font-weight: 850;
    box-shadow: 0 10px 25px rgba(31, 41, 55, .06);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.more-apps-load-button:hover {
    border-color: #bfc0ff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(49, 46, 134, .1);
}

.more-load-loading {
    display: none;
}

.more-apps-load-button.is-loading .more-load-default {
    display: none;
}

.more-apps-load-button.is-loading .more-load-loading {
    display: inline;
}

.more-apps-complete {
    margin: 0;
    color: #959aa8;
    font-size: 9px;
}

.more-apps-pagination {
    margin-top: 17px;
}

.more-apps-pagination .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.more-apps-pagination .page-link {
    min-width: 36px;
    border: 1px solid #e0e2ed;
    border-radius: 9px !important;
    color: #5753c9;
    font-size: 10px;
    text-align: center;
    box-shadow: none;
}

.more-apps-pagination .page-item.active .page-link {
    border-color: var(--more-primary);
    background: var(--more-primary);
    color: #fff;
}

.more-apps-empty {
    padding: clamp(35px, 7vw, 75px) 20px;
    border: 1px solid var(--more-border);
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: var(--more-shadow);
}

.more-apps-empty > div {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    border-radius: 18px;
    background: #efefff;
    color: #5753c9;
}

.more-apps-empty svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.more-apps-empty h2 {
    margin: 0 0 6px;
    color: var(--more-ink);
    font-size: 20px;
    font-weight: 850;
}

.more-apps-empty p {
    margin: 0 0 15px;
    color: var(--more-muted);
    font-size: 11px;
}

.more-apps-empty a {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 10px;
    background: #efefff;
    color: #5753c9;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.more-apps-sidebar {
    position: sticky;
    top: 86px;
}

.more-apps-sidebar > * {
    border-radius: 18px !important;
    box-shadow: 0 13px 34px rgba(31, 41, 55, .065) !important;
}

[data-more-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.22, 1, .36, 1);
}

[data-more-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .more-apps-sidebar-column {
        padding-top: 0;
    }
}

@media (max-width: 991.98px) {
    .more-apps-hero {
        grid-template-columns: 1fr;
    }

    .more-apps-hero-stats {
        max-width: 360px;
    }

    .more-apps-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .more-apps-filter-search {
        grid-column: 1 / -1;
    }

    .more-apps-view-toggle {
        width: max-content;
    }

    .more-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .more-apps-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .more-apps-hero {
        padding: 25px 19px;
        border-radius: 20px;
    }

    .more-apps-hero h1 {
        font-size: clamp(34px, 11vw, 47px);
    }

    .more-apps-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .more-apps-toolbar {
        padding: 10px;
        border-radius: 15px;
    }

    .more-apps-filter-form {
        grid-template-columns: 1fr;
    }

    .more-apps-filter-search {
        grid-column: auto;
    }

    .more-apps-submit {
        width: 100%;
    }

    .more-apps-view-toggle {
        display: none;
    }

    .more-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .more-app-image-shell {
        margin: 9px 9px 0;
        border-radius: 13px;
    }

    .more-app-content {
        padding: 10px;
    }

    .more-app-heading h2 {
        font-size: 11px;
    }

    .more-app-rating small {
        display: none;
    }

    .more-app-meta span:nth-child(n+3) {
        display: none;
    }

    .more-apps-grid[data-view="list"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 359.98px) {
    .more-apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-more-reveal],
    .more-app-card,
    .more-app-card-link,
    .more-app-image,
    .more-apps-load-button {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* =========================================================
   CONTEXTUAL COLLECTION THEMES
   ========================================================= */

.more-apps-page {
    --more-primary: #5b5ce2;
    --more-primary-dark: #39368f;
    --more-hero-start: #232166;
    --more-hero-end: #7c3aed;
    --more-accent: #f5b43c;
    --more-soft: #efefff;
}

.more-apps-page--featured {
    --more-primary: #7c3aed;
    --more-primary-dark: #5b21b6;
    --more-hero-start: #3b176d;
    --more-hero-end: #a855f7;
    --more-accent: #f5b43c;
    --more-soft: #f3efff;
}

.more-apps-page--must-have {
    --more-primary: #0f9f78;
    --more-primary-dark: #08745a;
    --more-hero-start: #075c4a;
    --more-hero-end: #21b98a;
    --more-accent: #a7f3d0;
    --more-soft: #ebfaf5;
}

.more-apps-page--popular {
    --more-primary: #ef6c39;
    --more-primary-dark: #c8461b;
    --more-hero-start: #8f2e18;
    --more-hero-end: #f59e0b;
    --more-accent: #fde68a;
    --more-soft: #fff2ec;
}

.more-apps-page--updated {
    --more-primary: #2563eb;
    --more-primary-dark: #1d4ed8;
    --more-hero-start: #1e3a8a;
    --more-hero-end: #38bdf8;
    --more-accent: #bfdbfe;
    --more-soft: #eff6ff;
}

.more-apps-page--editor {
    --more-primary: #db2777;
    --more-primary-dark: #9d174d;
    --more-hero-start: #6b1645;
    --more-hero-end: #f472b6;
    --more-accent: #fbcfe8;
    --more-soft: #fdf2f8;
}

.more-apps-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(
            circle at 88% 14%,
            color-mix(
                in srgb,
                var(--more-accent) 28%,
                transparent
            ),
            transparent 21%
        ),
        linear-gradient(
            135deg,
            var(--more-hero-start),
            var(--more-primary) 60%,
            var(--more-hero-end)
        );
}

.more-apps-hero-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 23px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 31px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(11, 11, 45, .16);
    backdrop-filter: blur(9px);
}

.more-app-card-link {
    border-top: 3px solid
        color-mix(
            in srgb,
            var(--more-primary) 65%,
            #ffffff
        );
}

.more-app-badge,
.more-app-rank {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 999px;
    background:
        color-mix(
            in srgb,
            var(--more-primary) 88%,
            transparent
        );
    color: #fff;
    font-size: 8px;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.more-app-rank {
    min-width: 31px;
    text-align: center;
}

.more-app-context-metric {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 9px;
    border-radius: 11px;
    background: var(--more-soft);
}

.more-app-context-metric span {
    color: #8a90a0;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.more-app-context-metric strong {
    color: var(--more-primary);
    font-size: 10px;
    font-weight: 900;
    text-align: right;
}

.more-apps-page .more-apps-kicker > span,
.more-apps-page .more-apps-submit,
.more-apps-page .more-apps-pagination .page-item.active .page-link {
    background-color: var(--more-primary);
}

.more-apps-page .more-apps-load-button,
.more-apps-page .more-app-heading > span {
    color: var(--more-primary);
}

@media (max-width: 991.98px) {
    .more-apps-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .more-apps-hero-stats {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .more-apps-hero {
        grid-template-columns: 1fr;
    }

    .more-apps-hero-icon {
        width: 57px;
        height: 57px;
        border-radius: 18px;
        font-size: 24px;
    }
}
