/* Imaginator AI — flow screens (вход / оплата) */

:root{
  --bg:#100c07; --bg-2:#15110a; --surface:#1b160f; --surface-2:#221c13; --surface-3:#2a2318;
  --line:rgba(240,205,110,.12); --line-2:rgba(240,205,110,.22);
  --text:#f7f1e6; --muted:#b3a78f; --faint:#7c7361;
  --acc-1:#f7d27a; --acc-2:#dca642; --acc-3:#b9821f; --ink:#191205;
  --tg:#54a9eb; --ok:#5cc98a; --glow:rgba(232,184,75,.26);
  --r:18px; --r-lg:26px; --ease:cubic-bezier(.2,.7,.2,1);
}
*{ box-sizing:border-box; }
html,body{ margin:0; min-height:100%; }
body{ background:radial-gradient(55% 42% at 80% -8%, var(--glow), transparent 60%),
  radial-gradient(45% 32% at 6% 4%, rgba(220,166,66,.08), transparent 65%), var(--bg);
  color:var(--text); font-family:'Onest',system-ui,sans-serif; font-size:16px; -webkit-font-smoothing:antialiased;
  min-height:100vh; display:flex; flex-direction:column; }
button{ font-family:inherit; cursor:pointer; border:none; }
a{ color:inherit; text-decoration:none; }
.gold{ background:linear-gradient(110deg,var(--acc-1),var(--acc-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tnum{ font-variant-numeric:tabular-nums; }

/* top bar */
.bar{ display:flex; align-items:center; justify-content:space-between; padding:22px 30px; }
.brand{ display:flex; align-items:center; gap:12px; font-weight:700; font-size:20px; letter-spacing:-.01em; }
.swirl{ width:34px; height:34px; border-radius:50%; position:relative;
  background:conic-gradient(from 210deg,var(--acc-3),var(--acc-1),#fff6dd,var(--acc-2),var(--acc-3));
  box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.25), 0 0 18px var(--glow); }
.swirl::after{ content:""; position:absolute; inset:33%; border-radius:50%; background:var(--bg); }
.bar .back{ font-size:15px; color:var(--muted); }
.bar .back:hover{ color:var(--text); }

/* layout */
.stage{ flex:1; display:flex; align-items:center; justify-content:center; padding:24px 30px 60px; }
.card{ width:100%; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }

/* buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; font-size:16px; font-weight:700;
  padding:16px 26px; border-radius:14px; width:100%; transition:transform .18s var(--ease), box-shadow .18s, background .18s, opacity .18s; color:var(--text); }
.btn-primary{ background:linear-gradient(110deg,var(--acc-1),var(--acc-2)); color:var(--ink); box-shadow:0 12px 32px var(--glow); }
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 16px 40px var(--glow); }
.btn-primary:disabled{ opacity:.4; cursor:not-allowed; box-shadow:none; transform:none; filter:grayscale(.4); }
.btn-tg{ background:var(--tg); color:#fff; }
.btn-tg:hover{ transform:translateY(-1px); filter:brightness(1.06); }
.btn-ghost{ background:rgba(255,255,255,.04); border:1px solid var(--line-2); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); }

/* ===== LOGIN ===== */
.auth{ max-width:1000px; display:grid; grid-template-columns:1fr 1fr; }
.auth .visual{ position:relative; padding:48px; background:linear-gradient(160deg,var(--surface-2),var(--surface)); border-right:1px solid var(--line); display:flex; flex-direction:column; }
.auth .visual h2{ font-size:30px; font-weight:800; letter-spacing:-.02em; line-height:1.1; margin:26px 0 14px; }
.auth .visual p{ font-size:15.5px; color:var(--muted); margin:0; max-width:30ch; }
.thumbs{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:auto; }
.thumb{ aspect-ratio:3/4; border-radius:13px; position:relative; overflow:hidden; border:1px solid var(--line); }
.thumb .em{ position:absolute; left:10px; bottom:9px; font-size:18px; filter:drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.auth .form{ padding:48px; display:flex; flex-direction:column; }
.auth .form h1{ font-size:27px; font-weight:800; letter-spacing:-.02em; margin:0 0 8px; }
.auth .form .lead{ font-size:15px; color:var(--muted); margin:0 0 28px; }
.divider{ display:flex; align-items:center; gap:14px; color:var(--faint); font-size:13px; margin:22px 0; }
.divider::before,.divider::after{ content:""; flex:1; height:1px; background:var(--line); }

/* fields */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13.5px; color:var(--muted); margin-bottom:8px; font-weight:500; }
.input{ width:100%; padding:15px 16px; font-size:16px; font-family:inherit; color:var(--text);
  background:var(--bg-2); border:1px solid var(--line-2); border-radius:12px; outline:none; transition:border-color .18s, box-shadow .18s; }
.input::placeholder{ color:var(--faint); }
.input:focus{ border-color:var(--acc-2); box-shadow:0 0 0 3px rgba(247,210,122,.12); }
.trust{ display:flex; gap:16px; flex-wrap:wrap; margin-top:22px; color:var(--faint); font-size:13.5px; }
.trust span{ display:inline-flex; align-items:center; gap:7px; } .trust .ic{ color:var(--acc-1); }
.legal{ font-size:12.5px; color:var(--faint); margin-top:18px; line-height:1.5; }
.legal a{ color:var(--muted); text-decoration:underline; }

/* otp */
.otp{ display:flex; gap:10px; }
.otp input{ width:100%; aspect-ratio:1/1; text-align:center; font-size:24px; font-weight:700; color:var(--text);
  background:var(--bg-2); border:1px solid var(--line-2); border-radius:12px; outline:none; }
.otp input:focus{ border-color:var(--acc-1); box-shadow:0 0 0 3px rgba(247,210,122,.14); }
.muted-row{ font-size:13.5px; color:var(--muted); margin-top:16px; text-align:center; }
.muted-row b{ color:var(--text); } .muted-row .link{ color:var(--acc-1); cursor:pointer; }
.hidden{ display:none !important; }

/* ===== PAYMENT ===== */
.pay{ max-width:980px; display:grid; grid-template-columns:1fr .92fr; }
.pay .left{ padding:44px; border-right:1px solid var(--line); }
.pay .right{ padding:44px; background:linear-gradient(160deg,var(--surface-2),var(--surface)); }
.pay h1{ font-size:26px; font-weight:800; letter-spacing:-.02em; margin:0 0 6px; }
.pay .lead{ font-size:14.5px; color:var(--muted); margin:0 0 26px; }
.packs{ display:flex; flex-direction:column; gap:12px; }
.pk{ display:flex; align-items:center; gap:14px; padding:18px; border-radius:16px; border:1px solid var(--line); background:var(--surface); cursor:pointer; transition:border-color .18s, background .18s; }
.pk:hover{ border-color:var(--line-2); }
.pk.sel{ border-color:var(--acc-1); box-shadow:0 0 0 1px var(--acc-1); background:linear-gradient(110deg,var(--surface-2),var(--surface)); }
.pk .radio{ width:22px; height:22px; border-radius:50%; border:2px solid var(--line-2); flex:0 0 auto; position:relative; }
.pk.sel .radio{ border-color:var(--acc-1); }
.pk.sel .radio::after{ content:""; position:absolute; inset:4px; border-radius:50%; background:linear-gradient(110deg,var(--acc-1),var(--acc-2)); }
.pk .pi{ flex:1; }
.pk .pn{ font-size:16px; font-weight:700; } .pk .pn .hit{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ink); background:linear-gradient(110deg,var(--acc-1),var(--acc-2)); padding:2px 8px; border-radius:999px; margin-left:8px; }
.pk .pd{ font-size:13px; color:var(--muted); }
.pk .pp{ font-size:20px; font-weight:800; }

.method{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.m{ padding:13px; text-align:center; border-radius:12px; border:1px solid var(--line-2); background:var(--bg-2); font-size:14px; font-weight:600; color:var(--muted); cursor:pointer; transition:.18s; }
.m.sel{ border-color:var(--acc-1); color:var(--text); background:var(--surface-2); }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.summary{ margin:8px 0 20px; }
.sumrow{ display:flex; justify-content:space-between; align-items:baseline; padding:11px 0; border-bottom:1px solid var(--line); font-size:15px; color:var(--muted); }
.sumrow b{ color:var(--text); }
.sumrow.total{ border-bottom:none; padding-top:16px; font-size:16px; }
.sumrow.total .amt{ font-size:26px; font-weight:800; }
.pay-note{ font-size:12.5px; color:var(--faint); margin-top:14px; line-height:1.5; text-align:center; }

/* success */
.success{ max-width:480px; text-align:center; padding:52px 44px; }
.success .badge{ width:78px; height:78px; border-radius:50%; margin:0 auto 22px; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 50% 35%, rgba(92,201,138,.3), rgba(92,201,138,.08)); border:1px solid rgba(92,201,138,.4); color:var(--ok); font-size:36px; }
.success h1{ font-size:28px; font-weight:800; letter-spacing:-.02em; margin:0 0 10px; }
.success p{ font-size:15.5px; color:var(--muted); margin:0 0 6px; }
.success .credited{ font-size:18px; font-weight:700; color:var(--acc-1); margin:18px 0 28px; }

/* spinner */
.ring{ width:22px; height:22px; border-radius:50%; border:2.5px solid rgba(25,18,5,.3); border-top-color:var(--ink); animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* responsive */
@media (max-width:820px){
  .auth, .pay{ grid-template-columns:1fr; max-width:480px; }
  .auth .visual{ display:none; }
  .pay .left{ border-right:none; border-bottom:1px solid var(--line); }
  .auth .form, .pay .left, .pay .right{ padding:32px; }
}
