@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
    --ink: #1d1830;
    --muted: #79748a;
    --violet: #6e40ef;
    --lavender: #f1edff;
    --line: #eae7f1;
    --cream: #fffcf9
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "DM Sans", sans-serif
}

.site-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 80px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 252, 249, .89);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px)
}

.brand {
    color: var(--ink);
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.8px;
    white-space: nowrap
}

.brand em {
    font-family: "Playfair Display", serif;
    font-weight: 600
}

.brand-mark {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    margin-right: 7px;
    background: var(--violet);
    color: #fff;
    font-size: 15px
}

.brand-logo {
    width: 42px;
    height: 42px;
    margin-right: 9px;
    object-fit: contain;
    vertical-align: middle
}

.main-nav {
    display: flex;
    gap: 30px;
    margin-left: 60px
}

.main-nav a {
    color: #5f596d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600
}

.main-nav a:hover {
    color: var(--violet)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 13px
}

.icon-button,
.sign-in,
.filter-button,
.text-button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer
}

.icon-button {
    font-size: 25px
}

.credits {
    font-size: 13px;
    color: #5e586d;
    background: #f1eef9;
    padding: 9px 12px;
    border-radius: 99px
}

.credits b {
    color: var(--violet)
}

.sign-in {
    font-weight: 600;
    font-size: 14px
}

.button {
    border: 0;
    border-radius: 99px;
    padding: 13px 19px;
    font: 600 14px "DM Sans";
    cursor: pointer;
    transition: .2s ease;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center
}

.button.primary {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 7px 18px #6e40ef36
}

.button.primary:hover,
.choose-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px #6e40ef45
}

.hero {
    padding: 88px 20px 76px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, #eee7ff 0, transparent 31%), linear-gradient(180deg, #fffdfb 0, #fbf9ff 100%)
}

.eyebrow {
    color: var(--violet);
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 700
}

.hero h1,
h2 {
    letter-spacing: -2.6px;
    line-height: 1.04;
    margin: 14px 0;
    font-size: clamp(45px, 6vw, 76px)
}

h1 i,
h2 i {
    font-family: "Playfair Display", serif;
    font-weight: 600
}

.hero p {
    margin: 0 auto 28px;
    max-width: 510px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 16px
}

.search-box {
    width: min(640px, 100%);
    height: 58px;
    background: #fff;
    border: 1px solid #e8e3f0;
    border-radius: 17px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: auto;
    box-shadow: 0 8px 28px #3728750d
}

.search-box span {
    font-size: 25px
}

.search-box input {
    border: 0;
    outline: 0;
    flex: 1;
    font: 14px "DM Sans";
    color: var(--ink)
}

.chips {
    max-width: 850px;
    margin: 19px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow: auto;
    padding: 2px
}

.chip {
    border: 1px solid #e7e2f0;
    color: #696276;
    background: #fff;
    border-radius: 99px;
    padding: 8px 13px;
    font: 500 12px "DM Sans";
    white-space: nowrap;
    cursor: pointer
}

.chip.active {
    border-color: #c8b9ff;
    background: #eee9ff;
    color: #5c35ca
}

.section {
    max-width: 1280px;
    padding: 80px clamp(20px, 5vw, 60px);
    margin: auto
}

.section-heading,
.feed-tools {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px
}

.section h2 {
    font-size: 40px;
    margin: 10px 0 0
}

.filter-button {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600
}

.feed-tools {
    align-items: center;
    margin: 32px 0 20px
}

.tabs {
    display: flex;
    gap: 20px
}

.tabs button {
    border: 0;
    background: none;
    padding: 5px 0;
    color: #817b8e;
    font: 600 14px "DM Sans";
    cursor: pointer
}

.tabs button.active {
    color: var(--violet);
    border-bottom: 2px solid var(--violet)
}

#styleCount,
.card-meta {
    color: var(--muted);
    font-size: 12px
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.style-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: .23s ease
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 17px 35px #24174115
}

.card-image {
    border: 0;
    background: #ece7f4;
    display: block;
    padding: 0;
    width: 100%;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    position: relative
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s ease
}

.style-card:hover img {
    transform: scale(1.06)
}

.card-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #ffffffdf;
    border-radius: 99px;
    padding: 6px 9px;
    color: #3e354c;
    font: 600 10px "DM Sans"
}

.heart {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 50%;
    background: #fffffff0;
    font-size: 20px;
    cursor: pointer
}

.heart.liked {
    color: #e44978
}

.card-details {
    padding: 15px
}

.card-details h3 {
    font-size: 15px;
    margin: 0 0 6px;
    letter-spacing: -.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.card-meta {
    margin: 0
}

.choose-button {
    width: 100%;
    background: #f1edff;
    color: #5f35d6;
    padding: 10px;
    margin-top: 14px
}

.load-status {
    text-align: center;
    color: var(--muted);
    padding: 25px
}

.how-it-works {
    margin: 20px auto;
    max-width: 1160px;
    background: #211b39;
    color: white;
    border-radius: 28px;
    padding: clamp(32px, 6vw, 75px);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    position: relative;
    overflow: hidden
}

.how-it-works:after {
    content: "✦";
    position: absolute;
    font-size: 400px;
    line-height: 1;
    color: #7e58ff18;
    right: -65px;
    bottom: -150px
}

.how-it-works>* {
    z-index: 1
}

.how-it-works .eyebrow {
    color: #bcaaff
}

.how-it-works h2 {
    font-size: 46px
}

.how-it-works p {
    max-width: 400px;
    line-height: 1.65;
    color: #c6c0d2
}

.steps {
    display: grid;
    gap: 0;
    align-content: center
}

.steps article {
    display: flex;
    gap: 19px;
    padding: 21px 0;
    border-bottom: 1px solid #ffffff1c
}

.steps b {
    color: #a990ff;
    font-size: 13px
}

.steps h3 {
    margin: 0 0 7px;
    font-size: 16px
}

.steps p {
    font-size: 13px;
    margin: 0
}

.fire {
    color: #ff7d53;
    font-size: 28px
}

.trend-row {
    display: flex;
    gap: 17px;
    overflow: auto;
    padding: 4px 0 12px
}

.trend-row .style-card {
    min-width: 225px
}

.trend-row .card-image {
    height: 200px
}

.creations {
    padding-top: 40px
}

.text-button {
    color: var(--violet);
    font-size: 14px;
    font-weight: 700
}

.empty-creations {
    text-align: center;
    border: 1px dashed #d9d2e7;
    border-radius: 18px;
    padding: 50px 20px;
    color: var(--muted)
}

.empty-creations span {
    font-size: 30px;
    color: var(--violet)
}

.empty-creations h3 {
    margin: 9px 0 4px;
    color: var(--ink);
    font-size: 16px
}

.empty-creations p {
    margin: 0;
    font-size: 13px
}

footer {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 27px clamp(20px, 5vw, 80px);
    color: var(--muted);
    font-size: 12px
}

.create-dialog {
    border: 0;
    border-radius: 24px;
    padding: 0;
    width: min(930px, calc(100% - 28px));
    max-height: calc(100vh - 30px);
    box-shadow: 0 30px 90px #150d2e50;
    background: #fff
}

.create-dialog::backdrop {
    background: #1c143c88;
    backdrop-filter: blur(5px)
}

.dialog-close {
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 14px;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 8px #0002
}

.creation-flow {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 570px
}

.flow-preview {
    background: #282044;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column
}

.flow-preview img {
    width: 100%;
    height: 270px;
    border-radius: 16px;
    object-fit: cover;
    margin: 20px 0
}

.flow-preview p {
    color: #cfc7e2;
    font-size: 13px;
    line-height: 1.5
}

.flow-form {
    padding: 42px;
    overflow: auto
}

.flow-form h2 {
    font-size: 32px;
    margin: 8px 0
}

.flow-form>p {
    color: var(--muted);
    font-size: 14px
}

.flow-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 20px 0 8px
}

.upload-zone {
    border: 1.5px dashed #cfc3f7;
    background: #faf8ff;
    border-radius: 16px;
    text-align: center;
    padding: 32px 16px;
    cursor: pointer
}

.upload-zone input {
    display: none
}

.upload-zone strong {
    display: block;
    font-size: 14px;
    margin-top: 8px
}

.upload-zone small {
    color: var(--muted);
    font-size: 12px
}

.upload-preview {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 12px
}

.option-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.option-row button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    padding: 9px 12px;
    font: 12px "DM Sans";
    cursor: pointer
}

.option-row button.selected {
    background: #eee9ff;
    border-color: #bdaaff;
    color: #5c35ca
}

.generate {
    width: 100%;
    margin-top: 26px;
    padding: 15px
}

.cost {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px
}

.result-wrap {
    text-align: center;
    padding: 46px
}

.result-wrap h2 {
    font-size: 38px
}

.result-image {
    width: min(410px, 100%);
    max-height: 450px;
    object-fit: contain;
    border-radius: 18px;
    margin: 20px auto;
    display: block;
    background: #f3f0f8
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px
}

.secondary {
    background: #f0ecfa;
    color: #5d35cf
}

.loading {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 20px
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #e8e1ff;
    border-top-color: var(--violet);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:900px) {

    .main-nav,
    .sign-in,
    .credits {
        display: none
    }

    .style-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .card-image {
        height: 240px
    }

    .how-it-works {
        margin: 15px 20px
    }

    .header-create {
        padding: 10px 13px
    }

    .site-header {
        height: 66px
    }
}

@media(max-width:620px) {
    .hero {
        padding: 65px 17px 52px
    }

    .hero h1 {
        font-size: 46px
    }

    .section {
        padding: 57px 20px
    }

    .section h2 {
        font-size: 34px
    }

    .style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 11px
    }

    .card-image {
        height: 210px
    }

    .card-details {
        padding: 11px
    }

    .card-details h3 {
        font-size: 13px
    }

    .choose-button {
        margin-top: 10px
    }

    .how-it-works {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 25px
    }

    .how-it-works h2 {
        font-size: 37px
    }

    .trend-row {
        margin-right: -20px
    }

    .creation-flow {
        grid-template-columns: 1fr
    }

    .flow-preview {
        padding: 24px
    }

    .flow-preview img {
        height: 170px;
        margin: 12px 0
    }

    .flow-form {
        padding: 28px 22px
    }

    .site-header {
        padding: 0 16px
    }

    .header-create span {
        display: none
    }

    .brand {
        font-size: 19px
    }

    footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px
    }

    .create-dialog {
        max-height: calc(100vh - 14px)
    }

    .card-badge {
        font-size: 9px
    }
}

.header-search {
    height: 38px;
    width: 185px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid #e7e2f0;
    border-radius: 10px;
    background: #fff;
    color: #6c6578
}

.header-search span {
    font-size: 20px
}

.header-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: 13px "DM Sans"
}

.hero {
    padding-bottom: 34px
}

.hero p {
    margin-bottom: 0
}

#explore {
    padding-top: 38px
}

.style-grid {
    grid-template-columns: repeat(3, 1fr)
}

.card-image {
    height: 360px
}

@media(max-width:900px) {
    .style-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .card-image {
        height: 300px
    }
}

@media(max-width:620px) {
    .header-search {
        width: 125px
    }

    .header-search input {
        font-size: 12px
    }

    .style-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .card-image {
        height: 230px
    }
}

.categories-section {
    padding-top: 34px;
    padding-bottom: 22px
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 28px;
    max-height: 365px;
    overflow: auto;
    padding-right: 4px
}

.category-tile {
    min-height: 116px;
    padding: 16px;
    border: 1px solid #e6e1f0;
    border-radius: 17px;
    background: linear-gradient(140deg, #fff 20%, #f3efff);
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .22s ease;
    font-family: "DM Sans";
    color: var(--ink)
}

.category-tile:before {
    content: "";
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    right: -22px;
    top: -25px;
    background: #7650f01a
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: #c4b2fa;
    box-shadow: 0 12px 24px #4d2aa516
}

.category-tile strong,
.category-tile small {
    display: block;
    position: relative
}

.category-tile strong {
    font-size: 14px;
    line-height: 1.2;
    margin: 12px 20px 4px 0
}

.category-tile small {
    color: var(--muted);
    font-size: 11px
}

.category-number {
    color: var(--violet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px
}

.category-tile i {
    position: absolute;
    right: 15px;
    bottom: 14px;
    color: var(--violet);
    font-style: normal;
    font-size: 18px
}

.category-loading {
    color: var(--muted);
    font-size: 14px;
    padding: 20px 0
}

.feed-tools {
    display: none
}

@media(max-width:900px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:620px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 400px
    }

    .category-tile {
        min-height: 108px
    }

    .categories-section {
        padding-bottom: 8px
    }
}

#explore .feed-tools {
    display: flex;
    align-items: center;
    margin: 26px 0 20px
}

.all-categories {
    border: 1px solid #d9d0f2;
    background: #f7f4ff;
    color: #5e37cd;
    border-radius: 99px;
    padding: 9px 13px;
    font: 600 12px "DM Sans";
    cursor: pointer
}

.all-categories span {
    margin-left: 5px;
    font-size: 15px
}

@media(max-width:620px) {
    #explore .feed-tools {
        margin: 20px 0 16px
    }

    .tabs {
        gap: 14px
    }

    .all-categories {
        padding: 8px 10px;
        font-size: 11px
    }
}

#explore .feed-tools {
    margin-bottom: 13px
}

.home-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 0 0 25px
}

.all-categories-title {
    margin: 42px 0 22px;
    text-align: center;
    color: #12213b;
    font-size: clamp(28px, 3vw, 38px)
}

.explore-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.see-categories {
    border: 1px solid #007aff;
    border-radius: 99px;
    padding: 10px 14px;
    background: #007aff;
    color: #fff;
    font: 700 12px "DM Sans";
    cursor: pointer
}

.see-categories:hover {
    background: #0066d6;
    border-color: #0066d6
}

.see-categories span {
    margin-left: 5px;
    font-size: 14px
}

@media(max-width:620px) {
    .explore-actions {
        gap: 8px
    }

    .see-categories {
        padding: 8px 10px;
        font-size: 11px
    }
}

button,
.button {
    box-shadow: none !important
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px
}

.store-button {
    min-width: 152px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid #202020;
    border-radius: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    text-align: left
}

.store-button:hover {
    background: #242424
}

.store-button small,
.store-button strong {
    display: block;
    line-height: 1.05
}

.store-button small {
    font-size: 9px;
    letter-spacing: .15px
}

.store-button strong {
    margin-top: 3px;
    font-size: 17px;
    font-weight: 500
}

.apple-icon {
    font-family: Arial, sans-serif;
    font-size: 31px;
    line-height: 1
}

.play-icon {
    width: 25px;
    height: 28px
}

@media(max-width:620px) {
    .store-buttons {
        gap: 8px;
        margin-top: 22px
    }

    .store-button {
        min-width: 137px;
        height: 47px;
        padding: 6px 9px
    }

    .store-button strong {
        font-size: 15px
    }
}

.home-categories .category-tile {
    min-height: 106px;
    text-decoration: none
}

.category-tile {
    min-height: 128px;
    padding: 18px;
    border: 1px solid #d9ebff;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f4f9ff 56%, #e5f2ff 100%);
    box-shadow: 0 8px 18px rgba(0, 90, 180, .08), inset 0 1px 0 #fff;
    isolation: isolate
}

.category-tile:before {
    width: 100px;
    height: 100px;
    right: -31px;
    top: -35px;
    background: radial-gradient(circle, #007aff33 0 34%, #007aff12 35% 58%, transparent 59%)
}

.category-tile:after {
    content: "";
    position: absolute;
    width: 74px;
    height: 74px;
    left: -35px;
    bottom: -43px;
    border-radius: 50%;
    background: #007aff0c;
    z-index: -1
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.012);
    border-color: #8fc5ff;
    box-shadow: 0 16px 30px rgba(0, 100, 210, .17), inset 0 1px 0 #fff
}

.category-tile strong {
    color: #12213b;
    font-size: 15px;
    letter-spacing: -.25px;
    margin-top: 14px
}

.category-tile small {
    color: #6681a1;
    font-weight: 600
}

.category-number {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 99px;
    background: #007aff14;
    color: #007aff;
    font-size: 9px
}

.category-tile i {
    right: 14px;
    bottom: 14px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #007aff;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 5px 12px #007aff38
}

.category-tile:nth-child(3n + 2) {
    background: linear-gradient(135deg, #fff 0%, #f4f8ff 52%, #eaf0ff 100%)
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #fff 0%, #f3fbff 52%, #def5ff 100%)
}

/* Clean category-card treatment. */
.category-tile,
.category-tile:nth-child(3n + 2),
.category-tile:nth-child(3n) {
    min-height: 112px;
    padding: 16px;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: none
}

.category-tile:before,
.category-tile:after {
    display: none
}

.category-tile:hover {
    transform: translateY(-2px);
    border-color: #9dccff;
    background: #f8fbff;
    box-shadow: 0 7px 18px rgba(28, 79, 130, .08)
}

.category-number {
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #007aff;
    font-size: 10px
}

.category-tile strong {
    color: #1c2430;
    font-size: 14px;
    margin: 10px 30px 4px 0
}

.category-tile small {
    color: #7a8493;
    font-size: 11px;
    font-weight: 500
}

.category-tile i {
    right: 15px;
    bottom: 14px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    background: transparent;
    color: #007aff;
    box-shadow: none;
    font-size: 19px
}

.all-categories-title {
    margin: 36px 0 32px;
    color: #1c2430;
    font-size: 28px;
    letter-spacing: -.9px
}

.home-categories .category-tile strong {
    font-size: 13px
}

.category-style-grid {
    padding: 0;
    max-width: none
}

@media(max-width:900px) {
    .home-categories {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:620px) {
    .home-categories {
        grid-template-columns: repeat(2, 1fr)
    }

    .home-categories .category-tile {
        min-height: 98px
    }
}

.style-card {
    background: #161123;
    border: 0
}

.card-image {
    height: auto !important;
    aspect-ratio: auto
}

.card-image img {
    display: block;
    height: auto !important;
    min-height: 0;
    object-fit: contain;
    background: #171322
}

.card-details {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 43px 15px 14px;
    background: linear-gradient(to bottom, transparent, rgba(14, 10, 26, .92) 52%);
    color: #fff
}

.card-details h3 {
    color: #fff;
    margin-bottom: 4px
}

.card-meta {
    color: #ece7f7
}

.choose-button {
    display: inline-flex;
    width: auto;
    margin-top: 10px;
    padding: 8px 13px;
    background: #ffffffdf;
    color: #3e277f;
    font-size: 12px
}

.style-card:hover .choose-button {
    background: #fff
}

.trend-row .card-image {
    height: auto !important
}

.trend-row .card-details {
    padding-top: 36px
}

.card-badge {
    top: 12px;
    bottom: auto
}

:root {
    --violet: #007aff;
    --lavender: #eaf3ff
}

.hero {
    background: radial-gradient(circle at 50% 20%, #e4f1ff 0, transparent 31%), linear-gradient(180deg, #fffdfb 0, #f7fbff 100%)
}

.button.primary {
    background: #007aff;
    box-shadow: 0 7px 18px #007aff36
}

.button.primary:hover,
.choose-button:hover {
    box-shadow: 0 10px 22px #007aff45
}

.header-search:focus-within {
    border-color: #007aff;
    box-shadow: 0 0 0 3px #007aff18
}

.card-details {
    display: flex;
    align-items: center;
    gap: 12px
}

.card-details h3 {
    margin: 0;
    flex: 1;
    min-width: 0
}

.card-meta {
    display: none
}

.choose-button {
    margin: 0 0 0 auto;
    background: #ffffffeb;
    color: #0066d6
}

.card-badge {
    background: #ffffffeb;
    color: #0066d6
}

.option-row button.selected {
    background: #eaf3ff;
    border-color: #8bc4ff;
    color: #0066d6
}

.credits b,
.text-button {
    color: #007aff
}

:root .choose-button {
    background: #007aff;
    color: #fff;
    box-shadow: 0 5px 13px #007aff42
}

.style-card:hover .choose-button {
    background: #0066d6;
    color: #fff
}

.shimmer-card,
.category-shimmer {
    overflow: hidden;
    position: relative;
    background: #f0f3f7;
    border-radius: 18px
}

.shimmer-card {
    min-height: 365px;
    border: 1px solid #e4e8ee
}

.shimmer-card:after,
.category-shimmer:after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, #fff9, transparent);
    animation: shimmer 1.35s infinite
}

.shimmer-image {
    height: 285px;
    background: #e7ebf0
}

.shimmer-line {
    height: 13px;
    margin: 17px 15px 0;
    border-radius: 99px;
    background: #e0e5eb
}

.shimmer-line.short {
    width: 40%;
    margin-top: 10px
}

.trend-row .shimmer-card {
    min-width: 225px;
    min-height: 255px
}

.trend-row .shimmer-image {
    height: 190px
}

.category-shimmer {
    height: 106px;
    border: 1px solid #e4e8ee;
    padding: 16px
}

.category-shimmer i,
.category-shimmer b,
.category-shimmer small {
    display: block;
    height: 10px;
    border-radius: 99px;
    background: #e0e5eb
}

.category-shimmer i {
    width: 24px
}

.category-shimmer b {
    width: 70%;
    margin-top: 17px
}

.category-shimmer small {
    width: 42%;
    margin-top: 9px
}

@keyframes shimmer {
    100% {
        transform: translateX(100%)
    }
}

.upload-picker {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.upload-picker .upload-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eaf3ff;
    color: #007aff;
    font-size: 27px;
    font-weight: 700
}

.upload-picker strong {
    margin: 2px 0 0
}

.upload-picker u {
    color: #007aff;
    font-weight: 700;
    text-underline-offset: 3px
}

.selected-upload {
    position: relative
}

.selected-upload .upload-preview {
    height: 255px;
    margin: 0;
    border: 1px solid #d7e8ff
}

.remove-upload {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #101522d9;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px #0004
}

.remove-upload:hover {
    background: #007aff
}

.upload-picker[hidden] {
    display: none !important
}

.result-image-shell {
    width: min(410px, 100%);
    height: 450px;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 18px;
    background: #edf1f6
}

.result-image-shell .result-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    opacity: 0;
    transition: opacity .22s ease
}

.result-image-shell.loaded .result-image {
    opacity: 1
}

.result-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #e5eaf0 20%, #f8faff 45%, #e5eaf0 70%);
    background-size: 200% 100%;
    animation: result-shimmer 1.2s linear infinite
}

.result-image-shell.loaded .result-shimmer {
    display: none
}

@keyframes result-shimmer {
    to {
        background-position: -200% 0
    }
}

@media(max-width:620px) {
    .result-image-shell {
        height: 380px
    }
}

.all-categories {
    text-decoration: none
}

.categories-page {
    max-width: 1280px;
    margin: auto;
    padding: 58px clamp(20px, 5vw, 60px) 90px
}

.back-link {
    display: inline-block;
    color: #5e37cd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 38px
}

.categories-page-heading {
    text-align: center;
    margin: 0 auto 45px
}

.categories-page-heading h1 {
    font-size: clamp(44px, 6vw, 70px);
    margin: 12px 0
}

.categories-page-heading p {
    color: var(--muted);
    margin: 0
}

.full-category-grid {
    max-height: none;
    grid-template-columns: repeat(5, 1fr)
}

.full-category-grid .category-tile {
    text-decoration: none
}

@media(max-width:900px) {
    .full-category-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:620px) {
    .categories-page {
        padding-top: 35px
    }

    .full-category-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}
