:root {
  --bg: #fffafc; --surface: #ffffff; --soft: #f7eef6; --ink: #2b1859; --muted: #5d5375;
  --line: #eee2ee; --accent: #ff3428; --accent-2: #ff39a4; --accent-ink: #fff; --plum: #2b1859; --danger: #b42318;
  --r: 16px; --shadow: 0 1px 2px rgba(43,24,89,.06), 0 10px 28px rgba(43,24,89,.08);
  --serif: 'Prompt', system-ui, sans-serif; --sans: 'Prompt', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] { --bg: #160b30; --surface: #21123f; --soft: #2b1a52; --ink: #f6f0ff; --muted: #b9addb; --line: #3a2670; --plum: #0f0722; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #160b30; --surface: #21123f; --soft: #2b1a52; --ink: #f6f0ff; --muted: #b9addb; --line: #3a2670; --plum: #0f0722; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; margin: 0 0 12px; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 5vw, 56px); } h2 { font-size: clamp(26px, 3.4vw, 38px); } h3 { font-size: 20px; }
p { margin: 0 0 12px; }
em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.portrait { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); background: var(--soft); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; }
.top .logo { justify-self: start; display: flex; align-items: center; }
.top-links { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.top-links a { position: relative; text-decoration: none; color: var(--muted); padding: 6px 0; transition: color .15s; }
.top-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transition: transform .2s; }
.top-links a:hover, .top-links a.on { color: var(--ink); } .top-links a:hover::after, .top-links a.on::after { transform: scaleX(1); }
.top-actions { justify-self: end; display: flex; gap: 14px; align-items: center; font-size: 15px; }
.top-actions .signin { text-decoration: none; color: var(--ink); font-weight: 500; padding: 7px 4px; } .top-actions .signin:hover { color: var(--accent); }
.top-actions .credits { text-decoration: none; font-size: 14px; }
.top-actions .btn.sm { padding: 9px 18px; }
.burger { display: none; }
.burger summary { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-content: center; gap: 4px; }
.burger summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); } .burger[open] summary span:nth-child(2) { opacity: 0; } .burger[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .top-links a::after, .burger summary span { transition: none; } }
@media (max-width: 860px) {
  .top-in { grid-template-columns: 1fr auto; height: 64px; }
  .top-links { display: none; }
  .burger { display: block; }
}
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-img.on-dark { display: none; }
:root[data-theme="dark"] .logo-img.on-light { display: none; } :root[data-theme="dark"] .logo-img.on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img.on-light { display: none; } :root:not([data-theme="light"]) .logo-img.on-dark { display: block; } }
.credits { font-weight: 600; color: var(--ink) !important; background: var(--soft); padding: 4px 10px; border-radius: 99px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; border: 1px solid transparent; border-radius: 99px; padding: 11px 20px; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-2) 28%, transparent); } .btn.primary:hover:not(:disabled) { filter: brightness(.94); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn.ghost:hover { background: var(--soft); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.lg { padding: 14px 26px; font-size: 16px; } .btn.sm { padding: 7px 14px; font-size: 14px; }
.btn .cost { font-weight: 500; font-size: 13px; opacity: .85; padding-left: 10px; border-left: 1px solid currentColor; }
.link { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.icon { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); margin-left: auto; padding: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* landing */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.hero .row { margin: 24px 0 12px; }
.hero-stack { position: relative; height: 520px; }
.card-photo { position: absolute; margin: 0; width: 58%; background: var(--surface); padding: 10px 10px 12px; border-radius: 18px; box-shadow: var(--shadow); }
.card-photo figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.card-photo.c0 { left: 0; top: 40px; transform: rotate(-5deg); } .card-photo.c1 { left: 22%; top: 0; z-index: 2; } .card-photo.c2 { right: 0; top: 70px; transform: rotate(5deg); }
.band { background: var(--soft); padding: 72px 0; }
.band.dark { background: var(--plum); color: #f6eef7; } .band.dark .lead { color: #cdbfd3; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { background: var(--surface); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.checks s { color: var(--muted); font-size: 14px; } .checks b { font-weight: 600; }
.steps, .cast, .faq, .final, .focus { padding-top: 88px; padding-bottom: 24px; }
.focus .lead { max-width: 68ch; margin-top: 14px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step .num { font-family: var(--serif); color: var(--accent); font-size: 28px; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.cast-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.cast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cast-card { background: none; border: 2px solid transparent; border-radius: calc(var(--r) + 4px); padding: 4px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: inherit; font: inherit; }
.cast-card:hover .portrait { transform: translateY(-3px); } .cast-card .portrait { transition: transform .2s; margin-bottom: 8px; }
.cast-card.sel { border-color: var(--accent); }
.cast-name { font-weight: 600; padding: 0 4px; } .cast-card .small { padding: 0 4px; }
.connect { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.mini-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 18px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.final { text-align: center; padding-bottom: 96px; }
.foot { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 48px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot p { margin: 0; }

/* create */
.create { padding-top: 32px; padding-bottom: 48px; }
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 32px; }
.stepper button { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 6px; display: flex; align-items: center; gap: 8px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.stepper button:disabled { cursor: default; }
.stepper span { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 12px; }
.stepper .on button { border-color: var(--ink); color: var(--ink); } .stepper .on span { background: var(--ink); color: var(--bg); }
.stepper .done span { background: var(--accent); color: #fff; }
.editor { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.preview { position: sticky; top: 90px; } .preview .small { margin-top: 10px; }
.id-card { display: flex; flex-direction: column; margin-top: 12px; }
.controls { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
input:not([type]), input[type=text], textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 11px 13px; font: 15px var(--sans); }
input[type=range] { accent-color: var(--accent); width: 100%; max-width: 360px; }
.toggle { display: flex; gap: 10px; align-items: center; } .toggle input { accent-color: var(--accent); width: 18px; height: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.create > section > .actions { margin-top: 28px; }
.error { color: var(--danger); margin: 0; }
.notice { background: var(--soft); padding: 12px 16px; border-radius: 10px; margin-top: 24px; }

/* profile */
.profile { padding-top: 40px; padding-bottom: 48px; }
.prof-head { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; }
.avatar { width: 140px; height: 140px; border-radius: 50%; aspect-ratio: 1; object-position: 50% 30%; flex-shrink: 0; }
.avatar.sm { width: 36px; height: 36px; }
.bio { max-width: 60ch; } .stats { color: var(--muted); font-size: 15px; } .stats b { color: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { position: relative; padding: 0; border: 0; background: var(--soft); cursor: pointer; overflow: hidden; border-radius: 6px; display: block; }
.tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; transition: transform .3s; }
.tile:hover img { transform: scale(1.03); }
.badge { position: absolute; top: 8px; right: 8px; background: rgba(20,16,24,.75); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.badge.left { right: auto; left: 8px; }
.anim { animation: breathe 6s ease-in-out infinite alternate; }
@keyframes breathe { 0% { transform: scale(1) translateY(0) rotate(0); } 50% { transform: scale(1.06) translateY(-6px) rotate(.6deg); } 100% { transform: scale(1.03) translateY(4px) rotate(-.6deg); } }
.studio { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.scene { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: 500 14px var(--sans); cursor: pointer; text-align: left; }
.scene.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.prompt-preview { background: var(--soft); border-radius: 10px; padding: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.placeholder { grid-column: 1 / -1; max-width: 360px; opacity: .9; } .placeholder .small { margin-top: 8px; }
.skeleton { aspect-ratio: 4/5; border-radius: 6px; background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(15,10,20,.6); z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal { background: var(--surface); border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; max-width: 920px; width: 100%; max-height: calc(100vh - 48px); overflow: hidden; }
.modal-media { position: relative; overflow: hidden; background: #000; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: calc(100vh - 48px); }
.modal-side { padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.modal-head { display: flex; gap: 10px; align-items: center; }
.prompt { white-space: pre-wrap; background: var(--soft); padding: 12px; border-radius: 10px; font-size: 13px; margin: 0; }
.modal-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.variants div { display: flex; gap: 6px; margin-top: 6px; } .variants button { padding: 0; border: 0; background: none; cursor: pointer; width: 60px; }
.variants img { width: 60px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; }
.settings { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.danger-zone { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 24px; }
.danger-zone input { max-width: 240px; }
.empty { text-align: center; padding: 72px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* dashboard */
.dash { padding-top: 40px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dash-card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.dash-card div { display: flex; flex-direction: column; }

/* pricing */
.pricing { padding-top: 48px; text-align: center; } .pricing .lead { margin: 0 auto 24px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 99px; padding: 4px; margin-bottom: 32px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 99px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pill { background: var(--accent); color: #fff; border-radius: 99px; font-size: 12px; padding: 2px 8px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; margin-bottom: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan > .pill { position: absolute; top: -11px; left: 24px; }
.price b { font-family: var(--serif); font-size: 40px; }
.plan ul { padding-left: 18px; margin: 8px 0 20px; flex: 1; } .plan li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .hero, .compare, .connect, .editor, .studio { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; gap: 24px; } .hero-stack { height: 380px; }
  .step-grid, .cast-grid, .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 300px; }
  .modal { grid-template-columns: 1fr; overflow-y: auto; } .modal-media img { max-height: 50vh; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 12px; } .top-actions { gap: 10px; }
  .prof-head { flex-direction: column; align-items: flex-start; gap: 16px; } .avatar { width: 96px; height: 96px; }
  .grid2 { grid-template-columns: 1fr; } .feed { gap: 3px; }
  .hero-stack { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .anim, .skeleton, .spinner { animation: none; } * { transition: none !important; } }
.shape { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.shape summary { cursor: pointer; font-weight: 600; }
.sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 14px 0 10px; }
.slider-row { display: flex; align-items: center; gap: 8px; } .slider-row input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .sliders { grid-template-columns: 1fr; } }
/* v0.2 */
.anim { animation: breathe 6s ease-in-out infinite alternate; }
.m-zoom { animation: push 7s ease-in-out infinite alternate; }
.m-pan { animation: pan 8s ease-in-out infinite alternate; }
.m-reaction { animation: react 2.6s ease-in-out infinite; }
.m-tour { animation: turn 4s ease-in-out infinite; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.18) translateY(-10px); } }
@keyframes pan { from { transform: scale(1.15) translateX(-6%); } to { transform: scale(1.15) translateX(6%); } }
@keyframes react { 0%, 60%, 100% { transform: scale(1.02); } 20% { transform: scale(1.1) translateY(-8px) rotate(-1.5deg); } 35% { transform: scale(1.06) rotate(1deg); } }
@keyframes turn { 0%, 40% { transform: scaleX(1); } 50% { transform: scaleX(.02); } 60%, 100% { transform: scaleX(-1); } }
.tile, .trend-media, .phone, .trend-strip figure > div, .modal-media, .variants button { overflow: hidden; }
.facts { display: flex; gap: 32px; margin: 28px 0 0; }
.facts div { display: flex; flex-direction: column; } .facts dt { font-family: var(--serif); font-size: 32px; font-weight: 600; } .facts dd { margin: 0; color: var(--muted); font-size: 14px; }
.showcase { padding-top: 88px; padding-bottom: 24px; }
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.mini-profile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.mini-profile header { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; } .mini-profile header div { display: flex; flex-direction: column; line-height: 1.3; }
.mini-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; } .mini-feed .portrait { border-radius: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chip.static { cursor: default; }
.phones { display: flex; gap: 14px; justify-content: center; }
.phone { position: relative; border: 6px solid var(--ink); border-radius: 26px; background: #000; width: 100%; max-width: 300px; margin: 0; }
.phone img, .phone .portrait { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; border-radius: 0; }
.phone figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 12px 12px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.small-phone { max-width: 150px; border-width: 4px; border-radius: 18px; }
.trend-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.trend-strip figure { margin: 0; } .trend-strip figure > div { border-radius: var(--r); } .trend-strip .portrait { aspect-ratio: 9/14; border-radius: 0; }
.trend-strip figcaption { font-weight: 600; margin-top: 8px; }
.foot-links { display: flex; gap: 16px; } .foot-links a { text-decoration: none; }
.acct { width: 32px; height: 32px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.jobs { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; display: flex; gap: 10px; align-items: center; font-size: 14px; box-shadow: var(--shadow); }
.signup { border: 1px dashed var(--accent); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
input[type=email], select { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 11px 13px; font: 15px var(--sans); }
select { width: auto; }
.tool { padding-top: 40px; padding-bottom: 48px; }
.tool-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; margin-top: 24px; }
.stage { position: sticky; top: 90px; display: flex; justify-content: center; }
.stage .phone { display: flex; flex-direction: column; } .stage .phone .btn { position: absolute; top: 12px; left: 12px; background: var(--surface); }
.empty-phone { aspect-ratio: 9/16; display: grid; place-items: center; align-content: center; color: #fff; text-align: center; padding: 20px; }
.empty-phone span { font-size: 40px; opacity: .6; }
.skeleton.tall { width: 100%; max-width: 300px; aspect-ratio: 9/16; border-radius: 26px; }
.ideas { display: flex; gap: 6px; flex-wrap: wrap; } .ideas .chip { font-size: 13px; padding: 5px 10px; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; }
.pick { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 4px 14px 4px 4px; cursor: pointer; font: 500 14px var(--sans); }
.pick.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pick .avatar.sm { width: 30px; height: 30px; }
.trend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.trend { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); font: inherit; }
.trend.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.trend-media { border-radius: 10px; margin-bottom: 6px; } .trend-media .portrait { aspect-ratio: 9/12; border-radius: 0; }
.trend .check { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow); }
.trend.on .check { background: var(--accent); color: #fff; }
.batch-bar { position: sticky; bottom: 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); z-index: 5; }
.batch-bar .field { flex-direction: row; align-items: center; }
.results-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.results-row .tile img { aspect-ratio: 9/14; }
.mt { margin-top: 32px; }
.connect-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 48px; counter-reset: s; }
.connect-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.connect-steps code, .key { background: var(--soft); padding: 6px 10px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.api { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.topups { margin-top: 56px; } .topup-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.topup { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; min-width: 160px; }
.topup:hover { border-color: var(--accent); } .topup span { color: var(--muted); }
.topup .bonus { align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 9px; }
@media (max-width: 900px) {
  .profiles, .connect-steps { grid-template-columns: 1fr; } .split, .tool-grid { grid-template-columns: 1fr; }
  .trend-grid, .trend-strip { grid-template-columns: repeat(2, 1fr); } .stage { position: static; }
}
@media (max-width: 600px) { .facts { gap: 20px; } .small-phone { max-width: 100px; } }

/* ===== Laravel edition ===== */
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, #000); }
input[type=password], input[type=number], input[type=url], input[type=file] { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 11px 13px; font: 15px var(--sans); }
input[type=color] { width: 56px; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); }
select { appearance: auto; }
.flash { max-width: 1160px; margin: 16px auto 0; padding: 12px 16px; border-radius: 10px; background: #e8f5ec; color: #18512c; border: 1px solid #b9dfc5; }
.flash.err { background: #fdecea; color: #8a1c12; border-color: #f3c1bb; }
.banner { background: var(--plum); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
.auth { max-width: 440px; margin: 56px auto; padding: 0 16px; }
.auth .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { font-size: 32px; } .auth .alt { text-align: center; color: var(--muted); font-size: 15px; }
.field .err, .err-text { color: var(--danger); font-size: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .check-row input { margin-top: 4px; accent-color: var(--accent); }
.usermenu { position: relative; } .usermenu summary { list-style: none; cursor: pointer; } .usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 200px; padding: 6px; display: flex; flex-direction: column; z-index: 30; }
.usermenu .menu a, .usermenu .menu button { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink) !important; background: none; border: 0; text-align: left; font: 15px var(--sans); cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--soft); }
.lang { display: flex; gap: 6px; } .lang a { font-size: 13px; color: var(--muted); text-decoration: none; } .lang a.on { color: var(--ink); font-weight: 600; }
.tile.pending, .tile.failed { display: grid; place-items: center; aspect-ratio: 4/5; color: var(--muted); font-size: 14px; text-align: center; padding: 12px; }
.tile.pending { background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.tile.failed { background: #fdecea; color: #8a1c12; }
.tile video { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.media-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-top: 32px; padding-bottom: 48px; align-items: start; }
.media-page .viewer { border-radius: 18px; overflow: hidden; background: #000; position: relative; }
.media-page .viewer img, .media-page .viewer video { width: 100%; display: block; max-height: 80vh; object-fit: contain; background: #000; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); }
table.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); }
.tag.ok { background: #e8f5ec; color: #18512c; } .tag.bad { background: #fdecea; color: #8a1c12; } .tag.warn { background: #fff4d6; color: #7a5200; }
.pagination { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; } .pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 14px; } .pagination .on { background: var(--ink); color: var(--bg); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gw { display: flex; gap: 8px; flex-wrap: wrap; }
.prose { max-width: 760px; } .prose h2 { margin-top: 28px; }

/* Admin */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin aside { background: var(--plum); color: #e9dff0; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin aside .logo { color: #fff; margin: 0 8px 18px; }
.admin aside .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #a893b5; margin: 16px 10px 4px; }
.admin aside a { color: #e9dff0; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.admin aside a:hover { background: rgba(255,255,255,.08); } .admin aside a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.admin main { padding: 28px 32px 48px; min-width: 0; }
.admin .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin h1 { font-size: 30px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; } .stat b { display: block; font-family: var(--serif); font-size: 28px; } .stat span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 10px 0; }
.bars div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars-x { display: flex; gap: 6px; font-size: 11px; color: var(--muted); } .bars-x span { flex: 1; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.setup li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .setup { list-style: none; padding: 0; margin: 0; }
.tabs-admin { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs-admin a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs-admin a.on { color: var(--ink); border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 980px; } .form-grid .wide { grid-column: 1 / -1; }
.help { font-size: 13px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-grid figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.media-grid figure img, .media-grid figure video { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: var(--soft); }
.media-grid figcaption { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.install { max-width: 640px; margin: 48px auto; padding: 0 16px; }
.reqs { list-style: none; padding: 0; } .reqs li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; } .admin aside { position: static; height: auto; flex-direction: row; flex-wrap: wrap; } .admin aside .sec { display: none; }
  .admin main { padding: 20px 16px; } .kpis { grid-template-columns: repeat(2, 1fr); } .two, .form-grid, .billing-grid, .media-page { grid-template-columns: 1fr; }
}
/* Accessible choices: real radio buttons / checkboxes, styled */
label.chip, label.swatch, label.scene, label.pick, label.trend, label.cast-card { position: relative; }
label.chip input, label.swatch input, label.scene input, label.pick input, label.trend input, label.cast-card input { position: absolute; opacity: 0; pointer-events: none; }
label.chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
label.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); }
label.scene:has(input:checked), label.pick:has(input:checked), label.trend:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
label.cast-card:has(input:checked) { border-color: var(--accent); }
label.trend:has(input:checked) .check { background: var(--accent); color: #fff; }
label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wizard-step[hidden] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel h2, .admin .panel h2 { font-size: 20px; margin: 0; } .panel h3 { font-size: 18px; margin: 0; }
.admin aside a.logo { font-size: 26px; padding: 0; } .admin aside a.logo:hover { background: none; }

/* Billing: payment method chooser */
.pay-with { border: 0; padding: 0; margin: 0 0 8px; }
.pay-with legend { font-weight: 600; margin-bottom: 8px; }
.plan .gw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Header on small screens */
.top .logo, .top-links a, .top-actions a, .credits { white-space: nowrap; }
.usermenu .menu .m-only { display: none; }
@media (max-width: 860px) { .usermenu .menu .m-only { display: block; } }
@media (max-width: 600px) { .top .logo { font-size: 22px; } }
@media (max-width: 460px) { .top .top-cta { display: none; } }
@media (max-width: 380px) { .top-actions .signin { display: none; } }

/* Shared home pieces */
.pulse-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(255,57,164,.6); animation: pulseDot 1.8s ease-out infinite; }
@keyframes pulseDot { to { box-shadow: 0 0 0 14px rgba(255,57,164,0); } }
.same-face { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mosaic img { aspect-ratio: 3/4; border-radius: 18px; } .mosaic img:nth-child(3n+2) { margin-top: 32px; }
.admin aside .logo-img.on-light { display: none !important; } .admin aside .logo-img.on-dark { display: block !important; }
/* Classic hero (included) */
.hero-classic .hero-stack .card-photo img { aspect-ratio: 4/5; object-fit: cover; }
.hero-classic .card-photo { animation: heroFloat 6s ease-in-out infinite; } .hero-classic .card-photo.c1 { animation-delay: -2s; } .hero-classic .card-photo.c2 { animation-delay: -4s; }
@keyframes heroFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 860px) { .same-face { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot, .hero-classic .card-photo { animation: none; } }

/* Admin: icons in the sidebar, settings with their own menu */
.ico { flex: none; }
.admin aside a:not(.logo) { display: flex; align-items: center; gap: 10px; }
.admin aside a .ico { opacity: .8; } .admin aside a.on .ico { opacity: 1; }
.settings-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 10px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav h1 { font-size: 22px; margin: 4px 10px 12px; }
.settings-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.settings-nav a .ico { color: var(--muted); }
.settings-nav a:hover { background: var(--soft); }
.settings-nav a.on { background: var(--plum); color: #fff; } .settings-nav a.on .ico { color: #fff; }
.settings-nav a:focus-visible, .gateway-row .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-version { margin: 14px 10px 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.settings-title { margin-bottom: 20px; } .settings-title h2 { font-size: 26px; margin: 0 0 6px; }
.settings-title .help { display: flex; align-items: center; gap: 8px; margin: 0; } .settings-title .help .ico { width: 18px; height: 18px; }
.settings-title .crumb { margin: 0 0 4px; font-size: 14px; color: var(--muted); } .settings-title .crumb a { color: inherit; }
.settings-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.gateway-list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 980px; }
.gateway-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.gateway-row + .gateway-row { border-top: 1px solid var(--line); }
.gateway-row p { margin: 0; } .gateway-row .help { margin-top: 4px; }
.gateway-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.gateway-row .btn { flex: none; }
@media (max-width: 900px) {
  .settings-shell { grid-template-columns: 1fr; gap: 16px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .settings-nav h1, .settings-version { display: none; }
  .settings-nav a { white-space: nowrap; flex: none; }
  .gateway-row { padding: 16px; }
}

/* Admin: add-on marketplace */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.addon-tools { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.addon-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; width: min(400px, 100%); color: var(--muted); }
.addon-search:focus-within { border-color: var(--accent); }
.addon-search input { border: 0; background: transparent; padding: 12px 0; flex: 1; min-width: 0; font: inherit; color: var(--ink); outline: none; }
.addon-upload { position: relative; }
.addon-upload summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .addon-upload summary::-webkit-details-marker { display: none; }
.addon-upload[open] form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(380px, 90vw); box-shadow: 0 18px 40px rgba(43, 24, 89, .16); }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.addon-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(43, 24, 89, .05); transition: box-shadow .2s ease, transform .2s ease; }
.addon-card:hover { box-shadow: 0 10px 28px rgba(43, 24, 89, .10); transform: translateY(-2px); }
.addon-card header { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--soft); }
.addon-card h3 { font-size: 18px; margin: 0; flex: 1; }
.addon-ver { font-size: 12px; color: var(--muted); }
.addon-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.addon-icon .ico { width: 22px; height: 22px; } .addon-icon.lg { width: 56px; height: 56px; border-radius: 16px; } .addon-icon.lg .ico { width: 28px; height: 28px; }
.addon-desc { padding: 16px 20px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.addon-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.addon-card footer .btn { min-width: 150px; justify-content: center; }
.btn.is-off { opacity: .55; cursor: default; pointer-events: none; }
.addon-empty { margin-top: 16px; }
.addon-head { display: flex; align-items: center; gap: 16px; } .addon-head h2 { margin: 0 0 4px; }
.addon-config { display: grid; gap: 20px; max-width: 980px; }
.addon-config h3 { font-size: 18px; margin: 0 0 12px; }
.addon-facts { display: flex; gap: 32px; flex-wrap: wrap; margin: 0 0 18px; } .addon-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .addon-facts dd { margin: 4px 0 0; font-weight: 600; }
.hero-choices { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hero-choice { position: relative; display: block; cursor: pointer; }
.hero-choice input { position: absolute; opacity: 0; }
.hero-choice span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s ease, background-color .15s ease; }
.hero-choice small { color: var(--muted); font-size: 13px; }
.hero-choice:hover span { background: var(--soft); }
.hero-choice input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .addon-card, .addon-card:hover { transition: none; transform: none; } }
@media (max-width: 600px) { .addon-upload, .addon-upload summary { width: 100%; justify-content: center; } .addon-upload[open] form { position: static; width: 100%; margin-top: 8px; } }
.addon-card[hidden] { display: none; }

/* Admin: AI engine cards */
.addon-icon[class*="engine-"] { font: 700 15px var(--sans); letter-spacing: -.02em; }
.addon-icon.engine-replicate { background: linear-gradient(135deg, #2b1859, #5b3aa8); }
.addon-icon.engine-openai { background: linear-gradient(135deg, #111, #3c3c3c); }
.engine-uses { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.settings-sub { font-size: 18px; margin: 28px 0 12px; }
.use-for { border: 0; padding: 0; margin: 20px 0 0; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; } .use-for legend { margin-bottom: 8px; }
.settings-panel .addon-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tag { white-space: nowrap; }
.settings-panel .addon-card footer .btn { min-width: 0; padding-left: 18px; padding-right: 18px; }
.addon-ver { text-align: right; }
.admin aside .logo-img { height: 40px; } @media (max-width: 600px) { .top .logo-img { height: 36px; } }

/* Subscription page */
.subs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.subs-head h1 { margin-bottom: 6px; } .subs-head .lead { margin: 0; }
.subs-status { display: flex; gap: 12px; flex-wrap: wrap; }
.subs-status > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.subs-status b { font-size: 20px; }
.subs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.subs-bar .seg { margin: 0; }
.seg .save { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 2px 7px; margin-left: 4px; }
.subs-bar .pay-with { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.subs-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.sub-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.sub-plan.is-popular { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2)) border-box; box-shadow: 0 18px 44px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.sub-plan.is-value { border: 2px solid var(--plum); box-shadow: 0 18px 44px color-mix(in srgb, var(--plum) 16%, transparent); }
.sub-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sub-top h2 { font-size: 22px; margin: 0; }
.is-popular .sub-top h2 { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { border-radius: 99px; font-size: 12px; font-weight: 700; padding: 5px 11px; white-space: nowrap; }
.badge.popular { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.badge.value { background: var(--plum); color: #fff; }
.sub-plan { container-type: inline-size; }
.sub-price { margin: 0; white-space: nowrap; } .sub-price b { font-size: clamp(26px, 11cqi, 44px); font-weight: 800; letter-spacing: -.02em; }
.sub-billed { margin: -8px 0 0; min-height: 1.4em; }
.sub-box { background: var(--soft); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sub-credits { margin: 0; display: flex; flex-direction: column; } .sub-credits b { font-size: 20px; }
.rate { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; font-size: 12px; font-weight: 600; padding: 3px 10px; color: var(--muted); }
.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 18px; } .dots li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.is-value .dots li::before { background: var(--plum); }
.sub-perks { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.perks-title { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.checks-sm { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.checks-sm li { position: relative; padding-left: 24px; }
.checks-sm li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.sub-cta { margin-top: auto; padding-top: 6px; } .sub-cta form { margin: 0; }
.btn.block { width: 100%; }
.btn.dark { background: var(--plum); color: #fff; } .btn.dark:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .6; cursor: default; }
.subs-cancel { margin-top: 16px; text-align: center; } .subs-cancel .link { font-size: 14px; color: var(--muted); align-self: auto; }
.subs-section { margin-top: 56px; }
@media (max-width: 600px) { .subs-status > div { flex: 1; min-width: 0; } .sub-plan { padding: 20px; } }
.packs-locked { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); max-width: 640px; } .packs-locked p { margin: 0; color: var(--muted); } .packs-locked svg { flex: none; color: var(--accent); }
.pay-methods { border: 0; padding: 0; margin: 0 0 24px; }
.pay-methods legend { font-weight: 600; margin-bottom: 10px; }
.pm-options { display: flex; gap: 12px; flex-wrap: wrap; }
.pm-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; min-width: 260px; flex: 1 1 260px; max-width: 420px; transition: border-color .15s, box-shadow .15s; }
.pm-option input { position: absolute; opacity: 0; pointer-events: none; }
.pm-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.pm-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--plum); flex: none; }
.pm-option:has(input:checked) .pm-icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.pm-text { display: flex; flex-direction: column; } .pm-text small { color: var(--muted); font-size: 13px; }
.pm-option::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line); }
.pm-option:has(input:checked)::after { border: 6px solid var(--accent); }
.pm-text { padding-right: 28px; }
.pm-operators { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pm-operators[hidden] { display: none; }
.subs-interval { justify-content: center; margin: 28px 0 0; }
.subs-interval { margin: 0 0 28px; }
.subs-pay { margin-top: 36px; text-align: center; }
.subs-pay .pay-methods { margin: 0 auto 8px; } .subs-pay .pay-methods legend { margin: 0 auto 12px; }
.subs-pay .pm-options, .subs-pay .pm-operators { justify-content: center; }
.subs-pay .pm-option { text-align: left; }
/* Subscription checkout */
.sub-plan.is-selected { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
[data-select-plan] .when-on, [data-select-plan][aria-pressed="true"] .when-off { display: none; }
[data-select-plan][aria-pressed="true"] .when-on { display: inline; }
.topup.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.subs-pay { margin-top: 36px; text-align: center; scroll-margin-top: 100px; }
.pay-summary { font-size: 17px; margin: 0 0 16px; }
.pay-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.pay-buttons > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-btn { min-width: 300px; padding: 14px 22px; border-radius: 16px; justify-content: flex-start; text-align: left; gap: 14px; }
.pay-btn span { display: flex; flex-direction: column; } .pay-btn small { font-weight: 400; font-size: 12px; opacity: .85; }
.pay-btn svg { flex: none; }
.pay-mm .pm-operators { margin: 0; justify-content: center; }
@media (max-width: 600px) { .pay-buttons > div, .pay-btn { width: 100%; min-width: 0; } }
.pay-mm .pm-operators { max-width: 340px; flex-wrap: wrap; } .pay-mm .pm-operators .chip { font-size: 13px; padding: 5px 11px; }
.subs-pay .pay-buttons + p { margin-top: 18px; }
.op-logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; width: 64px; }
.op-logo input { position: absolute; opacity: 0; pointer-events: none; }
.op-logo img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; border: 2px solid var(--line); padding: 0; transition: border-color .15s, transform .15s, box-shadow .15s; opacity: .85; }
.op-logo span { font-size: 11px; color: var(--muted); line-height: 1.2; text-align: center; }
.op-logo:hover img { opacity: 1; }
.op-logo:has(input:checked) img { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); opacity: 1; transform: translateY(-2px); }
.op-logo:has(input:checked) span { color: var(--ink); font-weight: 600; }
.op-logo:has(input:focus-visible) img { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-mm .pm-operators:has(.op-logo) { max-width: 380px; gap: 8px; margin-top: 4px; }
.op-logo { width: 46px; gap: 3px; } .op-logo img { width: 26px; height: 26px; border-radius: 7px; border-width: 1.5px; } .op-logo span { font-size: 10px; } .pay-mm .pm-operators:has(.op-logo) { gap: 4px; }
.btn.primary[data-select-plan][aria-pressed="true"] { background: var(--plum); color: #fff; box-shadow: none; transform: none; }
