/* Spoof AI desktop. Dark studio look (Higgsfield-like layout), our own type and a silver primary button.
   Fonts: Space Grotesk (display, uppercase) + Instrument Sans (UI). One accent: brand pink, used for tiny marks only. */
:root {
  --bg: #0a0b0d; --bg2: #0f1114; --panel: #14161a; --panel2: #1b1e23; --panel3: #23272d;
  --line: #22262c; --line2: #2e333a; --text: #f2f3f5; --muted: #9aa0a9; --dim: #8a909a;
  --pink: #ff3b6b; --ok: #3ddc97; --warn: #f5b83d; --err: #ff5d5d;
  --silver: linear-gradient(180deg, #ffffff 0%, #f1f2f4 38%, #d4d8de 100%);
  --silver-hi: linear-gradient(180deg, #ffffff 0%, #ffffff 30%, #e1e4e9 100%);
  --r-s: 6px; --r: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --spring: cubic-bezier(.16, 1, .3, 1);
  --disp: 'Archivo', system-ui, sans-serif; --ui: 'Instrument Sans', system-ui, sans-serif;
  --gut: 24px; --barh: 60px;
  color-scheme: dark;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--line2) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--ui); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ph, .ph-fill { line-height: 1; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--barh); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut); background: rgba(10, 11, 13, .86); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; backdrop-filter: saturate(140%) blur(14px); }
.bar.scrolled { border-bottom-color: var(--line); }
.logo img { height: 30px; width: auto; transition: transform .5s var(--spring); }
.logo:hover img { transform: scale(1.06, .94) rotate(-2deg); }
.nav { position: relative; display: flex; gap: 2px; height: 100%; align-items: center; }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav-ink { position: absolute; z-index: 0; top: 13px; height: 34px; border-radius: var(--r); background: var(--panel2); transition: left .35s var(--ease), width .35s var(--ease), opacity .2s; opacity: 0; pointer-events: none; }
.nav-tag { font-style: normal; font: 700 10px/1 var(--ui); color: #000; background: var(--silver); padding: 3px 5px; border-radius: 4px; }
.bar-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cred { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .2s; }
.cred:hover { border-color: var(--line2); }
.cred .ph-fill { color: #fff; font-size: 15px; }
.cred.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.08); } }
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line2); font: 600 14px var(--disp); text-transform: uppercase; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r-m); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7); transform-origin: top right; animation: pop .22s var(--ease); z-index: 60; }
.menu .who { padding: 8px 10px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-s); color: var(--text); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--panel2); }
.menu i { color: var(--muted); font-size: 16px; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.pause { margin: 12px var(--gut) 0; padding: 12px 16px; border-radius: var(--r); background: #2a2212; border: 1px solid #4a3a16; color: #f7d58a; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r); font-weight: 600; white-space: nowrap; transition: transform .12s ease-out, background-color .15s, border-color .15s, color .15s, box-shadow .2s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.xl { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn i { font-size: 1.15em; }
/* the silver primary: white-to-steel metal with a light sweep that passes by on its own and on hover */
.btn.pri { color: #0a0b0d; background: var(--silver); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .22), 0 1px 0 rgba(0, 0, 0, .5), 0 10px 28px -12px rgba(255, 255, 255, .35); overflow: hidden; isolation: isolate; }
.btn.pri::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--silver-hi); opacity: 0; transition: opacity .25s; }
.btn.pri::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%); transform: skewX(-18deg); animation: sheen 5.5s var(--ease-io) infinite; mix-blend-mode: soft-light; }
.btn.pri:hover::before { opacity: 1; }
.btn.pri:hover::after { animation: sheen-now .8s var(--ease) 1; }
.btn.pri:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .22), 0 1px 0 rgba(0, 0, 0, .5), 0 14px 34px -12px rgba(255, 255, 255, .5); }
.btn.pri[disabled], .btn.pri.wait { color: #55595f; background: linear-gradient(180deg, #c9cdd3, #a9aeb6); cursor: default; }
.btn.pri[disabled]::after, .btn.pri.wait::after { display: none; }
@keyframes sheen { 0%, 62% { left: -60%; } 86%, 100% { left: 130%; } }
@keyframes sheen-now { from { left: -60%; } to { left: 130%; } }
.btn.pri .cost { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 3px 7px; border-radius: 5px; background: rgba(10, 11, 13, .9); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.btn.pri .cost i { font-size: 12px; }
.btn.ghost { background: var(--panel2); border: 1px solid var(--line2); color: var(--text); }
.btn.ghost:hover { background: var(--panel3); border-color: #3a4048; }
.btn.line { border: 1px solid var(--line2); color: var(--text); }
.btn.line:hover { background: var(--panel); }
.btn.glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
.btn.danger { color: var(--err); border: 1px solid #45242a; }
.btn.danger:hover { background: #241418; }
.ibtn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r); color: var(--muted); transition: background .15s, color .15s, transform .12s; }
.ibtn:hover { background: var(--panel2); color: var(--text); }
.ibtn:active { transform: scale(.94); }
.ibtn i { font-size: 18px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
.view { min-height: calc(100vh - var(--barh)); }
.wrap { padding: 0 var(--gut); max-width: 1680px; margin: 0 auto; }
.sec { margin-top: 56px; }
.sec-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sec-h h2 { margin: 0; font: 700 26px/1.05 var(--disp); text-transform: uppercase; letter-spacing: -.01em; }
.sec-h p { margin: 0; color: var(--muted); }
.sec-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; transition: color .2s, gap .25s var(--ease); }
.sec-h .more:hover { color: var(--text); gap: 10px; }
.page-h { display: flex; align-items: flex-end; gap: 20px; padding: 36px 0 24px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font: 700 56px/.95 var(--disp); text-transform: uppercase; letter-spacing: -.02em; }
.page-h p { margin: 0 0 6px; color: var(--muted); font-size: 15px; max-width: 520px; }
.page-h .act { margin-left: auto; display: flex; gap: 10px; }
.foot { border-top: 1px solid var(--line); margin-top: 96px; }
.foot-in { display: flex; align-items: center; gap: 32px; padding: 28px var(--gut); max-width: 1680px; margin: 0 auto; color: var(--muted); }
.foot-in nav { display: flex; gap: 22px; }
.foot-in a:hover { color: var(--text); }
.foot-c { margin-left: auto; color: var(--dim); }
body.studio .foot { display: none; }

/* word mask reveal (hero and page titles) */
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(14px); animation: fadeup .7s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeup { to { opacity: 1; transform: none; } }
/* rows and grids wipe in once when they scroll into view */
.reveal { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: 12px; height: clamp(460px, 64vh, 640px); border-radius: var(--r-xl); overflow: hidden; background: #000; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-io); }
.hero-slide.on { opacity: 1; }
.hero-slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.on video { animation: push 9s linear forwards; }
@keyframes push { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 6, 8, .86) 0%, rgba(5, 6, 8, .55) 38%, rgba(5, 6, 8, 0) 70%), linear-gradient(0deg, rgba(5, 6, 8, .7) 0%, rgba(5, 6, 8, 0) 40%); pointer-events: none; }
.hero-in { position: absolute; z-index: 2; left: 56px; bottom: 52px; right: 56px; display: flex; align-items: flex-end; gap: 40px; }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0; font: 700 clamp(48px, 6.4vw, 96px)/.92 var(--disp); text-transform: uppercase; letter-spacing: -.025em; }
.hero p { margin: 18px 0 26px; color: #d5d8dd; font-size: 18px; }
.hero .cta { display: flex; gap: 12px; }
.bars { display: flex; gap: 6px; margin-top: 34px; }
.bars button { width: 56px; height: 18px; position: relative; }
.bars button::before, .bars button i { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.bars button i { right: auto; width: 0; background: #fff; }
.bars button.done i { width: 100%; }
.bars button.on i { animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.hero-meta { margin-left: auto; text-align: right; color: #c9ccd2; font-size: 13px; min-width: 200px; }
.hero-meta b { display: block; color: #fff; font: 600 15px var(--disp); text-transform: uppercase; letter-spacing: .02em; }

/* tool tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.tile { position: relative; height: 210px; border-radius: var(--r-l); overflow: hidden; background: var(--panel); isolation: isolate; border: 1px solid var(--line); }
.tile video, .tile img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.04); transition: opacity .5s, transform 1.2s var(--ease); }
.tile:hover video { opacity: .9; transform: scale(1.0); }
.tile .tile-in::before, .idea::after, .cost-c::after { content: ''; position: absolute; pointer-events: none; opacity: 0; transition: opacity .3s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover::before { opacity: 1; }
.idea, .cost-c { position: relative; overflow: hidden; }
.idea::after, .cost-c::after { inset: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%); }
.idea:hover::after, .cost-c:hover::after { opacity: 1; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .15) 70%); z-index: 1; }
.tile-in { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; }
.tile h3 { margin: 0; font: 700 22px/1 var(--disp); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.tile h3 i { margin-left: auto; font-size: 18px; transition: transform .35s var(--ease); }
.tile:hover h3 i { transform: translateX(4px) rotate(-45deg); }
.tile p { margin: 6px 0 0; color: #b9bdc4; font-size: 13px; }
.tile .tag { position: absolute; z-index: 2; top: 14px; left: 14px; }

/* border beam: a light that runs around the edge (featured tiles, the deal plan, the promo banner) */
.beam { position: relative; }
.beam::before { content: ''; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg, transparent 290deg, rgba(255, 255, 255, .9) 330deg, #fff 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinang 4.5s linear infinite; }
@keyframes spinang { to { --ang: 360deg; } }

/* chips + tags */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 5px; font: 700 11px/1 var(--ui); letter-spacing: .02em; text-transform: uppercase; background: rgba(10, 11, 13, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.tag.silver { background: var(--silver); color: #0a0b0d; border: 0; }
.tag.pink { background: var(--pink); border: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 500; transition: color .15s, background .15s, border-color .15s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { background: #fff; color: #0a0b0d; border-color: #fff; }
.chip small { font-size: 11px; opacity: .6; }

/* clip cards (recast templates) */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 214px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row-wrap { position: relative; }
.row-nav { position: absolute; top: calc(50% - 40px); z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: rgba(20, 22, 26, .9); border: 1px solid var(--line2); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .12s; }
.row-wrap:hover .row-nav { opacity: 1; }
.row-nav.l { left: -12px; } .row-nav.r { right: -12px; }
.row-nav:active { transform: scale(.93); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 12px; }
.card { position: relative; display: block; text-align: left; scroll-snap-align: start; }
.card .media { position: relative; aspect-ratio: 9 / 14; border-radius: var(--r-m); overflow: hidden; background: var(--panel); }
.card .media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .25s; pointer-events: none; }
.card:hover .media::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.card .media img, .card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.card .media video { opacity: 0; }
.card .media video.playing { opacity: 1; }
.card:hover .media img, .card:hover .media video { transform: scale(1.04); }
.card .media .fitbg { filter: blur(18px) brightness(.55); transform: scale(1.2) !important; }
.card .media .fit { object-fit: contain; }
.card .tags { position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; }
.card .tags .r { margin-left: auto; }
.card .go { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease); }
.card:hover .go { opacity: 1; transform: none; }
.card .nm { display: block; margin-top: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { display: flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.card .sub i { font-size: 12px; }
.skel { background: linear-gradient(100deg, var(--panel) 30%, var(--panel2) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shim 1.4s linear infinite; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* promo banner */
.promo { position: relative; display: flex; align-items: center; gap: 32px; height: 168px; padding: 0 40px; border-radius: var(--r-xl); overflow: hidden; background: #0d0e11; border: 1px solid var(--line); isolation: isolate; }
.promo .strip { position: absolute; inset: -40px -10%; z-index: -1; display: flex; gap: 10px; transform: rotate(-8deg); opacity: .38; }
.promo .strip .lane { display: flex; flex-direction: column; gap: 10px; animation: lane 26s linear infinite; }
.promo .strip .lane:nth-child(even) { animation-direction: reverse; animation-duration: 32s; }
.promo .strip img { width: 110px; height: 150px; object-fit: cover; border-radius: 8px; }
@keyframes lane { to { transform: translateY(-50%); } }
.promo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b0c0f 0%, rgba(11, 12, 15, .92) 45%, rgba(11, 12, 15, .35) 100%); }
.promo h3 { margin: 0; font: 700 40px/1 var(--disp); text-transform: uppercase; letter-spacing: -.015em; }
.promo p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.promo .btn { margin-left: auto; }
.code-box { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px dashed #5b616a; border-radius: var(--r); font: 700 16px var(--disp); letter-spacing: .12em; }

/* inspiration wall (masonry) */
.wall { columns: 5 220px; column-gap: 12px; }
.wall .w { break-inside: avoid; margin-bottom: 12px; border-radius: var(--r-m); overflow: hidden; background: var(--panel); position: relative; }
.wall .w video { width: 100%; height: auto; }

/* models marquee */
.marq { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marq-in { display: flex; gap: 56px; width: max-content; animation: marq 40s linear infinite; }
.marq:hover .marq-in { animation-play-state: paused; }
.marq span { font: 700 28px/1 var(--disp); text-transform: uppercase; color: #3b4048; white-space: nowrap; transition: color .3s; }
.marq span:hover { color: #fff; }
.marq span b { color: var(--pink); margin-left: 56px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- studio pages (image / video) ---------- */
body.studio { overflow: hidden; }
.studio-pg { position: relative; height: calc(100vh - var(--barh)); display: flex; flex-direction: column; }
.feed { flex: 1; overflow-y: auto; padding: 8px var(--gut) 260px; scroll-behavior: smooth; }
.feed-h { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.feed-h h1 { margin: 0; font: 700 32px/1 var(--disp); text-transform: uppercase; }
.feed-h .chips { margin-left: auto; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; grid-auto-flow: dense; }
.res { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--panel); cursor: zoom-in; animation: resin .6s var(--ease) both; }
@keyframes resin { from { opacity: 0; transform: scale(.97); } }
.res img, .res video { width: 100%; height: 100%; object-fit: cover; }
.res .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); font-size: 12px; color: #d9dce1; opacity: 0; transition: opacity .2s; display: flex; gap: 8px; align-items: center; }
.res:hover .meta { opacity: 1; }
.res .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .acts { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.res:hover .acts { opacity: 1; }
.res .acts button { width: 32px; height: 32px; border-radius: var(--r-s); background: rgba(10, 11, 13, .75); display: grid; place-items: center; color: #fff; }
.res .acts button:hover { background: #000; }
/* the cooking card: a scanning light and a progress line, no fake spinner text */
.res.cook { cursor: default; background: #101216; }
.res.cook::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%); background-size: 250% 100%; animation: shim 1.8s linear infinite; }
.res.cook .scan { position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .06), transparent); animation: scan 2.6s var(--ease-io) infinite; }
@keyframes scan { from { top: -40%; } to { top: 100%; } }
.res.cook .cook-in { position: absolute; inset: auto 14px 14px; z-index: 1; }
.res.cook .cook-in b { display: block; font: 600 13px var(--ui); }
.res.cook .cook-in small { color: var(--dim); }
.prog { height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: #fff; transition: width 1s linear; }
.res.fail { cursor: default; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); border: 1px dashed var(--line2); background: transparent; }
.res.fail i { font-size: 22px; color: var(--err); }
.empty-hero { position: relative; height: clamp(260px, 40vh, 380px); border-radius: var(--r-xl); overflow: hidden; display: grid; place-items: center; text-align: center; margin-top: 8px; isolation: isolate; }
.empty-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; z-index: -2; }
.empty-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 11, 13, .2), rgba(10, 11, 13, .95) 75%); }
.empty-hero h1 { margin: 0; font: 700 clamp(44px, 5vw, 76px)/.95 var(--disp); text-transform: uppercase; letter-spacing: -.02em; }
.empty-hero p { margin: 14px auto 0; color: #c3c7cd; font-size: 16px; max-width: 480px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 20px; }
.idea { text-align: left; padding: 14px 16px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.idea:hover { border-color: var(--line2); background: var(--panel2); transform: translateY(-2px); }
.idea b { display: flex; align-items: center; gap: 8px; font: 600 14px var(--ui); }
.idea b i { color: var(--muted); }
.idea span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* the docked composer */
.dock { position: absolute; left: 50%; bottom: 22px; width: min(920px, calc(100% - 48px)); transform: translateX(-50%); z-index: 10; }
.comp { background: rgba(20, 22, 26, .94); border: 1px solid var(--line2); border-radius: var(--r-l); padding: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4); backdrop-filter: blur(18px); transition: border-color .25s; }
.comp:focus-within { border-color: #474d56; }
.comp-top { display: flex; gap: 10px; align-items: flex-start; }
.refs { display: flex; gap: 6px; flex-shrink: 0; }
.ref { position: relative; width: 52px; height: 52px; border-radius: var(--r); overflow: hidden; background: var(--panel2); border: 1px solid var(--line2); }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref .n { position: absolute; left: 3px; bottom: 3px; font: 700 10px/1 var(--ui); background: rgba(0, 0, 0, .75); padding: 2px 4px; border-radius: 3px; }
.ref .x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 4px; background: rgba(0, 0, 0, .75); display: grid; place-items: center; font-size: 11px; opacity: 0; transition: opacity .15s; }
.ref:hover .x { opacity: 1; }
.ref.add { display: grid; place-items: center; color: var(--muted); border-style: dashed; transition: color .15s, border-color .15s; }
.ref.add:hover { color: var(--text); border-color: #555c66; }
.ref.add i { font-size: 20px; }
.ref.up { display: grid; place-items: center; }
.comp textarea { flex: 1; min-height: 52px; max-height: 180px; resize: none; background: transparent; border: 0; padding: 6px 4px; font-size: 15px; line-height: 1.5; }
.comp textarea::placeholder { color: var(--dim); }
.comp-bot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.comp-bot .gen { margin-left: auto; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 13px; transition: background .15s, border-color .15s; }
.pill:hover { background: var(--panel3); border-color: var(--line2); }
.pill i { color: var(--muted); font-size: 15px; }
.pill .caret { font-size: 11px; margin-left: 1px; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 26px; padding: 0 10px; border-radius: 5px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
.seg button.on { color: #0a0b0d; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 5px; background: var(--silver); transition: left .3s var(--ease), width .3s var(--ease); }
.pop { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 20; min-width: 300px; max-height: 420px; overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r-m); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8); transform-origin: bottom left; animation: popup .2s var(--ease); }
@keyframes popup { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.pop .opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r-s); text-align: left; }
.pop .opt:hover { background: var(--panel2); }
.pop .opt.on { background: var(--panel3); }
.pop .opt b { display: block; font-weight: 600; }
.pop .opt small { display: block; color: var(--muted); font-size: 12px; }
.pop .opt .cr { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pop .opt .ck { margin-left: 8px; color: #fff; opacity: 0; }
.pop .opt.on .ck { opacity: 1; }
.pop .opt .ic { width: 34px; height: 34px; border-radius: var(--r-s); background: var(--panel3); display: grid; place-items: center; flex-shrink: 0; font: 700 12px var(--disp); }
.ratios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; min-width: 0; }
.ratios button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: var(--r-s); color: var(--muted); font-size: 12px; font-weight: 600; }
.ratios button:hover { background: var(--panel2); color: var(--text); }
.ratios button.on { background: var(--panel3); color: #fff; }
.shape { border: 1.5px solid currentColor; border-radius: 3px; flex-shrink: 0; }
.hint { color: var(--dim); font-size: 12px; margin: 8px 4px 0; }
.hint b { color: var(--muted); font-weight: 600; }
.consent { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; user-select: none; }
.consent input { accent-color: #fff; width: 14px; height: 14px; }

/* ---------- recast editor (full-screen dialog) ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(4, 5, 7, .74); backdrop-filter: blur(6px); animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.dlg { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-xl); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); animation: dlgin .38s var(--ease); overflow: hidden; }
@keyframes dlgin { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.dlg.out { animation: dlgout .2s ease-in forwards; }
@keyframes dlgout { to { opacity: 0; transform: translate(-50%, -49%) scale(.98); } }
.scrim.out { animation: fadeout .2s ease-in forwards; }
@keyframes fadeout { to { opacity: 0; } }
.dlg-x { position: absolute; top: 12px; right: 12px; z-index: 5; }
.editor { width: min(1180px, calc(100vw - 48px)); height: min(760px, calc(100vh - 48px)); display: grid; grid-template-columns: 1fr 440px; }
.ed-stage { position: relative; background: #000; display: grid; place-items: center; overflow: hidden; }
.ed-stage video { max-width: 100%; max-height: 100%; position: relative; z-index: 1; }
.ed-stage .bgblur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; max-height: none; object-fit: cover; filter: blur(40px) brightness(.4); z-index: 0; }
.ed-stage .snd { position: absolute; z-index: 2; left: 14px; bottom: 14px; }
.ed-side { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-height: 0; }
.ed-scroll { flex: 1; overflow-y: auto; padding: 24px 24px 12px; }
.ed-side h2 { margin: 0 40px 4px 0; font: 700 26px/1.05 var(--disp); text-transform: uppercase; }
.ed-side .meta-l { color: var(--muted); display: flex; gap: 10px; align-items: center; font-size: 13px; }
.lbl { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; font: 600 12px var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lbl button { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.lbl button:hover { color: var(--text); }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { position: relative; width: 76px; height: 96px; border-radius: var(--r-m); overflow: hidden; background: var(--panel); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--muted); transition: border-color .2s, transform .2s var(--ease); }
.slot:hover { border-color: #4a5058; }
.slot.on { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot img.ex { filter: grayscale(.6) brightness(.55); }
.slot .k { position: absolute; z-index: 1; left: 6px; bottom: 6px; font: 700 10px var(--ui); background: rgba(0, 0, 0, .75); padding: 2px 5px; border-radius: 4px; color: #fff; }
.slot .x { position: absolute; z-index: 1; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 5px; background: rgba(0, 0, 0, .75); color: #fff; display: grid; place-items: center; font-size: 12px; }
.slot i.plus { position: relative; z-index: 1; font-size: 22px; color: #fff; }
.saved { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.saved button { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.saved button:hover { border-color: #5a616b; transform: translateY(-1px); }
.saved button img { width: 100%; height: 100%; object-fit: cover; }
.saved button.add { display: grid; place-items: center; color: var(--muted); border-style: dashed; }
.saved button.add i { font-size: 20px; }
.saved button.used::after { content: '\2713'; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #000; font: 700 11px/18px var(--ui); text-align: center; }
.ta { width: 100%; min-height: 72px; resize: vertical; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); padding: 10px 12px; line-height: 1.5; transition: border-color .2s; }
.ta:focus { border-color: #5a616b; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier { text-align: left; padding: 12px 14px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line2); transition: border-color .2s, background .2s; }
.tier:hover { border-color: #4a5058; }
.tier.on { border-color: #fff; background: var(--panel2); }
.tier b { display: block; font: 700 15px var(--disp); text-transform: uppercase; }
.tier small { color: var(--muted); font-size: 12px; }
.ed-foot { padding: 14px 24px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ed-foot .note { color: var(--dim); font-size: 12px; text-align: center; }

/* ---------- library ---------- */
.lib { columns: 5 240px; column-gap: 10px; }
.lib .res { break-inside: avoid; margin-bottom: 10px; display: block; }
.lib .res.cook, .lib .res.fail { aspect-ratio: 3 / 4; }
.lib-tabs { display: flex; gap: 6px; margin-bottom: 18px; align-items: center; }
.lib-tabs .r { margin-left: auto; }
.photos-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos-g .ph-c { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--panel); }
.photos-g .ph-c img { width: 100%; height: 100%; object-fit: cover; }
.photos-g .ph-c button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: var(--r-s); background: rgba(0, 0, 0, .7); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.photos-g .ph-c:hover button { opacity: 1; }
.photos-g .add { display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--line2); color: var(--muted); border-radius: var(--r-m); aspect-ratio: 4 / 5; transition: color .15s, border-color .15s; }
.photos-g .add:hover { color: var(--text); border-color: #5a616b; }
.photos-g .add i { font-size: 24px; }
.blank { padding: 80px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r-xl); }
.blank h3 { margin: 0 0 6px; color: var(--text); font: 700 24px var(--disp); text-transform: uppercase; }
.blank .btn { margin-top: 18px; }

/* lightbox */
.lightbox { width: min(1240px, calc(100vw - 48px)); height: min(820px, calc(100vh - 48px)); display: grid; grid-template-columns: 1fr 340px; }
.lb-stage { background: #000; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-side { border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.lb-side h3 { margin: 0 40px 0 0; font: 700 20px/1.1 var(--disp); text-transform: uppercase; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
.prompt-box { padding: 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: #d7dade; font-size: 13px; line-height: 1.55; white-space: pre-wrap; max-height: 200px; overflow-y: auto; }
.lb-acts { display: grid; gap: 8px; margin-top: auto; }

/* ---------- pricing ---------- */
.pr-hero { position: relative; margin-top: 12px; padding: 72px 0 56px; text-align: center; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: #0c0d10; border: 1px solid var(--line); }
.pr-hero .film { position: absolute; inset: -30px 0; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: 12px; transform: perspective(900px) rotateX(16deg) scale(1.12); opacity: .5; }
.pr-hero .film .lane { display: flex; gap: 12px; width: max-content; animation: film 60s linear infinite; }
.pr-hero .film .lane.r { animation-direction: reverse; animation-duration: 70s; }
.pr-hero .film .lane { height: 270px; }
.pr-hero .film img { height: 270px; width: 187px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
@keyframes film { to { transform: translateX(-50%); } }
/* the film under the title stays dark except where the pointer is: a soft spotlight follows it */
.pr-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 40%), rgba(12, 13, 16, .35), rgba(12, 13, 16, .93) 100%), radial-gradient(ellipse 55% 60% at 50% 50%, rgba(12, 13, 16, .6), transparent); transition: background .1s; }
.pr-hero h1 { margin: 0; font: 700 clamp(48px, 6vw, 88px)/.92 var(--disp); text-transform: uppercase; letter-spacing: -.025em; }
.pr-hero p { margin: 16px auto 0; color: #c6cad0; font-size: 17px; max-width: 520px; }
.pr-hero .seg { margin-top: 30px; padding: 4px; }
.pr-hero .seg button { height: 36px; padding: 0 20px; font-size: 14px; }
.pr-hero .seg .thumb { top: 4px; bottom: 4px; }
.codebar { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 18px auto 0; padding: 12px 18px; border-radius: var(--r-m); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); width: max-content; max-width: 100%; }
.codebar b { font: 700 15px var(--disp); letter-spacing: .1em; }
.codebar .clock { font: 600 15px var(--disp); font-variant-numeric: tabular-nums; color: #fff; min-width: 52px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; max-width: 1240px; margin-left: auto; margin-right: auto; }
.plans.packs { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin-left: auto; margin-right: auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), border-color .3s; transform-style: preserve-3d; }
.plan::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .09), transparent 45%); opacity: 0; transition: opacity .3s; }
.plan:hover::after { opacity: 1; }
.plan:hover { border-color: var(--line2); }
.plan.deal { background: linear-gradient(180deg, #1b1e23 0%, #131519 60%); border-color: #3b4149; }
.plan .ribbon { position: absolute; top: 18px; right: 18px; }
.plan h3 { margin: 0; font: 700 18px var(--disp); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.plan.deal h3 { color: #fff; }
.price { display: flex; align-items: flex-end; gap: 6px; margin: 18px 0 4px; }
.price .amt { font: 700 52px/.9 var(--disp); letter-spacing: -.03em; display: inline-flex; overflow: hidden; }
.price .amt .dg { display: inline-block; }
.price .amt .dg.roll { animation: roll .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes roll { from { transform: translateY(70%); opacity: 0; } }
.price .per { color: var(--muted); margin-bottom: 4px; }
.price-was { color: var(--dim); font-size: 13px; min-height: 20px; }
.price-was s { margin-right: 6px; }
.price-was b { color: #fff; font-weight: 600; }
.credits-big { margin: 16px 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.credits-big b { font: 700 28px var(--disp); font-variant-numeric: tabular-nums; }
.credits-big span { color: var(--muted); }
.feats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; color: #c9ccd2; font-size: 13.5px; }
.feats li { display: flex; gap: 10px; align-items: flex-start; }
.feats i { color: #fff; font-size: 15px; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.costs { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cost-c { border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line); padding: 20px 22px; }
.cost-c h4 { margin: 0 0 4px; font: 700 18px var(--disp); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.cost-c h4 i { color: var(--muted); }
.cost-c p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.cost-c table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cost-c td { padding: 8px 0; border-top: 1px solid var(--line); }
.cost-c td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq { max-width: 860px; margin: 64px auto 0; }
.faq h2 { font: 700 32px var(--disp); text-transform: uppercase; margin: 0 0 18px; text-align: center; }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 4px; text-align: left; font-size: 16px; font-weight: 600; }
.qa button i { margin-left: auto; color: var(--muted); transition: transform .35s var(--ease); }
.qa.open button i { transform: rotate(45deg); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; color: var(--muted); padding: 0 4px; line-height: 1.6; }
.qa.open .ans > div { padding-bottom: 18px; }
.trust { display: flex; justify-content: center; gap: 28px; margin-top: 28px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { font-size: 16px; color: #fff; }
.need { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; max-width: 620px; padding: 12px 16px; border-radius: var(--r-m); background: #1a1c20; border: 1px solid var(--line2); color: #e1e3e7; }
.need i { font-size: 20px; }

/* ---------- account ---------- */
.acct { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.box { border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.box h3 { margin: 0 0 14px; font: 700 16px var(--disp); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.bal { font: 700 64px/.9 var(--disp); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bal-s { color: var(--muted); margin: 6px 0 18px; }
.sub-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.sub-row:first-of-type { border-top: 0; padding-top: 0; }
.sub-row b { display: block; }
.sub-row small { color: var(--muted); }
.sub-row .btn { margin-left: auto; }
.field { display: flex; gap: 8px; }
.inp { height: 42px; flex: 1; min-width: 0; padding: 0 12px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line2); transition: border-color .2s; }
.inp:focus { border-color: #5a616b; }

/* ---------- auth dialog ---------- */
.auth { width: 420px; padding: 32px 30px 26px; }
.auth h2 { margin: 0; font: 700 30px/1 var(--disp); text-transform: uppercase; }
.auth p.s { margin: 8px 0 22px; color: var(--muted); }
.auth form { display: grid; gap: 10px; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 16px 0; }
.auth .or::before, .auth .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth .sw { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.auth .sw button { color: #fff; font-weight: 600; }
.auth .legal { margin-top: 14px; color: var(--dim); font-size: 11.5px; text-align: center; }
.auth .legal a { text-decoration: underline; }
.gbtn { min-height: 44px; display: grid; place-items: center; }
.err { color: var(--err); font-size: 13px; min-height: 18px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 16px; border-radius: var(--r-m); background: #f4f5f7; color: #0a0b0d; font-weight: 500; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7); animation: tin .4s var(--spring); max-width: 560px; }
.toast.out { animation: tout .2s ease-in forwards; }
.toast button { font-weight: 700; text-decoration: underline; }
.toast i { font-size: 18px; }
@keyframes tin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(6px); } }

/* own-video upload overlay */
.own-dlg { width: 560px; padding: 28px; }
.own-dlg h2 { margin: 0 0 6px; font: 700 28px var(--disp); text-transform: uppercase; }
.own-dlg ul { margin: 16px 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; color: #c9ccd2; }
.own-dlg li { display: flex; gap: 10px; }
.own-dlg li i { color: #fff; font-size: 16px; margin-top: 2px; }
.drop { border: 1.5px dashed var(--line2); border-radius: var(--r-l); padding: 30px; text-align: center; color: var(--muted); transition: border-color .2s, background .2s; }
.drop.over { border-color: #fff; background: rgba(255, 255, 255, .04); }

/* page transitions */
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.bar { view-transition-name: bar; }
::view-transition-old(bar), ::view-transition-new(bar) { animation: none; }

@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .costs { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr 400px; }
}
@media (max-width: 900px) {
  :root { --gut: 16px; }
  .nav a { padding: 0 8px; }
  .hero-in { left: 24px; right: 24px; bottom: 28px; }
  .hero-meta { display: none; }
  .acct, .editor, .lightbox { grid-template-columns: 1fr; }
  .plans.packs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mask > span, .fade-up { transform: none; opacity: 1; }
  .reveal { clip-path: none; transform: none; }
}

.comp textarea:focus-visible, .ta:focus-visible, .inp:focus-visible { outline: none; }

/* ===== color pass (Nov 29): pink gradient for the main actions, color on pricing ===== */
:root { --hot: linear-gradient(115deg, #ff2e63 0%, #ff4f9a 42%, #c04dff 78%, #ff2e63 100%); --violet: #b45cff; }
.btn.hot { color: #fff; background: var(--hot); background-size: 220% 100%; animation: hotshift 6s ease-in-out infinite; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 10px 30px -10px rgba(255, 46, 99, .65); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.btn.hot::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: sheen 5.5s var(--ease-io) infinite; }
.btn.hot:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 14px 40px -10px rgba(255, 46, 99, .85); filter: saturate(1.1) brightness(1.05); }
.btn.hot:hover::after { animation: sheen-now .8s var(--ease) 1; }
.btn.hot[disabled], .btn.hot.wait { filter: grayscale(.5) brightness(.75); cursor: default; animation: none; }
.btn.hot[disabled]::after, .btn.hot.wait::after { display: none; }
.btn.hot .cost { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 3px 7px; border-radius: 5px; background: rgba(10, 11, 13, .45); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.btn.hot .cost i { font-size: 12px; }
@keyframes hotshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn.pinkline { color: #fff; border: 1px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--hot) border-box; }
.btn.pinkline:hover { background: linear-gradient(#1a1216, #1a1216) padding-box, var(--hot) border-box; }
.btn.tint { color: #fff; background: color-mix(in srgb, var(--c, #fff) 10%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--c, #fff) 35%, transparent); }
.btn.tint:hover { background: color-mix(in srgb, var(--c, #fff) 22%, var(--panel2)); border-color: var(--c, #fff); box-shadow: 0 10px 30px -14px var(--c, #fff); }
.tag.pink { background: var(--hot); border: 0; color: #fff; }
.tag.hotg { background: var(--hot); border: 0; color: #fff; gap: 4px; }
.cred .ph-fill { color: #ff4f8b; }
.nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--hot); }
.nav-tag { background: var(--hot); color: #fff; }
.bars button i { background: linear-gradient(90deg, #ff2e63, #c04dff); }
.seg .thumb { background: var(--silver); }
.pr-hero .seg .thumb { background: var(--hot); box-shadow: 0 6px 20px -8px rgba(255, 46, 99, .8); }
.pr-hero .seg button.on { color: #fff; }

/* pricing hero: two slow color washes behind the film */
.pr-hero .wash { position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; filter: blur(90px); opacity: .32; pointer-events: none; }
.pr-hero .wash.a { left: -160px; bottom: -320px; background: #ff2e63; animation: drift 14s ease-in-out infinite alternate; }
.pr-hero .wash.b { right: -160px; top: -340px; background: #8b3dff; animation: drift 17s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(120px, -60px) scale(1.15); } }
.codebar { background: linear-gradient(rgba(20, 14, 18, .92), rgba(20, 14, 18, .92)) padding-box, var(--hot) border-box; border: 1px solid transparent; }
.codebar .cb-i { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--hot); color: #fff; }
.codebar .clock { color: #ff7aa8; }

/* plan cards */
.plans { gap: 14px; margin-top: 28px; align-items: stretch; }
.plan { --c: #fff; --c2: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #15171b) 0%, #121418 45%); }
.plan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), var(--c2), transparent); opacity: .9; }
.plan::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--c) 18%, transparent), transparent 50%); }
.plan:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.pl-top { display: flex; align-items: center; gap: 12px; }
.pl-i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 20px; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 8px 24px -8px var(--c), inset 0 1px 0 rgba(255, 255, 255, .35); }
.plan h3 { color: #fff; }
.plan .ribbon.cl { background: color-mix(in srgb, var(--c) 18%, #0d0e11); border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--c2); }
.credits-big b { color: var(--c2); }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); margin: -6px 0 20px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--c2)); box-shadow: 0 0 14px var(--c); animation: meter 1.2s var(--ease) .35s forwards; }
@keyframes meter { to { width: var(--w); } }
.feats li { align-items: center; }
.feats .ck { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); }
.feats .ck i { color: var(--c2); font-size: 12px; margin: 0; }
/* the deal: lifted, pink-violet light running round its edge, warm glow under it */
.plan.deal { top: -10px; border-color: transparent; background: linear-gradient(180deg, #2a1420 0%, #17121b 40%, #121418 100%); box-shadow: 0 40px 90px -30px rgba(255, 46, 99, .55); }
.plan.deal:hover { box-shadow: 0 50px 110px -30px rgba(255, 46, 99, .75); }
.plan.deal.beam::before { top: auto; height: auto; opacity: 1; inset: -1px; padding: 1.5px; background: conic-gradient(from var(--ang), #ff2e63, #ff7aa8, #c04dff, #5b8cff, #c04dff, #ff2e63); animation: spinang 5s linear infinite; }
.plan.deal .price .amt { text-shadow: 0 0 40px rgba(255, 79, 154, .35); }
.plans.packs .plan.deal { top: -10px; }

/* perks strip */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.perk { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r-l); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--panel)), var(--panel) 60%); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); }
.perk .pk-i { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.perk b { font: 700 15px var(--disp); text-transform: uppercase; letter-spacing: .01em; }
.perk small { color: var(--muted); font-size: 12.5px; }
.cost-c h4 i { color: var(--c, var(--muted)); }
.cost-c { border-top: 2px solid color-mix(in srgb, var(--c, #fff) 70%, transparent); }
.cost-c td:last-child i { color: var(--c); }
.trust i { color: #ff7aa8; }
.faq .qa.open button i { color: #ff4f8b; }
@media (max-width: 1200px) { .perks { grid-template-columns: repeat(2, 1fr); } }
.tier.on { border-color: #ff4f9a; background: linear-gradient(135deg, rgba(255, 46, 99, .14), rgba(192, 77, 255, .08)); }
.slot.on { border-color: #ff4f9a; box-shadow: 0 0 0 1px #ff4f9a, 0 8px 24px -10px rgba(255, 46, 99, .7); }
.consent input { accent-color: #ff4f9a; }
.pop .opt.on { background: linear-gradient(90deg, rgba(255, 46, 99, .14), transparent); }
.pop .opt .ck { color: #ff4f9a; }
.ratios button.on { color: #fff; background: linear-gradient(135deg, rgba(255, 46, 99, .22), rgba(192, 77, 255, .14)); }

/* Archivo at a wider cut: our own heavy display look (Higgsfield uses Space Grotesk) */
h1, h2, h3, h4, .bal, .price .amt, .credits-big b, .marq span, .tier b, .perk b, .codebar b, .codebar .clock, .ava { font-variation-settings: 'wdth' 112; letter-spacing: -.01em; }
.hero h1, .page-h h1, .pr-hero h1, .empty-hero h1, .promo h3 { font-weight: 800; letter-spacing: -.02em; }
.codebar .btn { margin-left: 6px; }

.switch-note { display: flex; align-items: center; gap: 10px; max-width: 1240px; margin: 24px auto 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line2); color: #d7dade; }
.switch-note i { font-size: 18px; color: #ff7aa8; }

/* ===== hero slides with labels ===== */
.bars { gap: 10px; }
.bars button { width: auto; min-width: 72px; height: 30px; text-align: left; }
.bars button::before, .bars button i { top: 0; }
.bars button span { position: absolute; left: 0; top: 8px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); white-space: nowrap; transition: color .3s; }
.bars button.on span, .bars button:hover span { color: #fff; }
.tiles { grid-template-columns: repeat(3, 1fr); }
.tile { height: 190px; }
.nav-new { font-style: normal; font: 700 9px/1 var(--ui); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--hot); padding: 3px 4px; border-radius: 4px; }
@media (max-width: 1260px) { .nav-new { display: none; } }

/* ===== Chat Drama ===== */
.cd { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.cd-side { border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.cd-ta { min-height: 170px; font: 400 14px/1.6 'JetBrains Mono', ui-monospace, monospace; }
.cd-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cd-p { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-m); background: var(--panel2); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); }
.cd-p b { font-size: 14px; color: var(--c); }
.cd-p small { color: var(--dim); font-size: 12px; }
.cd-face { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--panel3)); border: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent); color: var(--c); font-size: 18px; }
.cd-face img { width: 100%; height: 100%; object-fit: cover; }
.cd-x { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--muted); }
.cd-x:hover { background: var(--panel3); color: var(--text); }
.cd-vibes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-vibe { text-align: left; padding: 12px; border-radius: var(--r-m); background: var(--panel2); border: 1px solid var(--line2); transition: border-color .2s, background .2s; display: grid; gap: 4px; }
.cd-vibe i { font-size: 20px; color: var(--muted); }
.cd-vibe b { font-size: 14px; }
.cd-vibe small { color: var(--dim); font-size: 12px; line-height: 1.35; }
.cd-vibe:hover { border-color: #4a5058; }
.cd-vibe.on { border-color: #ff4f9a; background: linear-gradient(135deg, rgba(255, 46, 99, .14), rgba(192, 77, 255, .08)); }
.cd-vibe.on i { color: #ff4f9a; }
.cd-opts { display: flex; gap: 24px; flex-wrap: wrap; }
.cd-stage { position: sticky; top: calc(var(--barh) + 16px); display: grid; place-items: center; padding: 24px; border-radius: var(--r-xl); background: radial-gradient(ellipse at 50% 0%, rgba(255, 46, 99, .18), transparent 60%), var(--bg2); border: 1px solid var(--line); }
.cd-phone { position: relative; width: 280px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #1d1420, #0e0c12); border: 6px solid #22242a; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); display: flex; flex-direction: column; transition: width .4s var(--ease), aspect-ratio .4s var(--ease); }
.cd-phone.wide { width: 380px; aspect-ratio: 16 / 9; border-radius: 16px; }
.cd-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.cd-live { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.cd-live i { color: #ff2e63; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.cd-feed { flex: 1; overflow: hidden; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.cd-b { display: flex; gap: 8px; align-items: flex-end; animation: bub .45s var(--spring) both; }
.cd-b.r { flex-direction: row-reverse; }
.cd-b.r div { text-align: right; }
@keyframes bub { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.cd-av { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c); color: #0a0b0d; font: 800 12px var(--disp); }
.cd-av img { width: 100%; height: 100%; object-fit: cover; }
.cd-b small { display: block; font-size: 10px; color: var(--c); font-weight: 700; margin: 0 4px 2px; }
.cd-b p { margin: 0; padding: 7px 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.35; max-width: 180px; display: inline-block; text-align: left; }
.cd-b.r p { background: color-mix(in srgb, var(--c) 35%, #2a2030); }
.cd-third { margin: 8px 10px 12px; padding: 8px 12px; border-radius: 8px; background: var(--hot); }
.cd-third b { display: block; font: 800 13px var(--disp); text-transform: uppercase; }
.cd-third small { font-size: 11px; opacity: .9; }

/* ===== Styles ===== */
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sty { position: relative; height: 230px; border-radius: var(--r-l); overflow: hidden; text-align: left; border: 1px solid var(--line); background: var(--panel); transition: transform .35s var(--ease), border-color .2s, box-shadow .3s; }
.sty:hover { transform: translateY(-3px); border-color: #4a5058; }
.sty.on { border-color: #ff4f9a; box-shadow: 0 0 0 1px #ff4f9a, 0 20px 50px -20px rgba(255, 46, 99, .6); }
.sty-art { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.sty:hover .sty-art { transform: scale(1.06); }
.sty-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(8, 9, 11, .92), transparent); }
.sty-txt b { display: block; font: 800 20px/1 var(--disp); font-variation-settings: 'wdth' 112; text-transform: uppercase; }
.sty-txt small { color: #c9ccd2; font-size: 12.5px; }
.sty-anime .sty-art { background: radial-gradient(circle at 70% 30%, #fff6 0 6%, transparent 7%), radial-gradient(circle at 30% 70%, #ffb3d1 0 18%, transparent 19%), linear-gradient(160deg, #6fb7ff, #ff8fc7 60%, #ffd1e8); }
.sty-cartoon .sty-art { background: radial-gradient(circle at 35% 40%, #ffe066 0 22%, #111 22.5% 24%, transparent 24.5%), radial-gradient(circle at 70% 60%, #ff5c5c 0 16%, #111 16.5% 18%, transparent 18.5%), #4fc3f7; }
.sty-clay .sty-art { background: radial-gradient(ellipse at 40% 45%, #f2a65a 0 20%, transparent 21%), radial-gradient(ellipse at 62% 55%, #7cc47f 0 16%, transparent 17%), radial-gradient(circle at 50% 120%, #a0522d, #6b3a1f 60%); filter: saturate(1.2); box-shadow: inset 0 -30px 60px rgba(0, 0, 0, .35); }
.sty-toon3d .sty-art { background: radial-gradient(circle at 50% 35%, #ffe3b3, transparent 40%), radial-gradient(circle at 30% 80%, #ff9f43 0 25%, transparent 26%), radial-gradient(circle at 75% 75%, #48dbfb 0 20%, transparent 21%), linear-gradient(180deg, #74b9ff, #a29bfe); }
.sty-comic .sty-art { background: radial-gradient(#111 22%, transparent 24%) 0 0 / 12px 12px, linear-gradient(135deg, #ffde00 0 50%, #ff3b3b 50%); }
.sty-pixel .sty-art { background: linear-gradient(90deg, rgba(0, 0, 0, .25) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(0deg, rgba(0, 0, 0, .25) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(180deg, #5c94fc 0 55%, #00a800 55% 70%, #c84c0c 70%); }
.sty-water .sty-art { background: radial-gradient(circle at 30% 35%, rgba(255, 120, 160, .7), transparent 35%), radial-gradient(circle at 70% 40%, rgba(120, 180, 255, .7), transparent 38%), radial-gradient(circle at 50% 75%, rgba(255, 210, 120, .7), transparent 40%), #f5efe6; }
.sty-sketch .sty-art { background: repeating-linear-gradient(45deg, rgba(40, 40, 40, .18) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, rgba(40, 40, 40, .12) 0 1px, transparent 1px 9px), #ecebe6; }
.sty-noir .sty-art { background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .16) 0 18px, transparent 18px 40px), radial-gradient(circle at 70% 30%, #777, #111 70%); }
.sty-sitcom .sty-art { background: linear-gradient(180deg, #e8b878 0 62%, #8b5a2b 62%), radial-gradient(circle at 50% 40%, #fff3d6, transparent 50%); filter: sepia(.3) saturate(1.2); }
.sty-game .sty-art { background: radial-gradient(circle at 50% 110%, #00e5ff55, transparent 50%), linear-gradient(180deg, #0f0c29, #302b63 60%, #24243e); box-shadow: inset 0 0 0 2px rgba(0, 229, 255, .25); }
.sty-puppet .sty-art { background: radial-gradient(ellipse at 50% 100%, #b22222 0 30%, transparent 31%), repeating-linear-gradient(90deg, #8b0000 0 14px, #a40000 14px 28px); }
@media (max-width: 1100px) { .cd { grid-template-columns: 1fr; } .cd-stage { position: static; } .cd-vibes { grid-template-columns: repeat(2, 1fr); } }

.hero h1 { font-size: clamp(42px, 5.4vw, 82px); }

.sty { height: auto; aspect-ratio: 4 / 5; }
.sty-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sty-txt { padding-top: 60px; background: linear-gradient(0deg, rgba(8, 9, 11, .94) 10%, rgba(8, 9, 11, .5) 60%, transparent); }

/* lighter controls in every composer so they read clearly on the dark dock */
.pill { background: #2a2e36; border-color: #3d434d; color: #fff; }
.pill:hover { background: #343944; border-color: #4d5460; }
.pill i { color: #d0d4da; }
.seg { background: #2a2e36; border-color: #3d434d; }
.seg button { color: #d0d4da; }
.seg button:hover { color: #fff; }
.ref.add { background: #2a2e36; border-color: #4d5460; color: #e6e8eb; }
.pill-th { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; margin-left: -4px; }
.pop .opt-th { width: 40px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

/* ===== no grey buttons: secondary buttons get a pink-violet edge ===== */
.btn.ghost, .btn.line { color: #fff; border: 1px solid transparent; background: linear-gradient(#17131b, #17131b) padding-box, linear-gradient(115deg, rgba(255, 46, 99, .75), rgba(192, 77, 255, .75)) border-box; }
.btn.ghost:hover, .btn.line:hover { background: linear-gradient(#22172a, #22172a) padding-box, var(--hot) border-box; box-shadow: 0 10px 30px -14px rgba(255, 46, 99, .7); }
.btn.ghost i, .btn.line i { color: #ff9cc0; }
.chip { background: #1d2027; border-color: #353a43; color: #e3e5e9; transition: color .15s, background .2s, border-color .15s, transform .15s; }
.chip:hover { border-color: #ff7aa8; color: #fff; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--hot); background-size: 220% 100%; color: #fff; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(255, 46, 99, .8); }
.chip.on small { opacity: .85; }
.seg .thumb { background: var(--hot); box-shadow: 0 6px 18px -8px rgba(255, 46, 99, .8); }
.seg button.on { color: #fff; }
.ibtn:hover { color: #ff9cc0; }
.lbl button:hover { color: #ff9cc0; }
.sec-h .more:hover { color: #ff9cc0; }
.foot-in a:hover { color: #ff9cc0; }
.ref.add:hover { border-color: #ff7aa8; color: #fff; }

/* ===== motion ===== */
.spark { position: fixed; z-index: 200; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 10px currentColor; }
.btn.hot { transition: transform .12s ease-out, box-shadow .25s, filter .2s, translate .25s var(--ease); }
.res img, .res video { transition: transform .9s var(--ease), filter .4s; }
.res:hover img, .res:hover video { transform: scale(1.04); }
.res.dev img, .res.dev video { animation: develop 1.4s var(--ease) both; }
@keyframes develop { from { filter: blur(22px) brightness(1.8) saturate(.4); transform: scale(1.08); } 60% { filter: blur(2px) brightness(1.1); } to { filter: none; transform: none; } }
.res.dev::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); background-size: 250% 100%; animation: devsweep 1.2s var(--ease) .3s both; }
@keyframes devsweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.wall .w { display: block; }
.wall .w-go { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: var(--r); background: var(--hot); color: #fff; font-weight: 600; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease); }
.wall .w:hover .w-go { opacity: 1; transform: none; }
.wall .w video { transition: transform 1s var(--ease); }
.wall .w:hover video { transform: scale(1.04); }
.marq a { font: 700 28px/1 var(--disp); font-variation-settings: 'wdth' 112; text-transform: uppercase; color: #3b4048; white-space: nowrap; transition: color .3s; }
.marq a:hover { color: #fff; }
.marq a b { color: var(--pink); margin-left: 56px; }
.card .media, .tile, .sty, .plan, .perk { will-change: transform; }
.perk { transition: transform .35s var(--ease), border-color .25s; }
.perk:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.idea:active, .cd-vibe:active, .sty:active, .tier:active { transform: scale(.98); }
.cd-vibe, .tier { transition: border-color .2s, background .2s, transform .15s; }
.lightbox .lb-stage img, .lightbox .lb-stage video { animation: lbin .55s var(--ease) both; }
@keyframes lbin { from { opacity: 0; transform: scale(.96); filter: blur(8px); } }

/* ===== photo picker ===== */
.mp { width: min(960px, calc(100vw - 48px)); max-height: min(780px, calc(100vh - 48px)); display: flex; flex-direction: column; padding: 26px 26px 0; }
.mp-h h2 { margin: 0; font: 800 28px/1 var(--disp); font-variation-settings: 'wdth' 112; text-transform: uppercase; }
.mp-h p { margin: 6px 0 16px; color: var(--muted); }
.mp-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.mp-drop { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border-radius: var(--r-l); border: 1.5px dashed rgba(255, 79, 154, .55); background: linear-gradient(135deg, rgba(255, 46, 99, .08), rgba(192, 77, 255, .06)); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.mp-drop:hover, .mp-drop.over { border-color: #ff4f9a; background: linear-gradient(135deg, rgba(255, 46, 99, .16), rgba(192, 77, 255, .12)); transform: translateY(-1px); }
.mp-drop i { grid-row: span 2; font-size: 30px; color: #ff7aa8; }
.mp-drop b { font-size: 15px; }
.mp-drop small { color: var(--muted); }
.mp-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding: 14px 2px 16px; align-content: start; min-height: 180px; }
.mp-i { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--panel); border: 2px solid transparent; transition: border-color .15s, transform .2s var(--ease); animation: mpin .45s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes mpin { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.mp-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mp-i:hover img { transform: scale(1.05); }
.mp-i:hover { border-color: #5a616b; }
.mp-i.on { border-color: #ff4f9a; box-shadow: 0 10px 26px -12px rgba(255, 46, 99, .8); }
.mp-n { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--hot); color: #fff; font: 800 12px var(--disp); animation: bump .35s var(--spring); }
.mp-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 40px 0; }
.mp-f { display: flex; align-items: center; gap: 10px; padding: 14px 0 20px; border-top: 1px solid var(--line); }
.mp-f span { margin-right: auto; color: var(--muted); }
.btn.hot[disabled] { filter: grayscale(.6) brightness(.6); }

.scrim.top { z-index: 90; }
.dlg.top { z-index: 91; }

/* toasts top right, under the bar (never over the composer) */
.toasts { left: auto; right: 20px; bottom: auto; top: calc(var(--barh) + 14px); transform: none; justify-items: end; }
@keyframes tin { from { opacity: 0; transform: translateX(16px) scale(.97); } }
@keyframes tout { to { opacity: 0; transform: translateX(10px); } }
/* controls get a warm plum tint instead of grey */
.pill { background: #2a2230; border-color: rgba(255, 122, 168, .32); }
.pill:hover { background: #352a3c; border-color: rgba(255, 122, 168, .6); }
.pill i { color: #ff9cc0; }
.seg { background: #2a2230; border-color: rgba(255, 122, 168, .32); }
.chip { background: #211b25; border-color: rgba(255, 122, 168, .22); }
.ref.add { background: #2a2230; border-color: rgba(255, 122, 168, .45); }
.cred { background: #1d1820; border-color: rgba(255, 122, 168, .28); }
.ava { background: linear-gradient(135deg, #ff2e63, #c04dff); border: 0; color: #fff; }

/* ===== review round 1 ===== */
/* idea tiles with real pictures */
.ideas { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ideas.video { grid-template-columns: repeat(3, 1fr); }
.idea.pic { position: relative; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255, 122, 168, .18); background: #120f15; animation: fadeup .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.idea.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.idea.pic:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 0 0 1px #ff4f9a, 0 20px 40px -18px rgba(255, 46, 99, .7); }
.idea.pic:hover img { transform: scale(1.07); filter: brightness(.8); }
.idea-t { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(10, 11, 13, .94) 55%); display: grid; gap: 4px; }
.idea-t b { display: flex; align-items: center; gap: 8px; font: 700 15px var(--ui); color: #fff; }
.idea-t b i { color: #ff7aa8; }
.idea-p { max-height: 0; overflow: hidden; color: #d7dade; font-size: 12.5px; line-height: 1.4; transition: max-height .4s var(--ease); }
.idea.pic:hover .idea-p { max-height: 60px; }
.idea-t em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; width: max-content; font-size: 12px; font-weight: 700; color: #ff9cc0; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s var(--ease); }
.idea.pic:hover .idea-t em { opacity: 1; transform: none; }
.idea.pic::after { display: none; }
.sec-h p { margin: 0 0 2px; }
/* studio heroes */
.empty-hero { background: #0d0a10; }
.empty-hero::after { background: radial-gradient(600px circle at 50% 55%, rgba(192, 77, 255, .28), transparent 70%), radial-gradient(ellipse at center, rgba(10, 11, 13, .25), rgba(10, 11, 13, .9) 78%); }
.eh-c { position: relative; z-index: 1; }
.eh-lanes { position: absolute; inset: -20px 0; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: 14px; transform: rotate(-4deg) scale(1.08); opacity: .75; }
.eh-lanes .lane { display: flex; gap: 14px; width: max-content; animation: film 70s linear infinite; }
.eh-lanes .lane.r { animation-direction: reverse; animation-duration: 80s; }
.eh-lanes img { width: 230px; height: 172px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.eh-panels { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; padding: 10px; }
.eh-panels > div { border-radius: 14px; overflow: hidden; }
.eh-panels video { position: static; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.empty-hero video { opacity: .8; }
/* explore tiles */
.tile { border: 0; }
.tile::before { content: ''; }
.tile .tile-in::after { content: ''; position: absolute; left: -18px; right: -18px; bottom: -16px; height: 2px; background: var(--hot); opacity: .9; }
.tile video, .tile img.bg { opacity: .78; }
.tile:hover video, .tile:hover img.bg { opacity: 1; }
.kb { animation: kb 14s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -1%); } }
/* promo */
.promo { height: 200px; background: linear-gradient(115deg, rgba(255, 46, 99, .22), rgba(192, 77, 255, .18) 50%, rgba(10, 11, 13, .95)), #0d0b10; background-size: 200% 100%; animation: hotshift 9s ease-in-out infinite; border: 0; }
.promo::after { background: linear-gradient(90deg, rgba(11, 10, 14, .85) 0%, rgba(11, 10, 14, .5) 50%, transparent 100%); }
.promo .strip { opacity: .22; }
.promo-c { position: relative; z-index: 1; }
.promo-clock { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 10px; border-radius: 99px; background: rgba(255, 46, 99, .18); border: 1px solid rgba(255, 122, 168, .45); color: #ffc2d6; font-size: 12.5px; font-weight: 600; }
.promo-clock b { font: 800 14px var(--disp); color: #fff; font-variant-numeric: tabular-nums; }
.promo-pics { position: relative; z-index: 1; margin-left: auto; display: flex; align-items: center; }
.promo-pics img { width: 108px; height: 140px; object-fit: cover; border-radius: 12px; margin-left: -26px; transform: rotate(var(--r)); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); border: 2px solid rgba(255, 255, 255, .12); transition: transform .5s var(--spring); }
.promo:hover .promo-pics img { transform: rotate(calc(var(--r) * 1.6)) translateY(-6px); }
.promo .btn { margin-left: 28px; }
/* closing call to action */
.closer { position: relative; height: 340px; border-radius: var(--r-xl); overflow: hidden; display: grid; place-items: center; text-align: center; background: radial-gradient(700px circle at 50% 120%, rgba(255, 46, 99, .45), transparent 65%), #0e0b11; isolation: isolate; }
.closer-pics { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: center; align-items: center; gap: 14px; }
.closer-pics img { width: 150px; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 14px; opacity: .35; transform: translateY(calc((var(--i) - 3) * (var(--i) - 3) * 6px)) rotate(calc((var(--i) - 3) * 4deg)); }
.closer-c h2 { margin: 0; font: 800 clamp(40px, 5vw, 72px)/.95 var(--disp); font-variation-settings: 'wdth' 112; text-transform: uppercase; }
.closer-c p { color: #d7dade; margin: 12px 0 22px; font-size: 16px; }
/* inspiration as an even grid */
.wall.grid9 { columns: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.wall.grid9 .w { margin: 0; aspect-ratio: 9 / 16; }
.wall.grid9 .w video { width: 100%; height: 100%; object-fit: cover; }
/* landscape clips: a bright, colorful blur behind instead of grey */
.card .media .fitbg { filter: blur(20px) brightness(.9) saturate(1.6); }
/* library + account */
.ghosts { text-align: center; padding: 50px 20px 60px; border-radius: var(--r-xl); background: radial-gradient(600px circle at 50% 0%, rgba(192, 77, 255, .18), transparent 70%), #0e0c11; border: 1px solid rgba(255, 122, 168, .15); }
.ghost-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.ghost-card { position: relative; width: 130px; aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; transform: rotate(calc((var(--i) - 1) * 6deg)) translateY(calc(var(--i) * 0px)); animation: floaty 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.6s); }
.ghost-card img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(1.3) brightness(.6); }
.ghost-card span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #ff9cc0; }
@keyframes floaty { 50% { translate: 0 -8px; } }
.ghosts h3 { margin: 0 0 6px; font: 800 26px var(--disp); font-variation-settings: 'wdth' 112; text-transform: uppercase; }
.ghosts p { color: var(--muted); margin: 0 0 18px; }
.box { background: linear-gradient(180deg, #17121b, #121418); border-color: rgba(255, 122, 168, .16); }
.ring { --p: 50; width: 200px; aspect-ratio: 1; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(closest-side, #141118 82%, transparent 83% 100%), conic-gradient(#ff2e63, #c04dff calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0); animation: ringin 1.2s var(--ease) both; }
@keyframes ringin { from { transform: rotate(-90deg) scale(.9); opacity: 0; } }
.ring .bal { font-size: 48px; }
.acct-r { display: grid; gap: 16px; }
.recent { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.recent a { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--panel2); }
.recent img, .recent video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.recent a:hover img, .recent a:hover video { transform: scale(1.06); }
.noplan { display: flex; align-items: center; gap: 14px; }
.noplan b { display: block; font-size: 15px; }
.noplan small { color: var(--muted); }
.noplan .btn { margin-left: auto; }
/* model picker */
.pop .opt .mic { color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #0a0b0d)); box-shadow: 0 6px 16px -8px var(--c); font-size: 17px; }
.mtag { font-style: normal; display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 99px; font: 700 10.5px var(--ui); color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); vertical-align: 1px; }
.pop .opt.on { background: linear-gradient(90deg, rgba(255, 46, 99, .16), rgba(192, 77, 255, .06)); }
/* pricing */
.pr-hero .film { opacity: .7; }
.cost-c { padding-top: 0; overflow: hidden; }
.cost-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 -22px 16px; height: 86px; }
.cost-pics img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.cost-c:hover .cost-pics img { opacity: 1; }
.qa.open { border-left: 2px solid #ff4f9a; padding-left: 14px; background: linear-gradient(90deg, rgba(255, 46, 99, .07), transparent 40%); }
.qa { transition: padding .3s var(--ease), background .3s; }
/* recast editor */
.ed-stage .bgblur { filter: blur(40px) brightness(.75) saturate(1.5); }
.ed-drop { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-m); background: linear-gradient(135deg, rgba(255, 46, 99, .1), rgba(192, 77, 255, .08)); border: 1.5px dashed rgba(255, 79, 154, .6); animation: dashpulse 2.4s ease-in-out infinite; }
.ed-drop i { grid-row: span 2; font-size: 34px; color: #ff7aa8; }
.ed-drop b { font-size: 15px; }
.ed-drop small { color: var(--muted); }
.ed-drop:hover { border-color: #ff4f9a; background: linear-gradient(135deg, rgba(255, 46, 99, .18), rgba(192, 77, 255, .14)); }
@keyframes dashpulse { 50% { border-color: rgba(192, 77, 255, .7); } }
.tier { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.tier > i { grid-row: span 2; font-size: 22px; color: #ff7aa8; }
/* chat + styles */
.cd-ta { font: 500 15px/1.65 var(--ui); background: #18131c; border-color: rgba(255, 122, 168, .3); }
.wrap[style*="padding-bottom:220px"] { padding-bottom: 280px !important; }

/* ===== activity tray ===== */
#tray { position: fixed; z-index: 70; left: 20px; bottom: 20px; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
body.studio #tray { bottom: 20px; }
.tray-pill { --p: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 6px; border-radius: 99px; background: #1b1520; border: 1px solid rgba(255, 122, 168, .35); color: #fff; font-weight: 600; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9); transition: transform .2s var(--spring), border-color .2s; position: relative; }
.tray-pill:hover { transform: translateY(-2px); border-color: #ff4f9a; }
.tray-pill.busy { box-shadow: 0 16px 40px -14px rgba(255, 46, 99, .55); }
.tray-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #1b1520 76%, transparent 78% 100%), conic-gradient(#ff2e63, #c04dff calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.tray-pill.busy .tray-ring { animation: none; }
.tray-ring i { font: 800 10px var(--disp); font-style: normal; color: #fff; }
.tray-ring i.ph-fill { font-size: 14px; color: #3ddc97; }
.tray-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff2e63; box-shadow: 0 0 0 3px #1b1520; }
.tray-panel { width: 340px; padding: 8px; border-radius: var(--r-l); background: #17121b; border: 1px solid rgba(255, 122, 168, .25); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); animation: pop .25s var(--ease); transform-origin: bottom left; }
.tray-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
.tray-h b { font: 800 14px var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.tray-h a { color: #ff9cc0; font-size: 13px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.tray-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: var(--r); text-align: left; color: #fff; }
.tray-row:hover { background: rgba(255, 46, 99, .1); }
.tray-row.wait { cursor: default; }
.tray-row img, .tray-ph { width: 42px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #241c2a; display: grid; place-items: center; color: #ff7aa8; }
.tray-t { flex: 1; min-width: 0; }
.tray-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-t small { color: var(--muted); font-size: 12px; }
.tray-t .prog { margin-top: 6px; }
.tray-t .prog i { background: var(--hot); }
.tray-row > i { color: #ff9cc0; }
.tray-row .spin { width: 14px; height: 14px; color: #ff7aa8; }
/* the cooking card: a slow brand-colored aurora, a breathing spark, a gradient progress line */
.res.cook { background: radial-gradient(120% 80% at 20% 0%, rgba(255, 46, 99, .28), transparent 60%), radial-gradient(120% 80% at 90% 100%, rgba(192, 77, 255, .3), transparent 60%), #120e15; background-size: 200% 200%; animation: resin .6s var(--ease) both, cookglow 6s ease-in-out infinite; border: 1px solid rgba(255, 122, 168, .22); }
@keyframes cookglow { 50% { background-position: 100% 100%; } }
.res.cook .scan { background: linear-gradient(180deg, transparent, rgba(255, 122, 168, .14), transparent); }
.cook-orb { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--hot); box-shadow: 0 0 40px rgba(255, 46, 99, .6); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 70px rgba(192, 77, 255, .7); } }
.res.cook .prog i { background: var(--hot); }

/* ===== review round 2 ===== */
.soon { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 46, 99, .14); border: 1px solid rgba(255, 122, 168, .5); color: #ffc2d6; font-weight: 700; font-size: 12.5px; align-self: center; margin-bottom: 4px; }
.soon i { color: #ff7aa8; }
.cd-vibe.pic { position: relative; padding: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255, 122, 168, .18); display: block; }
.cd-vibe.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cd-vibe.pic:hover img { transform: scale(1.06); }
.cdv-t { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(10, 11, 13, .92) 55%); display: grid; gap: 2px; text-align: left; }
.cdv-t b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #fff; }
.cdv-t b i { color: #ff7aa8; font-size: 16px; }
.cdv-t small { color: #cfd2d8; font-size: 11.5px; line-height: 1.3; }
.cd-vibe.pic.on { border-color: transparent; box-shadow: 0 0 0 2px #ff4f9a, 0 14px 34px -14px rgba(255, 46, 99, .8); }
.cd-vibe.pic.on::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--hot) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.lbl-r { text-transform: none; letter-spacing: 0; }
.lbl-r .seg button { height: 22px; padding: 0 8px; font-size: 12px; }
.slot .face-sil { position: absolute; font-size: 54px; color: rgba(255, 122, 168, .22); top: 14px; }
.slot:not(:has(img)) { border: 1.5px dashed rgba(255, 79, 154, .55); background: linear-gradient(160deg, rgba(255, 46, 99, .08), rgba(192, 77, 255, .06)); }
.slot .plus { margin-top: 26px; }
.ed-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45)); }
/* pricing */
.cost-pics { grid-template-rows: 86px; height: 86px; overflow: hidden; }
.cost-pics img { height: 86px; }
.pr-hero .film { opacity: .85; }
.pr-hero::after { background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 40%), rgba(12, 13, 16, .15), transparent 100%), radial-gradient(700px circle at 50% 45%, rgba(192, 77, 255, .22), transparent 70%), linear-gradient(rgba(12, 13, 16, .55), rgba(12, 13, 16, .78)); }
/* studio: tiles never sit under the bar */
.ideas.video { grid-template-columns: repeat(3, 1fr); }
.ideas.video .idea.pic { aspect-ratio: 16 / 9; }
.studio-pg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 5; pointer-events: none; background: linear-gradient(transparent, #0a0b0d 62%); }
.feed { padding-bottom: 300px; }
.eh-panels { gap: 12px; padding: 0; }
.eh-panels video { opacity: .95; }
.empty-hero.eh-video::after { background: radial-gradient(600px circle at 50% 55%, rgba(192, 77, 255, .3), transparent 70%), linear-gradient(rgba(10, 11, 13, .3), rgba(10, 11, 13, .55)); }
/* picker guide */
.mp-guide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp-guide > div { padding: 14px; border-radius: var(--r-l); background: #141118; border: 1px solid var(--line); }
.mp-guide b { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 10px; }
.mp-guide b.ok i { color: #3ddc97; } .mp-guide b.no i { color: #ff5d5d; }
.mg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mg-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.mg-row figure { margin: 0; position: relative; }
.mg-row figure::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 93, 93, .7); }
.mg-row figcaption { font-size: 11.5px; color: #ffb3b3; margin-top: 4px; text-align: center; }
.mp-guide small { display: block; margin-top: 8px; color: var(--muted); }
.mp-drop { min-height: 110px; }
/* account */
.ring { width: 220px; }
.ring .bal { font-size: 42px; }
.recent.try a { position: relative; }
.recent.try span { position: absolute; inset: auto 6px 6px 6px; display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; border-radius: 7px; background: var(--hot); color: #fff; font-size: 11.5px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease); }
.recent.try a:hover span { opacity: 1; transform: none; }
/* explore */
.marq a { color: rgba(255, 255, 255, .72); -webkit-text-stroke: 0; }
.marq a:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .6); }
.marq a:hover { color: #fff; -webkit-text-stroke: 0; }
.closer-pics { align-items: flex-end; padding-bottom: 0; }
.closer-pics img { opacity: .28; transform: translateY(calc(40px + (var(--i) - 3) * (var(--i) - 3) * 8px)) rotate(calc((var(--i) - 3) * 5deg)); }
.closer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at 50% 45%, rgba(14, 11, 17, .85), transparent 75%); }

/* ===== review round 3 ===== */
.lb-stage { position: relative; }
.lb-fill { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none !important; max-height: none !important; object-fit: cover; filter: blur(40px) brightness(.45) saturate(1.4); }
.lb-stage .lb-main, .lb-stage video { position: relative; z-index: 1; }
.lb-side h3 { text-transform: none; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.lb-refs span { display: block; color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.lb-refs div { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-refs img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 122, 168, .3); }
.results.mixed { grid-template-columns: repeat(4, 1fr); align-items: start; }
.results.mixed.video { grid-template-columns: repeat(3, 1fr); }
.results.mixed .idea.pic { aspect-ratio: auto; height: 100%; min-height: 200px; }
.feed-h p { margin: 0 0 0 auto; color: var(--dim); font-size: 13px; }
.res.cook .prog { height: 3px; background: rgba(255, 255, 255, .12); }
.res.cook .prog i { background: linear-gradient(90deg, #ff2e63, #c04dff, #ff7aa8); background-size: 200% 100%; animation: progshim 1.6s linear infinite; }
@keyframes progshim { to { background-position: -200% 0; } }
.res.cook .cook-in small { color: #cfd2d8; }
.res.fail { border: 1px solid rgba(255, 93, 93, .35); background: radial-gradient(120% 80% at 50% 0%, rgba(255, 93, 93, .12), transparent 60%), #120e12; color: #d7dade; }
.res.fail p { margin: 10px 0 4px; color: #fff; font-weight: 700; }
.fail-i { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 93, 93, .16); color: #ff8a8a; font-size: 20px; }
.res.fail .fail-i i { color: #ff8a8a; font-size: 20px; }
.fail-acts { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
/* activity in the top bar */
#trayNav:empty { display: none; }
#trayNav .tray-pill { height: 36px; padding: 0 12px 0 4px; gap: 8px; box-shadow: none; background: #1d1820; border-color: rgba(255, 122, 168, .28); font-size: 13px; }
#trayNav .tray-ring { width: 28px; height: 28px; background: radial-gradient(closest-side, #1d1820 74%, transparent 76% 100%), conic-gradient(#ff2e63, #c04dff calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
#trayNav .tray-pill:not(.busy) .tray-ring { background: none; }
#trayNav .tray-pill:not(.busy):not(:has(span:not(.tray-ring))) { padding: 0 4px; width: 36px; justify-content: center; }
#trayNav .tray-ring i { font-size: 11px; }
#trayNav .tray-ring i.ph { font-size: 16px; color: #ff9cc0; }
#trayNav .tray-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; transform-origin: top right; }
#trayNav .tray-dot { top: 2px; right: 2px; }
/* credits change */
.cred { position: relative; }
.cr-float { position: absolute; right: 8px; top: 2px; font: 800 13px var(--disp); font-style: normal; pointer-events: none; animation: crfloat 1.2s var(--ease) forwards; }
.cr-float.down { color: #ff7aa8; } .cr-float.up { color: #3ddc97; }
@keyframes crfloat { from { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-26px); } }
/* nav "soon" */
.nav-soon { font-style: normal; font: 700 9px/1 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: #ffb3cf; border: 1px solid rgba(255, 122, 168, .5); padding: 2px 4px; border-radius: 4px; }
@media (max-width: 1260px) { .nav-soon { display: none; } }
/* recast editor */
.ed-stage video.bgblur { object-fit: cover; filter: blur(36px) brightness(.6) saturate(1.5); transform: scale(1.15); }
.ed-scroll { padding-bottom: 4px; }
.ed-foot { padding-top: 12px; }
/* video hero: one overlay for all panels */
.eh-panels video { opacity: 1; filter: saturate(1.25); }
/* account */
.try-h { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.recent.try { gap: 10px; }
.recent.try a { aspect-ratio: auto; background: none; overflow: visible; }
.recent.try img { aspect-ratio: 3 / 4; border-radius: 10px; }
.recent.try b { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent.try span { bottom: 28px; }
/* not enough credits */
.nc { width: 520px; padding: 30px 28px 26px; text-align: center; }
.nc-i { width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--hot); font-size: 26px; color: #fff; box-shadow: 0 14px 30px -10px rgba(255, 46, 99, .8); }
.nc h2 { margin: 14px 0 6px; font: 800 28px var(--disp); font-variation-settings: 'wdth' 112; text-transform: uppercase; }
.nc p { color: var(--muted); margin: 0 0 18px; }
.nc p b { color: #fff; }
.nc-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.nc-p { position: relative; padding: 16px 8px 12px; border-radius: var(--r-m); background: #1a1520; border: 1px solid rgba(255, 122, 168, .25); display: grid; gap: 2px; transition: transform .2s var(--ease), border-color .2s; }
.nc-p:hover { transform: translateY(-2px); border-color: #ff4f9a; }
.nc-p b { font: 800 24px var(--disp); }
.nc-p small { color: var(--muted); }
.nc-p span { margin-top: 6px; font-weight: 700; color: #ff9cc0; }
.nc-p.best { background: linear-gradient(160deg, rgba(255, 46, 99, .22), rgba(192, 77, 255, .16)); border-color: #ff4f9a; }
.nc-p em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font: 700 10px/1 var(--ui); text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: var(--hot); color: #fff; white-space: nowrap; }
.lightbox .lb-stage .lb-fill { object-fit: cover; animation: none; filter: blur(40px) brightness(.45) saturate(1.4); }
.lb-acts { margin-top: 6px; }
.tag.soon-tag { background: rgba(10, 11, 13, .7); color: #ffc2d6; border: 1px solid rgba(255, 122, 168, .6); }
.acct-r .box { padding-bottom: 26px; }
.recent.try b { margin-top: 8px; }

/* ===== Chat Drama: a real iPhone Messages screen (dark mode) ===== */
.cd-me { grid-column: 1 / -1; justify-self: start; margin-top: 8px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #ffc2d6; border: 1px solid rgba(255, 122, 168, .4); }
.cd-me.on { background: #0b84fe; border-color: #0b84fe; color: #fff; }
.cd-p { grid-template-rows: auto auto auto; }
.cd-stage { padding: 34px 24px; }
.cd-phone { --blue: #0b84fe; width: 300px; aspect-ratio: auto; height: 640px; border-radius: 52px; background: #000; border: 0; padding: 0; box-shadow: 0 0 0 2px #2c2c30, 0 0 0 9px #0e0e10, 0 0 0 10px #3a3a40, 0 40px 90px -20px rgba(0, 0, 0, .95), 0 0 80px -10px rgba(255, 46, 99, .25); font-family: -apple-system, 'SF Pro Text', 'Instrument Sans', system-ui, sans-serif; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.cd-phone.sms { --blue: #30d158; }
.im-show { position: absolute; top: -38px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; white-space: nowrap; font: 700 11px var(--ui); text-transform: uppercase; letter-spacing: .08em; color: #ffc2d6; }
.cd-phone { overflow: visible; }
.cd-phone > :not(.im-show) { }
.im-show span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--hot); color: #fff; }
.im-show span i { animation: blink 1.2s ease-in-out infinite; }
.im-show em { font-style: normal; color: var(--muted); }
.cd-phone::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #000; z-index: 0; }
.cd-phone > * { position: relative; z-index: 1; }
.im-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 3; box-shadow: 0 0 0 1px #111; }
.im-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0 34px; height: 46px; color: #fff; font-size: 14px; }
.im-status b { font-weight: 600; letter-spacing: -.01em; }
.im-status span { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.im-batt { width: 24px; height: 12px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 4px; padding: 1.5px; display: inline-flex; position: relative; }
.im-batt::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .5); }
.im-batt i { width: 80%; height: 100%; background: #fff; border-radius: 1.5px; }
.im-head { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; padding: 4px 10px 10px; background: rgba(28, 28, 30, .94); border-bottom: .5px solid rgba(255, 255, 255, .12); }
.im-back { display: flex; align-items: center; color: var(--blue, #0b84fe); font-size: 20px; }
.cd-phone .im-back, .cd-phone .im-video { color: #0b84fe; }
.im-back em { font-style: normal; font-size: 12px; font-weight: 600; background: #0b84fe; color: #fff; border-radius: 99px; padding: 1px 6px; margin-left: -2px; }
.im-group { display: grid; justify-items: center; gap: 3px; }
.im-avs { display: flex; }
.im-avs .im-av { margin-left: -8px; box-shadow: 0 0 0 2px #1c1c1e; }
.im-avs .im-av:first-child { margin-left: 0; }
.im-group b { font-size: 11px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 2px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-group b i { font-size: 9px; color: #8e8e93; }
.im-video { justify-self: end; font-size: 22px; padding-right: 6px; }
.im-av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; font: 600 12px -apple-system, system-ui, sans-serif; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.im-av.sm { width: 30px; height: 30px; font-size: 13px; }
.im-av img { width: 100%; height: 100%; object-fit: cover; }
.im-av.ghost { visibility: hidden; }
.im-feed { flex: 1; overflow: hidden; padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.im-time { text-align: center; color: #8e8e93; font-size: 11px; margin: 2px 0 10px; }
.im-row { display: flex; align-items: flex-end; gap: 6px; animation: imin .32s cubic-bezier(.2, .9, .3, 1.1) both; }
.im-row.first { margin-top: 8px; }
.im-row.me { justify-content: flex-end; }
@keyframes imin { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.im-col { display: flex; flex-direction: column; max-width: 72%; }
.im-row.me .im-col { align-items: flex-end; }
.im-col small { color: #8e8e93; font-size: 10.5px; margin: 0 0 2px 10px; }
.im-b { position: relative; margin: 0; padding: 7px 11px; border-radius: 17px; font-size: 13.5px; line-height: 1.3; color: #fff; background: #26252a; word-wrap: break-word; }
.im-row.me .im-b { background: var(--blue); }
.cd-phone.sms .im-row.me .im-b { background: #30d158; }
.cd-phone:not(.sms) .im-row.me .im-b { background: linear-gradient(180deg, #2c96ff, #0a7cff); }
/* the little tail on the last bubble of each run */
.im-row.last .im-b::before { content: ''; position: absolute; bottom: 0; width: 14px; height: 16px; }
.im-row:not(.me).last .im-b::before { left: -5px; background: #26252a; border-bottom-right-radius: 14px 12px; }
.im-row:not(.me).last .im-b::after { content: ''; position: absolute; bottom: 0; left: -10px; width: 10px; height: 16px; background: #000; border-bottom-right-radius: 10px; }
.im-row.me.last .im-b::before { right: -5px; background: #0a7cff; border-bottom-left-radius: 14px 12px; }
.cd-phone.sms .im-row.me.last .im-b::before { background: #30d158; }
.im-row.me.last .im-b::after { content: ''; position: absolute; bottom: 0; right: -10px; width: 10px; height: 16px; background: #000; border-bottom-left-radius: 10px; }
.im-deliv { text-align: right; color: #8e8e93; font-size: 10.5px; font-weight: 600; margin: 2px 4px 4px; animation: imin .3s ease both; }
.im-typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.im-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: dots 1.2s ease-in-out infinite; }
.im-typing i:nth-child(2) { animation-delay: .15s; } .im-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.im-input { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; }
.im-plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #26252a; color: #8e8e93; font-size: 16px; }
.im-field { flex: 1; height: 32px; border-radius: 99px; border: 1px solid #3a3a3c; color: #6e6e73; font-size: 13px; display: flex; align-items: center; padding: 0 12px; }
.im-mic { color: #8e8e93; font-size: 18px; }
.im-home { width: 110px; height: 4px; border-radius: 4px; background: #fff; margin: 4px auto 8px; opacity: .9; }

/* ===== plans: one price table, the deal column lifted and lit ===== */
.ptab { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); max-width: 1120px; margin: 44px auto 0; border-radius: 26px; background: #0d0c10; border: 1px solid #221e27; }
.pcol { position: relative; padding: 34px 30px 30px; border-left: 1px solid #221e27; animation: pcin .8s var(--ease) both; animation-delay: var(--d); isolation: isolate; }
.pcol:first-child { border-left: 0; }
@keyframes pcin { from { opacity: 0; transform: translateY(22px); } }
.pcol::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .06), transparent 60%); }
.pcol:hover::after { opacity: 1; }
.pc-name { display: flex; align-items: center; gap: 10px; font: 700 13px var(--ui); text-transform: uppercase; letter-spacing: .16em; color: #b9bcc3; }
.pc-name em { font-style: normal; font-size: 10px; letter-spacing: .08em; color: #d7dade; border: 1px solid #3a3640; border-radius: 99px; padding: 3px 8px; }
.pc-credits { margin: 26px 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-credits b { font: 800 60px/.9 var(--disp); font-variation-settings: 'wdth' 112; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.pc-credits span { color: #9ea3ab; font-size: 14px; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.pc-price .amt { font: 700 30px/1 var(--disp); letter-spacing: -.02em; display: inline-flex; overflow: hidden; }
.pc-price .amt .dg.roll { animation: roll .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 200ms); }
.pc-price .per { color: #9ea3ab; }
.pc-was { min-height: 20px; margin: 6px 0 22px; color: #8a909a; font-size: 13px; }
.pc-was s { color: #6f7580; margin-right: 4px; }
.pc-feats { list-style: none; margin: 24px 0 0; padding: 0; }
.pc-feats li { padding: 11px 0; border-top: 1px solid #1f1c24; color: #c3c6cc; font-size: 14px; }
.pcol .btn.line { background: linear-gradient(#121016, #121016) padding-box, linear-gradient(115deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1)) border-box; }
.pcol .btn.line:hover { background: linear-gradient(#1b1720, #1b1720) padding-box, var(--hot) border-box; }
.pcol .btn.line i { color: inherit; }
/* the deal */
.pcol.deal { z-index: 2; margin: -26px -2px; padding-top: 64px; padding-bottom: 54px; border-left: 0; border-radius: 26px; background: radial-gradient(130% 70% at 50% 0%, rgba(255, 46, 99, .22), transparent 60%), radial-gradient(120% 60% at 50% 100%, rgba(192, 77, 255, .2), transparent 65%), #150f17; box-shadow: 0 40px 100px -30px rgba(255, 46, 99, .6), 0 0 0 1px rgba(255, 122, 168, .25); }
.pcol.deal + .pcol { border-left: 0; }
.pcol.deal::before { content: ''; position: absolute; inset: -1.5px; z-index: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--ang), transparent 0 55%, #ff2e63 70%, #ffd1e2 75%, #c04dff 82%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinang 4s linear infinite; }
.pc-halo { position: absolute; z-index: -1; left: 10%; right: 10%; top: 30%; bottom: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 46, 99, .55), rgba(192, 77, 255, .25) 60%, transparent); filter: blur(40px); opacity: .55; animation: halo 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes halo { 50% { opacity: .85; transform: scale(1.08); } }
.pc-crown { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 99px; background: var(--hot); background-size: 220% 100%; animation: hotshift 5s ease-in-out infinite; color: #fff; font: 800 11.5px var(--ui); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; box-shadow: 0 10px 30px -8px rgba(255, 46, 99, .8); }
.pc-crown i { font-size: 10px; }
.pc-embers { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.pc-embers i { position: absolute; left: var(--x); bottom: -6px; width: 3px; height: 3px; border-radius: 50%; background: #ffb3cf; box-shadow: 0 0 6px #ff4f9a; opacity: 0; animation: ember var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes ember { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(12px, -520px); } }
.pc-in { position: relative; z-index: 1; }
.pcol.deal .pc-name { color: #ffc2d6; }
.pcol.deal .pc-credits b { font-size: 70px; text-shadow: 0 0 40px rgba(255, 79, 154, .45); }
.pcol.deal .pc-credits span { color: #ffc2d6; }
.pcol.deal .pc-feats li { border-top-color: rgba(255, 122, 168, .16); color: #e3e5e9; }
.pcol.deal .pc-price .amt { font-size: 34px; }
/* light sweep across the deal's numbers every few seconds */
.pcol.deal .pc-credits { position: relative; }
.pcol.deal .pc-credits::after { content: ''; position: absolute; inset: -6px -10px; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); background-size: 250% 100%; animation: dealsweep 5s var(--ease-io) infinite; mix-blend-mode: overlay; }
@keyframes dealsweep { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -130% 0; } }
@media (max-width: 1000px) { .ptab { grid-template-columns: 1fr; } .pcol { border-left: 0; border-top: 1px solid #221e27; } .pcol.deal { margin: 14px 0; } }
.pcol.deal .pc-credits::after { display: none; }
.pc-credits { flex-direction: column; align-items: flex-start; gap: 8px; }
.pcol.deal .pc-credits b { animation: dealpulse 4s ease-in-out infinite; }
@keyframes dealpulse { 50% { text-shadow: 0 0 60px rgba(255, 79, 154, .75), 0 0 2px rgba(255, 255, 255, .4); } }

/* ===== deal ticket: a coupon with a tear-off stub, slides in from the bottom right ===== */
.ticket { position: fixed; z-index: 90; right: 24px; bottom: 24px; width: 440px; max-width: calc(100vw - 32px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .65)) drop-shadow(0 10px 40px rgba(255, 46, 99, .28)); animation: tk-in .7s var(--spring) both; transform-origin: 80% 100%; }
.ticket.out { animation: tk-out .28s ease-in forwards; }
@keyframes tk-in { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(.92); } }
@keyframes tk-out { to { opacity: 0; transform: translateY(24px) scale(.96); } }
.tk-in { position: relative; display: grid; grid-template-columns: 124px 1fr; border-radius: 18px; overflow: hidden;
  background: linear-gradient(#141016, #141016) padding-box, conic-gradient(from var(--ang), #ff2e63, #ffd1e2, #c04dff, #ff2e63) border-box; border: 1.5px solid transparent; animation: spinang 5s linear infinite;
  /* the two half-moon notches where a ticket tears */
  -webkit-mask: radial-gradient(circle 11px at 124px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 124px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 124px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 124px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tk-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 18px 8px; background: var(--hot); background-size: 220% 100%; animation: hotshift 6s ease-in-out infinite; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.tk-stub::after { content: ''; position: absolute; right: -1px; top: 14px; bottom: 14px; border-right: 2px dashed rgba(20, 16, 22, .85); }
.tk-pct { font: 800 44px/0.95 var(--disp); font-variation-settings: 'wdth' 112; letter-spacing: -.03em; }
.tk-pct small { font-size: 24px; margin-left: 1px; }
.tk-clock { margin-top: 10px; font: 700 22px/1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 6px 9px; border-radius: 8px; background: rgba(10, 6, 12, .35); }
.tk-lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; text-align: center; }
.tk-body { position: relative; padding: 18px 20px 18px 24px; }
.tk-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #b9bcc3; }
.tk-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tk-kick { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #ff9cc0; }
.tk-kick i { font-size: 10px; }
.tk-body h3 { margin: 6px 0 6px; font: 800 26px/1.05 var(--disp); letter-spacing: -.02em; }
.tk-body p { margin: 0 0 14px; color: #c3c6cc; font-size: 13.5px; line-height: 1.45; }
.tk-body p b { color: #fff; }
.tk-body p s { color: #8a909a; }
.tk-act { display: flex; align-items: center; gap: 12px; }
.tk-no { color: #9ea3ab; font-size: 13px; padding: 8px 4px; }
.tk-no:hover { color: #fff; }
.ticket.locked { pointer-events: none; }
.ticket.locked .tk-act, .ticket.locked .tk-x { opacity: 0; transition: opacity .2s; }
/* the price box takes the hit */
.pc-price { position: relative; }
.pc-price .amt.strike { position: relative; overflow: visible; }
.pc-price .amt.strike::after { content: ''; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; border-radius: 2px; background: #ff4f9a; box-shadow: 0 0 12px #ff2e63; transform-origin: left; animation: strike .32s var(--ease) both; }
@keyframes strike { from { transform: scaleX(0); } }
.pc-burst { position: absolute; left: 60px; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.pc-burst .ring { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ffb3cf; box-shadow: 0 0 20px #ff4f9a; animation: ring .8s var(--ease) both; }
.pc-burst .ring.r2 { border-color: #d79bff; animation-delay: .12s; animation-duration: 1s; }
@keyframes ring { to { transform: scale(9); opacity: 0; } }
.pc-burst b { position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%; background: #ffd1e2; box-shadow: 0 0 8px #ff4f9a; animation: spark .9s cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--dl); }
@keyframes spark { 0% { transform: rotate(var(--a)) translateX(0) scale(1.2); opacity: 1; } 100% { transform: rotate(var(--a)) translateX(var(--d)) scale(.2); opacity: 0; } }
.pcol.hit { animation: colhit .6s var(--spring); }
@keyframes colhit { 30% { transform: scale(1.025); } }
.pcol.applied .pc-was { color: #ffc2d6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pc-clock { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 46, 99, .16); border: 1px solid rgba(255, 122, 168, .35); color: #fff; font: 600 12px var(--disp); font-variant-numeric: tabular-nums; }
.pc-clock i { font-size: 11px; color: #ff7aa8; }
.pc-stamp { position: absolute; z-index: 4; top: -16px; right: -12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 2px solid #ff7aa8; color: #ffd1e2; font: 800 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; background: rgba(20, 10, 16, .7); transform: rotate(-7deg); animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) both; box-shadow: 0 0 24px -4px rgba(255, 46, 99, .7); }
@keyframes stamp { from { opacity: 0; transform: rotate(-16deg) scale(2.2); } }
@media (max-width: 560px) { .ticket { right: 16px; left: 16px; width: auto; } .tk-in { grid-template-columns: 100px 1fr; -webkit-mask: none; mask: none; } .tk-pct { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .ticket, .tk-in, .tk-stub { animation: none; } }

/* ===== Recast: every clip in its own shape ===== */
.card.clip .media { aspect-ratio: var(--ar); }
.masonry { display: flex; gap: 12px; align-items: flex-start; }
.mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.row.mixed { grid-auto-columns: max-content; align-items: start; }
.row.mixed > .card.clip { width: calc(330px * var(--ar)); }
.row.mixed > .card.clip .media { aspect-ratio: auto; height: 330px; }
/* ===== Chat Drama people: an iPhone contacts list ===== */
.cd-people { display: block; background: #1c1c1e; border: 1px solid #2c2c2e; border-radius: 14px; overflow: hidden; font-family: -apple-system, 'SF Pro Text', 'Instrument Sans', system-ui, sans-serif; }
.cd-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.cd-row + .cd-row::before { content: ''; position: absolute; top: 0; left: 74px; right: 0; height: 1px; background: #2c2c2e; }
.cd-ava { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #a5abb8, #858994); color: #fff; font: 600 17px/1 -apple-system, 'SF Pro Display', 'Instrument Sans', system-ui, sans-serif; letter-spacing: .02em; transition: transform .15s var(--ease); }
.cd-ava:hover { transform: scale(1.05); }
.cd-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cd-ava .cam { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #0b84fe; border: 2px solid #1c1c1e; color: #fff; font-size: 10px; font-style: normal; }
.cd-ava.has .cam { background: #3a3a3c; }
.cd-meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cd-meta b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; }
.cd-meta b em { font-style: normal; font-size: 11px; font-weight: 600; color: #0b84fe; }
.cd-meta small { color: #8e8e93; font-size: 12.5px; }
.cd-un { color: #ff453a; font-size: 12.5px; }
.cd-sw { flex: none; display: flex; align-items: center; gap: 10px; color: #8e8e93; font-size: 12.5px; }
.cd-sw i { position: relative; width: 44px; height: 26px; border-radius: 99px; background: #39393d; transition: background .25s; }
.cd-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); transition: transform .25s var(--spring); }
.cd-sw.on i { background: #34c759; }
.cd-sw.on i::after { transform: translateX(18px); }
.cd-sw.on span { color: #fff; }

/* ===== Chat Drama formats: mini screens instead of stock photos ===== */
.vf { position: absolute; inset: 0; overflow: hidden; display: block; font-style: normal; transition: transform .7s var(--ease); }
.cd-vibe.pic:hover .vf { transform: scale(1.04); }
.vf i { font-style: normal; }
/* reality TV: camcorder frame, confessional lower third */
.vf-reality { background: radial-gradient(120% 90% at 30% 30%, #4a2a1c, #1a0f0c 70%); }
.vf-rec { position: absolute; top: 10px; left: 12px; display: flex; align-items: center; gap: 5px; font: 700 10px var(--ui); letter-spacing: .12em; color: #fff; }
.vf-rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; animation: vfblink 1.2s steps(2, start) infinite; }
@keyframes vfblink { to { visibility: hidden; } }
.vf-tc { position: absolute; top: 10px; right: 12px; font: 600 10px var(--ui); color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.vf-corner { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .55); }
.vf-corner.a { top: 28px; left: 12px; border-right: 0; border-bottom: 0; } .vf-corner.b { top: 28px; right: 12px; border-left: 0; border-bottom: 0; }
.vf-corner.c { bottom: 54px; left: 12px; border-right: 0; border-top: 0; } .vf-corner.d { bottom: 54px; right: 12px; border-left: 0; border-top: 0; }
.vf-quote { position: absolute; left: 34px; right: 34px; top: 38px; color: #ffe9d6; font: italic 600 15px/1.25 Georgia, 'Times New Roman', serif; text-wrap: balance; }
.vf-third { position: absolute; left: 12px; top: 92px; display: flex; flex-direction: column; padding: 4px 10px 4px 8px; border-left: 3px solid #ff4f9a; background: rgba(0, 0, 0, .72); }
.vf-third b { color: #fff; font: 800 12px var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.vf-third small { color: #ff9cc0; font-size: 10px; }
/* courtroom: case title and an evidence card with the chat on it */
.vf-court { background: repeating-linear-gradient(90deg, #3b2416 0 26px, #432a19 26px 52px); }
.vf-case { position: absolute; top: 10px; left: 0; right: 0; text-align: center; color: #e9d3a8; font: italic 13px Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
.vf-exhibit { position: absolute; left: 50%; top: 34px; width: 62%; transform: translateX(-50%) rotate(-3deg); padding: 18px 10px 10px; border-radius: 4px; background: #f3efe6; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); display: grid; gap: 4px; }
.vf-exhibit em { position: absolute; top: -8px; right: -10px; padding: 2px 8px; border-radius: 3px; background: #c9302c; color: #fff; font: 800 9px var(--ui); letter-spacing: .14em; text-transform: uppercase; font-style: normal; transform: rotate(6deg); }
.vf-bub { justify-self: start; max-width: 85%; padding: 4px 8px; border-radius: 10px; background: #e5e5ea; color: #111; font: 500 10.5px/1.25 -apple-system, 'Instrument Sans', system-ui, sans-serif; }
.vf-bub.r { justify-self: end; background: #0b84fe; color: #fff; }
/* movie trailer: letterbox and a title card */
.vf-trailer { background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 30px; gap: 4px; text-align: center; box-shadow: inset 0 14px 0 #000, inset 0 -14px 0 #000; }
.vf-trailer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 35%, rgba(255, 170, 90, .22), transparent 70%); animation: vfglow 5s ease-in-out infinite; }
@keyframes vfglow { 50% { opacity: .5; } }
.vf-trailer small { position: relative; color: #c9a36a; font: 600 9px var(--ui); letter-spacing: .4em; text-transform: uppercase; }
.vf-trailer b { position: relative; max-width: 88%; color: #f4ead8; font: 400 21px/1.05 Georgia, 'Times New Roman', serif; letter-spacing: .08em; text-wrap: balance; }
.vf-trailer .vf-tag { position: relative; color: #8a8f99; font-size: 10px; letter-spacing: .12em; }
/* breaking news: live tag, headline bar, ticker */
.vf-news { background: linear-gradient(160deg, #0d2b5c, #071530 70%); }
.vf-news::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); }
.vf-live { position: absolute; top: 10px; left: 12px; padding: 2px 7px; border-radius: 3px; background: #e5171f; color: #fff; font: 800 10px var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.vf-head { position: absolute; left: 0; right: 0; top: 60px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; color: #0a1a3a; font: 800 12px/1.1 var(--disp); letter-spacing: .01em; }
.vf-head em { flex: none; font-style: normal; padding: 2px 6px; background: #e5171f; color: #fff; font-size: 10px; letter-spacing: .1em; }
.vf-tick { position: absolute; left: 0; right: 0; top: 88px; padding: 4px 0; background: #0a1a3a; border-top: 2px solid #ffcc00; white-space: nowrap; overflow: hidden; color: #ffcc00; font: 700 10px var(--ui); }
.vf-tick span { display: inline-block; padding-left: 100%; animation: vftick 14s linear infinite; }
@keyframes vftick { to { transform: translateX(-100%); } }
/* soap opera: recap title over velvet */
.vf-soap { background: radial-gradient(90% 80% at 50% 20%, #6b1f45, #2a0b1d 75%); display: flex; flex-direction: column; align-items: center; padding-top: 18px; gap: 2px; text-align: center; }
.vf-soap small { color: #f0b8d2; font: italic 12px Georgia, 'Times New Roman', serif; }
.vf-soap b { color: #ffe3f0; font: italic 700 24px/1 Georgia, 'Times New Roman', serif; text-shadow: 0 0 18px rgba(255, 120, 190, .6); }
.vf-line { margin-top: 8px; max-width: 86%; color: #fff; font: 500 11px/1.3 var(--ui); opacity: .9; }
/* nature documentary: a scope vignette and a yellow subtitle */
.vf-nature { background: radial-gradient(80% 70% at 60% 40%, #3d5a2a, #142010 75%); }
.vf-scope { position: absolute; left: 50%; top: 42%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); }
.vf-scope::before, .vf-scope::after { content: ''; position: absolute; background: rgba(255, 255, 255, .5); }
.vf-scope::before { left: 50%; top: -10px; bottom: -10px; width: 1px; } .vf-scope::after { top: 50%; left: -10px; right: -10px; height: 1px; }
.vf-sub { position: absolute; left: 14px; right: 14px; top: 20px; color: #ffe14d; font: 600 11.5px/1.3 var(--ui); text-shadow: 0 1px 2px #000; text-wrap: balance; }
.vf-rec, .vf-tc { line-height: 1; }

/* ===== model picker: groups by maker, search ===== */
.pop.models { min-width: 400px; max-height: min(560px, 70vh); padding-top: 0; }
.pop-find { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0 -6px 4px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line2); color: var(--dim); }
.pop-find input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.pop-g { padding: 10px 10px 4px; font: 700 10.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.mtag.new { background: var(--hot) !important; color: #fff !important; border-color: transparent !important; }

/* the big viewer: the whole video or picture, fitted, never cropped */
.lightbox .lb-stage { position: relative; }
.lightbox .lb-stage > video, .lightbox .lb-stage > .lb-main { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; z-index: 1; }
/* model tags: small, flat and quiet; only "New" gets the brand color */
.mtag { margin-left: 8px; padding: 2px 6px 1px; border-radius: 4px; font: 700 9.5px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #cfd2d8; background: #262930; border: 0; vertical-align: 2px; }
.mtag.new { background: #ff2e63 !important; color: #fff !important; }
/* lightbox video: our own player bar (Spoof pink), fades out while playing */
.pl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 18px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.lb-stage.pl-on .pl, .lb-stage.pl-paused .pl, .lb-stage.pl-drag .pl, .pl:hover { opacity: 1; transform: none; pointer-events: auto; }
.pl-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pl-sp { flex: 1; }
.pl-b { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #fff; font-size: 19px; cursor: pointer; transition: background .15s, transform .15s; }
.pl-b:hover { background: rgba(255, 255, 255, .12); }
.pl-b:active { transform: scale(.92); }
.pl-b[data-pl="play"] { background: #ff3b6b; box-shadow: 0 4px 18px rgba(255, 59, 107, .45); }
.pl-b[data-pl="play"]:hover { background: #ff5580; }
.pl-t { color: #fff; font: 600 13px var(--ui); font-variant-numeric: tabular-nums; margin-left: 6px; letter-spacing: .01em; }
.pl-bar { position: relative; height: 16px; cursor: pointer; touch-action: none; }
.pl-bar::before, .pl-buf, .pl-fill { content: ''; position: absolute; left: 0; top: 6px; height: 4px; border-radius: 4px; transition: height .15s, top .15s; }
.pl-bar::before { right: 0; background: rgba(255, 255, 255, .18); }
.pl-buf { background: rgba(255, 255, 255, .28); width: 0; }
.pl-fill { background: linear-gradient(90deg, #ff2e63, #ff4f9a 60%, #c04dff); width: 0; box-shadow: 0 0 12px rgba(255, 59, 107, .55); }
.pl-knob { position: absolute; top: 8px; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 59, 107, .35); transform: scale(0); transition: transform .15s; }
.pl-bar:hover .pl-knob, .lb-stage.pl-drag .pl-knob { transform: scale(1); }
.pl-bar:hover::before, .pl-bar:hover .pl-buf, .pl-bar:hover .pl-fill, .lb-stage.pl-drag .pl-fill { top: 5px; height: 6px; }
.lb-stage:fullscreen { display: grid; place-items: center; background: #000; }
.lb-stage:fullscreen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox .lb-stage > video { cursor: pointer; }
/* Explore hero, Image slide: pictures sliding in two lanes under a pink and violet glow (same look as Pricing) */
.hero-slide.film-slide { background: #0c0d10; overflow: hidden; isolation: isolate; }
.film-slide .film { position: absolute; inset: -40px 0; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: 14px; transform: perspective(900px) rotateX(14deg) scale(1.1); opacity: .62; }
.film-slide .film .lane { display: flex; gap: 14px; width: max-content; height: 300px; animation: film 60s linear infinite; }
.film-slide .film .lane.r { animation-direction: reverse; animation-duration: 70s; }
.film-slide .film img { height: 300px; width: 208px; flex-shrink: 0; object-fit: cover; border-radius: 12px; }
.film-slide .wash { position: absolute; z-index: -1; width: 680px; height: 680px; border-radius: 50%; filter: blur(90px); opacity: .42; pointer-events: none; }
.film-slide .wash.a { left: -160px; bottom: -340px; background: #ff2e63; animation: drift 14s ease-in-out infinite alternate; }
.film-slide .wash.b { right: -160px; top: -360px; background: #8b3dff; animation: drift 17s ease-in-out infinite alternate-reverse; }
.pill-rec { font-style: normal; font: 700 9px/1 var(--ui); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #ff3b6b; padding: 3px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
#yComp .pill { white-space: nowrap; }

/* ---------- phones (Dec 3 2026): the same site, stacked for one thumb ---------- */
@media (max-width: 760px) {
  :root { --gut: 14px; --barh: 56px; }
  body { font-size: 15px; }
  /* top bar: logo + credits/avatar, the menu becomes a swipeable strip under it */
  .bar { flex-wrap: wrap; height: auto; gap: 0 10px; padding: 8px var(--gut) 0; }
  .logo img { height: 26px; }
  .bar-r { gap: 8px; }
  .bar-r .btn.hot.sm { padding: 0 10px; font-size: 12px; height: 32px; }
  .cred { height: 32px; padding: 0 10px; }
  .ava { width: 32px; height: 32px; }
  .nav { order: 3; width: calc(100% + var(--gut) * 2); margin: 6px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 6px; height: 44px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex-shrink: 0; height: 34px; padding: 0 12px; scroll-snap-align: start; }
  .nav a.on { background: var(--panel2); color: var(--text); }
  .nav a.on::after { bottom: -6px; }
  .nav-ink { display: none; }
  .nav-new, .nav-soon { display: inline-block; }
  .menu { position: fixed; right: var(--gut); left: var(--gut); top: 64px; min-width: 0; }
  .tray-panel { width: calc(100vw - var(--gut) * 2); }

  /* page frames */
  .page-h { padding: 22px 0 16px; gap: 12px; }
  .page-h h1 { font-size: 38px; }
  .page-h p { font-size: 14px; }
  .page-h .act { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .sec { margin-top: 36px; }
  .sec-h { flex-wrap: wrap; gap: 6px 12px; }
  .sec-h h2 { font-size: 21px; }
  .foot { margin-top: 56px; }
  .foot-in { flex-wrap: wrap; gap: 12px 20px; padding: 22px var(--gut); }
  .foot-c { margin-left: 0; width: 100%; }

  /* explore */
  .hero { height: 78vh; min-height: 480px; max-height: 640px; border-radius: var(--r-l); }
  .hero::after { background: linear-gradient(0deg, rgba(5, 6, 8, .92) 0%, rgba(5, 6, 8, .55) 45%, rgba(5, 6, 8, .1) 75%); }
  .hero-in { left: 18px; right: 18px; bottom: 22px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 54px); }
  .hero p { font-size: 15px; margin: 12px 0 18px; }
  .hero .cta { flex-wrap: wrap; }
  .hero .cta .btn { flex: 1 1 auto; }
  .hero-meta { display: none; }
  .bars { margin-top: 20px; flex-wrap: wrap; }
  .bars button { width: auto; flex: 1; min-width: 44px; }
  .bars button span { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { height: 150px; }
  .tile h3 { font-size: 17px; }
  .tile p { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
  .wall.grid9 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .promo { height: auto; flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .promo .btn { margin-left: 0; }
  .promo-pics, .promo .strip { display: none; }
  .closer { height: auto; padding: 48px 18px; }
  .closer-pics { display: none; }
  .perks { grid-template-columns: 1fr 1fr; }
  .marq span b, .marq a b { margin-left: 28px; }

  /* recast list + editor */
  .lib-tabs { flex-wrap: wrap; }
  .lib-tabs .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .lib-tabs .chips::-webkit-scrollbar { display: none; }
  .lib-tabs .chips > * { flex-shrink: 0; }
  .lib-tabs .r.field { width: 100% !important; margin-left: 0 !important; }
  .lib { columns: 2 140px; column-gap: 8px; }
  .dlg { max-width: calc(100vw - 16px); }
  .editor { width: 100vw; height: 100dvh; max-width: 100vw; grid-template-columns: 1fr; grid-template-rows: 38dvh 1fr; border-radius: 0; }
  .dlg:has(.editor), .dlg:has(.lightbox), .dlg:has(.mp) { left: 0; top: 0; transform: none; border-radius: 0; border: 0; }
  .ed-side { border-left: 0; border-top: 1px solid var(--line); }
  .ed-scroll { padding: 16px 16px 8px; }
  .ed-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .saved { grid-template-columns: repeat(4, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .slots { flex-wrap: wrap; }

  /* lightbox + media picker */
  .lightbox { width: 100vw; height: 100dvh; grid-template-columns: 1fr; grid-template-rows: 55dvh auto; overflow-y: auto; }
  .lb-side { border-left: 0; border-top: 1px solid var(--line); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); overflow: visible; }
  .mp { width: 100vw; max-height: 100dvh; height: 100dvh; padding: 18px 14px 0; }
  .mp-guide { grid-template-columns: 1fr; }
  .mp-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .auth, .own-dlg { width: calc(100vw - 24px); padding: 24px 18px 20px; }

  /* image / video studio: the prompt bar sits on the bottom edge */
  .studio-pg { height: calc(100dvh - 106px); }
  .feed { padding: 4px var(--gut) 300px; }
  .results { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ideas, .ideas.video { grid-template-columns: 1fr 1fr; gap: 8px; }
  .empty-hero { height: 240px; }
  .eh-panels { grid-template-columns: 1fr 1fr; }
  .eh-panels > :nth-child(3) { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; transform: none; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .comp { padding: 10px; border-radius: var(--r-l); }
  .comp textarea { min-height: 44px; font-size: 16px; }
  .comp-bot { flex-wrap: wrap; row-gap: 8px; }
  .comp-bot .gen, .comp-bot #zGo { width: 100%; order: 10; height: 46px; }
  .comp-bot .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pop { position: fixed; left: 8px; right: 8px; bottom: 150px; min-width: 0; max-height: 60dvh; }
  .ratios { grid-template-columns: repeat(3, 1fr); }
  .studio-pg::after { height: 120px; }

  /* chat drama, styles, library, pricing, account */
  .cd { grid-template-columns: 1fr; }
  .cd-stage { position: static; padding: 16px; }
  .cd-phone { width: min(260px, 70vw); }
  .cd-phone.wide { width: 100%; }
  .cd-vibes { grid-template-columns: 1fr 1fr; }
  .styles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sty { height: 190px; }
  .pr-hero { padding: 40px 16px 32px; }
  .pr-hero .film img { height: 180px; width: 125px; }
  .pr-hero .film .lane { height: 180px; }
  .ptab, .plans, .plans.packs { grid-template-columns: 1fr !important; }
  .pcol { padding: 26px 20px 22px; border-left: 0; border-top: 1px solid #221e27; }
  .costs { grid-template-columns: 1fr; margin-top: 40px; }
  .cost-pics { margin: 0 -18px 14px; }
  .faq { margin-top: 40px; }
  .acct { grid-template-columns: 1fr; }
  .recent { grid-template-columns: repeat(3, 1fr); }
  .switch-note { align-items: flex-start; }
  .toasts { left: 12px; right: 12px; transform: none; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .toast { width: 100%; }
  .ticket { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) { html, body { overflow-x: clip; } }
@media (max-width: 760px) {
  .comp { position: relative; }
  .comp-bot > div[style*="position:relative"] { position: static !important; }
  .pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); max-height: 55dvh; }
}

/* ---------- Chat Drama demo in the phone (Dec 3 2026): screenshot -> chat -> 90s sitcom -> Make the video -> the real clip ---------- */
.cdd { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; background: #000; transition: background .5s; }
.cdd.s1 { background: radial-gradient(circle at 50% 40%, #3a1f33, #0c0a10 75%); }
.cdd-feed { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; opacity: 0; transition: opacity .4s; }
.cdd.s2 .cdd-feed { opacity: 1; }
.cdd-shot { position: absolute; left: 11%; top: 10%; width: 78%; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 255, 255, .35), 0 0 40px rgba(255, 59, 107, .35); transform: translateY(120%) rotate(-4deg); transition: transform .8s var(--spring), opacity .5s, filter .5s; z-index: 2; }
.cdd.s1 .cdd-shot { transform: translateY(0) rotate(-3deg); }
.cdd.s2 .cdd-shot { transform: translateY(-8%) scale(.55); opacity: 0; filter: blur(6px); }
.cdd-up { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .3s; z-index: 3; }
.cdd.s1 .cdd-up { opacity: 1; animation: cddp 1s ease-in-out infinite; }
@keyframes cddp { 50% { opacity: .55; } }
.cdd-sheet { position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 12px; border-radius: 22px; background: rgba(28, 26, 32, .94); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(16px); transform: translateY(130%); transition: transform .55s var(--spring); z-index: 4; }
.cdd.s3 .cdd-sheet { transform: none; }
.cdd-sheet small { display: block; color: #a9a5b3; font-size: 11px; margin-bottom: 7px; font-weight: 600; }
.cdd-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.cdd-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 10px; background: #2a2730; font-size: 11.5px; font-weight: 600; color: #ddd; transition: background .2s, color .2s, transform .2s; }
.cdd-chips span.on { background: #fff; color: #0a0b0d; transform: scale(1.06); }
.cdd-go { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; background: linear-gradient(90deg, #ff3b6b, #b45cff); font-weight: 700; font-size: 13.5px; transition: transform .15s; }
.cdd-go.on { transform: scale(.95); }
.cdd-tap { position: absolute; z-index: 6; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px solid #fff; opacity: 0; pointer-events: none; }
.cdd-tap.go { animation: cddtap .6s ease-out; }
@keyframes cddtap { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.4); } }
.cdd-flash { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #ff7aa8 30%, #b45cff 60%, #12000a 100%); }
.cdd-flash img { width: 58%; transform: scale(.4) rotate(-8deg); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.cdd.s4 .cdd-flash { animation: cddfl 1s ease-in-out forwards; }
.cdd.s4 .cdd-flash img { animation: cddlogo .9s var(--spring) forwards; }
@keyframes cddfl { 0% { opacity: 0; clip-path: circle(0% at 50% 85%); } 35% { opacity: 1; clip-path: circle(80% at 50% 85%); } 75% { opacity: 1; } 100% { opacity: 0; clip-path: circle(140% at 50% 50%); } }
@keyframes cddlogo { 0% { transform: scale(.4) rotate(-8deg); } 55% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1.25) rotate(0deg); opacity: 0; } }
.cdd-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; opacity: 0; transition: opacity .35s; }
.cdd.s5 .cdd-vid { opacity: 1; }
.cdd-snd { position: absolute; z-index: 8; right: 14px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 17px; opacity: 0; transition: opacity .3s; backdrop-filter: blur(8px); }
.cdd.s5 .cdd-snd { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cdd-shot, .cdd-sheet { transition: none; } }

/* Explore hero, Chat Drama slide: the demo phone on the right over the sitcom clip, blurred and dark */
.chat-slide { background: radial-gradient(ellipse at 75% 50%, #3a0f2a 0%, #0b0a0e 70%); }
.chat-slide .hc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.35) saturate(1.3); transform: scale(1.2); }
.hc-stage { position: absolute; z-index: 2; right: 8%; top: 50%; translate: 0 -50%; }
.hc-phone { scale: .82; transform-origin: center; }
@media (max-width: 1100px) { .hc-stage { right: 3%; } .hc-phone { scale: .62; } }
@media (max-width: 760px) { .hc-stage { display: none; } .chat-slide .hc-bg { filter: none; transform: scale(1.05); } }
