:root {
  --bg: #0b0b10;
  --card: #14141c;
  --line: #2a2a36;
  --text: #f5f5f7;
  --muted: #9b9ba8;
  --red: #ff2d2d;
  --red-2: #ff6a3d;
  --ok: #22c55e;
  --warn: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 4rem; }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  display: grid; place-items: center; font-weight: 800; letter-spacing: -.04em;
}
.brand strong { font-size: 1.15rem; letter-spacing: -.03em; }
.brand span { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.nav a, .nav button.ghost {
  font: 600 .85rem/1 "DM Sans", sans-serif; color: var(--muted);
  background: #1a1a22; border: 1px solid var(--line); padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
}
.nav a.primary, .btn {
  appearance: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff; font: 700 .95rem/1 "DM Sans", sans-serif;
  padding: .85rem 1.2rem; border-radius: 12px; display: inline-block;
}
.nav a.credits { color: #fff; border-color: #3a3a4a; }
.hero { padding: 2.2rem 0 1.3rem; }
.hero h1 {
  font-family: Teko, "DM Sans", sans-serif; font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: .95; margin: 0 0 .6rem; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: var(--muted); max-width: 42rem; font-size: 1.05rem; margin: 0; }
.tabs { display: flex; gap: .5rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.tab {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; font: 600 .9rem/1 "DM Sans", sans-serif;
}
.tab.on { background: #1f1f2a; color: #fff; border-color: #3a3a4a; }
.card, .auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem;
}
.auth-card { max-width: 420px; margin: 2.5rem auto; }
label { display: block; font-size: .8rem; color: var(--muted); margin: 0 0 .4rem; font-weight: 600; }
textarea, input[type=url], input[type=text], input[type=email], input[type=password], select {
  width: 100%; background: #0e0e14; border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: .85rem 1rem; font: 400 1rem/1.4 "DM Sans", sans-serif; margin-bottom: .85rem;
}
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .row.two { grid-template-columns: 1fr 1fr; } .packs { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.actions { display: flex; gap: .7rem; align-items: center; margin-top: 1.1rem; flex-wrap: wrap; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.secondary { background: #1f1f2a; border: 1px solid var(--line); }
.hint { color: var(--muted); font-size: .82rem; }
.drop {
  border: 1px dashed #3a3a4a; border-radius: 12px; padding: 1.2rem; text-align: center;
  color: var(--muted); cursor: pointer; background: #0e0e14; display: block;
}
.drop img { max-height: 120px; border-radius: 8px; display: block; margin: .4rem auto 0; }
.result { margin-top: 1.4rem; display: none; }
.result.show { display: block; }
.frame { aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: .8rem; flex-wrap: wrap; }
.badge { font-size: .75rem; color: var(--ok); font-weight: 700; }
.err { color: #fca5a5; font-size: .9rem; margin: .4rem 0 .8rem; }
.okmsg { color: var(--ok); font-size: .9rem; margin: .4rem 0 .8rem; }
.spin { width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: r .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes r { to { transform: rotate(360deg); } }
footer.foot { margin-top: 3rem; color: #6b6b78; font-size: .8rem; }
.panel { display: none; }
.panel.on { display: block; }
.lock {
  border: 1px solid var(--line); background: #12121a; border-radius: 16px; padding: 1.4rem; margin: 0 0 1rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.google {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; background: #fff; color: #111; font-weight: 700; border-radius: 12px; padding: .85rem 1rem; margin: .4rem 0 1rem;
}
.or { text-align: center; color: var(--muted); font-size: .8rem; margin: .4rem 0 1rem; }
.packs { display: grid; gap: 1rem; margin: 1.2rem 0; }
.pack {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; background: #101018; cursor: pointer;
}
.pack:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.pack h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.pack .price { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.pack .sub { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.thumb-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
