:root {
  --bg: #0b0b10; --card: #15151d; --card2: #1c1c27; --line: #2a2a38;
  --text: #f2f2f7; --muted: #9a9ab0; --accent: #a78bfa; --accent2: #ec4899;
  --ok: #34d399; --bad: #f87171; --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { min-height: 100vh; background:
  radial-gradient(900px 500px at 80% -10%, rgba(167,139,250,.18), transparent 60%),
  radial-gradient(700px 400px at -10% 20%, rgba(236,72,153,.10), transparent 60%), var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 60px; }

.banner { background: #3b2f0b; color: #fde68a; text-align: center; padding: 8px 16px; font-size: 14px; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 18px 16px; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.brand .dim { color: var(--muted); font-weight: 500; margin-left: 4px; }
.top-actions { display: flex; gap: 8px; align-items: center; }

.btn { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.primary { border: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; border-radius: 14px; margin-top: 18px; }
.btn.wide { width: 100%; margin-top: 10px; }
.pill { border: 1px solid var(--line); background: var(--card2); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.pill .plus { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #111; margin-left: 6px; font-weight: 800; }

.hero { text-align: center; padding: 36px 0 28px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c4b5fd 60%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto; line-height: 1.55; }
.how { list-style: none; padding: 0; margin: 24px 0 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.how b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card2); margin-right: 6px; font-size: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.mode { text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mode.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mode-title { display: block; font-weight: 700; }
.mode-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { position: relative; min-height: 220px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card2);
  display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop-empty { text-align: center; padding: 16px; }
.drop-icon { font-size: 34px; }
.drop-title { font-weight: 700; margin-top: 6px; }
.drop-hint { color: var(--muted); font-size: 13px; margin-top: 2px; }
.drop video { width: 100%; height: 100%; max-height: 320px; object-fit: contain; background: #000; }
.x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); font-size: 18px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; padding: 10px; width: 100%; align-self: start; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { width: 22px; height: 22px; font-size: 14px; top: 4px; right: 4px; }
.thumb.add { display: grid; place-items: center; border: 1px dashed var(--line); background: transparent; font-size: 26px; color: var(--muted); }

.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
textarea, input[type=email], #otp { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  padding: 12px; font: inherit; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--text); color: #111; }
.cost { color: var(--muted); font-size: 15px; }
.cost b { color: var(--text); }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }

#history { margin-top: 36px; }
h2 { font-size: 22px; margin: 0 0 14px; }
.jobs { display: grid; gap: 12px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.job-meta { color: var(--muted); }
.status { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card2); }
.status.completed { color: var(--ok); } .status.failed, .status.nsfw, .status.canceled { color: var(--bad); }
.job video { width: 100%; max-height: 480px; border-radius: 12px; background: #000; }
.job .err { margin: 0; }
.progress { height: 6px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, var(--accent), var(--accent2)); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.job-actions { display: flex; gap: 8px; }
.job-actions a { text-decoration: none; }

.faq { margin-top: 44px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 40px; }

.modal { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 20px; padding: 24px; width: min(440px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.modal-x { position: absolute; top: 10px; right: 10px; margin: 0; }
.modal-x button { border: 0; background: transparent; font-size: 24px; color: var(--muted); }
.muted { color: var(--muted); }
.err { color: var(--bad); min-height: 1em; font-size: 14px; }
.packs { display: grid; gap: 8px; margin: 14px 0; }
.pack { display: flex; justify-content: space-between; align-items: center; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pack.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pack .p-name { font-weight: 700; } .pack .p-cred { color: var(--muted); font-size: 14px; }
.pack .p-price { font-weight: 800; font-size: 18px; }
.tag { font-size: 11px; background: var(--accent); color: #111; padding: 2px 8px; border-radius: 99px; margin-left: 6px; font-weight: 700; }
#paypal-buttons { min-height: 50px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: #111; padding: 12px 18px;
  border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 50; max-width: calc(100vw - 32px); }

.preset-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.35);
  border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.trend { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.thumbs.slots { grid-template-columns: 1fr 1fr; height: 100%; align-self: stretch; }
.thumb.slot { aspect-ratio: auto; min-height: 150px; border: 2px dashed var(--line); background: transparent; display: grid; place-content: center;
  text-align: center; gap: 6px; cursor: pointer; color: var(--muted); }
.thumb.slot:hover { border-color: var(--accent); color: var(--text); }
.slots .thumb { aspect-ratio: auto; min-height: 150px; }
.slot-plus { font-size: 30px; line-height: 1; }
.slot-label { font-size: 13px; font-weight: 600; padding: 0 6px; }
.slot-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.7); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.linkbtn { background: none; border: 0; color: var(--accent); padding: 8px 0 0; font-weight: 600; font-size: 14px; }
.breakdown { margin-top: 14px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.bd-math { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 15px; }
.bd-math span { color: var(--muted); } .bd-math b { font-size: 17px; }
.bd-note { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; } .bd-note b { color: var(--text); }

a { color: var(--accent); }
.lead a { color: #c4b5fd; }
.seo { margin-top: 44px; line-height: 1.65; color: #d4d4e0; }
.seo p { margin: 0 0 12px; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.seo-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.seo-grid span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.foot-links { margin-bottom: 8px; } .foot-links a { color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; line-height: 1.7; color: #d4d4e0; }
.article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; color: var(--text); letter-spacing: -0.02em; margin: 20px 0 12px; }
.article h2 { margin-top: 34px; color: var(--text); }
.article ol, .article ul { padding-left: 22px; } .article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article th { background: var(--card2); color: var(--text); }
.article img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.cta { display: block; text-align: center; text-decoration: none; margin: 24px 0; }
.crumbs { color: var(--muted); font-size: 14px; } .crumbs a { color: var(--muted); }

.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--card); }
.hero.small { padding: 18px 0 22px; }
.hero.small h1 { font-size: clamp(30px, 5vw, 44px); }
.price-chip { display: inline-block; margin: 14px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
main > .crumbs { padding-top: 6px; }
.drop.locked { cursor: default; }
.drop.locked:hover { border-color: var(--line); }
.lock-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.75); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.slot-hint { font-size: 12px; color: var(--muted); }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.trend-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.trend-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.tc-media { position: relative; aspect-ratio: 16/9; background: #000; }
.tc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-badge { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tc-custom { display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, rgba(167,139,250,.25), rgba(236,72,153,.18)); }
.tc-body { padding: 14px; display: grid; gap: 6px; }
.tc-body span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tc-body .tc-meta { font-size: 12px; color: #c4b5fd; }
.seo ol { padding-left: 22px; } .seo li { margin-bottom: 8px; }
.more { margin-top: 36px; color: var(--muted); }

.thumb.slot.has-example { position: relative; overflow: hidden; padding: 0; }
.slot-example { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.4); transition: opacity .15s; }
.thumb.slot.has-example:hover .slot-example { opacity: .2; }
.example-tag { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.7); color: #fde68a; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.slot-cta { position: relative; display: grid; gap: 4px; place-items: center; text-align: center; padding: 10px; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.has-example .slot-label, .has-example .slot-plus { color: var(--text); }
.has-example .slot-hint { color: #e4e4ee; }
.slot-add { margin-top: 4px; background: var(--text); color: #111; text-shadow: none; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.photo-tips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.photo-tips li.ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.photo-tips li.no::before { content: "✕ "; color: var(--bad); font-weight: 700; }

.see-example { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.grid2.eq { grid-template-columns: 1fr auto 1fr; align-items: center; }
.eq-op { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card2);
  border: 1px solid var(--line); color: var(--accent); font-size: 20px; font-weight: 800; }
.eq-result { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; }
.eq-video { position: relative; margin: 0; width: min(100%, 380px); }
.eq-video video { width: 100%; display: block; border-radius: 14px; border: 2px solid var(--accent); background: #000; }
.eq-tag { position: absolute; left: 8px; top: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.eq-sound { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); }

@media (max-width: 640px) {
  .grid2.eq { grid-template-columns: 1fr; justify-items: stretch; }
  .grid2.eq .eq-plus { justify-self: center; }
  .nav { margin-left: 8px; } .nav a { padding: 6px 8px; font-size: 14px; }
  .top-actions .btn.ghost { padding: 8px 10px; }
  .seo-grid { grid-template-columns: 1fr; }
  .grid2, .mode-switch { grid-template-columns: 1fr; }
  .drop { min-height: 170px; }
  .row { flex-direction: column; align-items: stretch; }
  .seg { justify-content: space-between; } .seg button { flex: 1; }
  .cost { text-align: center; }
  .brand .dim { display: none; }
}
