:root {
  --bg: #0a0a0f; --panel: #131019; --panel-2: #1a1622; --line: #2c2735;
  --text: #f3eef8; --muted: #9a93a8; --violet: #8b5cf6; --pink: #ff3d81;
  --orange: #ff9a3d; --cyan: #35e0c9; --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif; --brand: linear-gradient(120deg, var(--violet), var(--pink), var(--orange));
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 38% at 8% -8%, #8b5cf62b, transparent 65%), radial-gradient(ellipse 48% 36% at 94% 2%, #ff3d8121, transparent 62%), radial-gradient(ellipse 50% 38% at 50% 105%, #35e0c915, transparent 65%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 16px clamp(18px, 3vw, 42px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 21px var(--display); }
.brand-mark { width: 14px; height: 14px; border-radius: 4px; background: var(--brand); transform: rotate(45deg); box-shadow: 0 0 16px #ff3d8166; }
.back-link, .text-button { color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 9px 14px; cursor: pointer; }
.back-link:hover, .text-button:hover { color: var(--text); border-color: var(--pink); }
.page-shell { position: relative; z-index: 1; width: min(1540px, 100%); margin: 0 auto; padding: 54px clamp(16px, 2.5vw, 38px) 90px; }
.hero { text-align: center; max-width: 820px; margin: 0 auto 42px; }
.eyebrow { display: inline-block; color: var(--cyan); font: 600 12px var(--display); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 13px; }
.hero h1 { margin: 0; font: 700 clamp(38px, 6vw, 72px)/.98 var(--display); letter-spacing: -.055em; background: var(--brand); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero > p { margin: 18px 0 28px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.journey { display: flex; justify-content: center; align-items: center; color: #c7c0d0; font-size: 12px; flex-wrap: wrap; gap: 10px; }
.journey span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.journey b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--text); background: var(--panel-2); border: 1px solid #443b51; }
.journey i { width: 24px; height: 1px; background: #443b51; }
.catalog-tools { position: sticky; top: 10px; z-index: 4; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #131019e8; backdrop-filter: blur(18px); box-shadow: 0 18px 50px #0005; }
.search-box { height: 50px; display: flex; align-items: center; gap: 11px; border: 1px solid #393241; border-radius: 13px; padding: 0 14px; background: #0d0c12; }
.search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px #8b5cf61b; }
.search-box > span:first-child { color: var(--muted); font-size: 27px; transform: rotate(-18deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-box input::placeholder { color: #716a7b; }
kbd { color: #777080; background: var(--panel-2); border: 1px solid #393341; border-radius: 6px; padding: 3px 7px; font: 500 10px var(--body); }
.quick-filters, .category-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.quick-filters { padding-top: 12px; }
.category-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid #28232f; }
.quick-filters::-webkit-scrollbar, .category-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; padding: 8px 13px; font-size: 12px; cursor: pointer; }
.filter-button:hover { color: var(--text); border-color: #554a64; }
.filter-button.active { color: #fff; border-color: transparent; background: linear-gradient(120deg, #7650db, #d33573); box-shadow: 0 7px 22px #8b5cf62d; }
.category-row .filter-button.active { background: #292231; border-color: #6c5a7f; box-shadow: none; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 25px 2px 15px; color: var(--muted); font-size: 13px; }
.results-head span { color: var(--text); font-weight: 700; }
.catalog-view-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sort-control { display: flex; align-items: center; gap: 8px; }
.sort-control > span { color: var(--muted); font-size: 11px; font-weight: 400; }
.sort-control select { min-height: 34px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--panel); font-size: 11px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.view-switch button { display: grid; place-items: center; width: 29px; height: 27px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.view-switch button.active { color: #fff; background: var(--panel-2); }
.text-button { padding: 6px 11px; font-size: 11px; }
.prompt-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.prompt-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); transition: transform .2s, border-color .2s, box-shadow .2s; }
.prompt-card:hover { transform: translateY(-4px); border-color: #554760; box-shadow: 0 16px 38px #0007; }
.preview { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #111016; cursor: pointer; }
.preview-trigger { border-radius: 17px 17px 0 0; overflow: hidden; }
.preview img { display: block; width: 100%; max-width: none; height: 100%; margin: 0; object-fit: cover; object-position: center; transform: scale(1.035); transition: transform .35s ease; }
.prompt-card:hover .preview img { transform: scale(1.055); }
.preview-badge { position: absolute; top: 10px; left: 10px; z-index: 1; border: 1px solid #ffffff25; border-radius: 999px; padding: 5px 8px; background: #09070ca8; backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; }
.preview-badge.popular { color: #fff2c8; }
.model-badge { position: absolute; z-index: 2; left: 10px; bottom: 10px; max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 9px; border: 1px solid #ffffff24; border-radius: 999px; color: #fff; background: #09070cb8; backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; }
.bookmark-button { position: absolute; z-index: 2; top: 9px; right: 9px; width: 31px; height: 31px; padding: 0; border: 1px solid #ffffff28; border-radius: 50%; color: #fff; background: #09070cb8; backdrop-filter: blur(8px); cursor: pointer; font-size: 17px; }
.bookmark-button.saved { color: var(--pink); }
.play-badge { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff55; border-radius: 50%; background: #09070c9c; backdrop-filter: blur(8px); transform: translate(-50%, -50%); box-shadow: 0 8px 25px #0007; }
.play-badge i { width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #fff; }
.card-body { padding: 13px; }
.card-category { color: var(--cyan); text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 700; }
.card-title { min-height: 39px; margin: 7px 0 9px; font: 600 15px/1.3 var(--display); letter-spacing: -.015em; }
.card-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 10px; }
.card-meta .rating { color: #ffc761; }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 7px; margin-top: 12px; }
.copy-card-button, .create-button, .secondary-button, .primary-button { border: 0; border-radius: 10px; min-height: 38px; color: var(--text); cursor: pointer; font-weight: 700; }
.copy-card-button { border: 1px solid var(--line); background: var(--panel-2); font-size: 10px; }
.copy-card-button:hover { border-color: var(--violet); }
.create-button, .primary-button { background: linear-gradient(120deg, var(--violet), var(--pink)); box-shadow: 0 8px 22px #8b5cf62b; }
.create-button:hover, .primary-button:hover { filter: brightness(1.12); }
.empty-state { text-align: center; margin: 65px auto; color: var(--muted); }
.empty-state div { color: var(--text); font: 600 22px var(--display); }
.secondary-button { padding: 0 18px; border: 1px solid var(--line); background: var(--panel-2); }
.prompt-dialog { width: min(960px, calc(100% - 28px)); max-height: min(850px, calc(100vh - 28px)); padding: 0; overflow: auto; color: var(--text); background: var(--panel); border: 1px solid #4a3d57; border-radius: 22px; box-shadow: 0 28px 90px #000c; }
.prompt-dialog::backdrop { background: #050407d9; backdrop-filter: blur(8px); }
.dialog-close { position: sticky; float: right; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border: 1px solid #ffffff28; border-radius: 50%; color: #fff; background: #0b0910cc; font-size: 25px; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); min-height: 580px; }
.dialog-preview { min-height: 580px; cursor: default; background: #0c0b10; }
.dialog-preview img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; transform: scale(1.035); }
.dialog-panel { padding: 46px 38px 36px; }
.dialog-panel h2 { margin: 8px 0 12px; font: 700 clamp(27px, 4vw, 40px)/1.04 var(--display); letter-spacing: -.04em; }
.dialog-lead { color: var(--muted); font-size: 13px; line-height: 1.55; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 21px 0; }
.spec { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.spec span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.spec strong { display: block; margin-top: 4px; font-size: 12px; }
.prompt-box { position: relative; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #0c0a10; }
.prompt-box label { display: block; color: var(--muted); margin-bottom: 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.prompt-box p { max-height: 180px; margin: 0; overflow: auto; white-space: pre-wrap; font-size: 12px; line-height: 1.58; }
.dialog-copy { margin-top: 10px; color: var(--cyan); border: 0; background: transparent; padding: 0; font-size: 11px; cursor: pointer; }
.primary-button { width: 100%; min-height: 52px; margin-top: 19px; font-size: 14px; }
.integration-note { margin: 10px 2px 0; text-align: center; color: #777080; font-size: 10px; }
.similar { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.similar h3 { margin: 0 0 11px; font: 600 14px var(--display); }
.similar > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.similar-card { min-width: 0; padding: 0; overflow: hidden; text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); cursor: pointer; }
.similar-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.similar-card span { display: block; padding: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid #4d4059; border-radius: 999px; color: var(--text); background: #19131fe8; box-shadow: 0 12px 35px #0009; font-size: 12px; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1460px) { .prompt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 761px) { .prompt-grid.list-view { grid-template-columns: 1fr; } .list-view .prompt-card { display: grid; grid-template-columns: 150px 1fr; } .list-view .preview { aspect-ratio: 1; } .list-view .card-title { min-height: 0; } .list-view .card-actions { max-width: 310px; } }
@media (max-width: 760px) { .page-shell { padding-top: 38px; } .catalog-tools { top: 5px; } .journey i { display: none; } .dialog-layout { grid-template-columns: 1fr; } .dialog-preview { min-height: 380px; aspect-ratio: 4/3; } .dialog-panel { padding: 28px 22px 26px; } }
@media (max-width: 560px) { .topbar { min-height: 62px; } .back-link { padding: 8px 10px; font-size: 11px; } .hero { margin-bottom: 28px; } .hero h1 { font-size: 42px; } .hero > p { font-size: 14px; } .journey { display: grid; grid-template-columns: 1fr 1fr; text-align: left; } .catalog-tools { margin-inline: -7px; padding: 10px; border-radius: 16px; } kbd { display: none; } .results-head { align-items: flex-start; } .catalog-view-tools { flex-wrap: wrap; } .sort-control > span { display: none; } .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .card-body { padding: 10px; } .card-title { min-height: 34px; font-size: 13px; } .card-meta { flex-wrap: wrap; line-height: 1.5; } .create-button { font-size: 11px; } .preview-badge { font-size: 8px; } }
@media (max-width: 360px) { .prompt-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
