/* ============================================================
   Smarter Keys Daily — auth pages
   (signup · signin · email verify · 2FA setup · account)
   ============================================================ */
:root{
  --bg:#08080e;
  --panel:rgba(18,16,28,.82);
  --panel-2:#14141f;
  --stroke:rgba(255,255,255,.09);
  --stroke-2:rgba(255,255,255,.18);
  --text:#ecebf4;
  --muted:#9b9bb0;
  --muted-2:#6f6f85;
  --brand:#7c5cff;
  --brand-2:#b14bff;
  --ok:#25d366;
  --ok-2:#12b76a;
  --warn:#ffb020;
  --bad:#ff5c72;
  --ease:cubic-bezier(.22,1,.36,1);
  --r:22px;
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html,body{ min-height:100%; }
body{
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--text); line-height:1.55;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
  display:flex; flex-direction:column; min-height:100vh;
}
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
h1,h2,h3,b,input,button{ font-family:inherit; }
h1,h2,h3{ font-family:"Space Grotesk","Plus Jakarta Sans",sans-serif; letter-spacing:-.02em; }

/* ---- background ---- */
.bg{ position:fixed; inset:0; z-index:-1; overflow:hidden; }
.bg span{ position:absolute; border-radius:50%; filter:blur(95px); opacity:.5; }
.bg span:nth-child(1){ width:540px; height:540px; left:-160px; top:-180px; background:#4b2fd6; }
.bg span:nth-child(2){ width:480px; height:480px; right:-160px; top:80px; background:#8b2fd6; opacity:.35; }
.bg span:nth-child(3){ width:620px; height:620px; left:32%; bottom:-340px; background:#1f7ad6; opacity:.2; }
.bg::after{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}

/* ---- top bar ---- */
.top{
  max-width:1080px; width:100%; margin:0 auto; padding:22px 22px 4px;
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.brand{ display:flex; align-items:center; gap:11px; font-weight:700; font-size:1.1rem; }
.brand__mark{
  display:grid; place-items:center; width:40px; height:40px; border-radius:13px; overflow:hidden;
  background:linear-gradient(140deg,var(--brand),var(--brand-2));
  box-shadow:0 12px 30px -12px rgba(124,92,255,.95);
}
.brand__mark img{ width:100%; height:100%; object-fit:cover; display:block; }
.brand__text em{ color:var(--brand); font-style:normal; }
.top__link{ font-size:.86rem; color:var(--muted); }
.top__link b{ color:var(--text); }
.top__link:hover{ color:var(--text); }

/* ---- layout ---- */
.wrap{ flex:1; width:100%; display:flex; align-items:flex-start; justify-content:center; padding:22px 18px 60px; }
.shell{ width:100%; max-width:460px; }
.shell--wide{ max-width:640px; }

.card{
  position:relative; border-radius:var(--r); border:1px solid var(--stroke);
  background:var(--panel); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  box-shadow:0 40px 90px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
  padding:30px 30px 32px;
  animation:rise .6s var(--ease) both;
}
@keyframes rise{ from{ opacity:0; transform:translateY(16px) scale(.99); } to{ opacity:1; transform:none; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--brand-2); font-weight:700; margin-bottom:14px;
  padding:6px 12px; border:1px solid var(--stroke); border-radius:99px; background:rgba(124,92,255,.08);
}
.eyebrow i{ width:6px; height:6px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px rgba(37,211,102,.18); }
h1{ font-size:1.7rem; line-height:1.15; margin-bottom:8px; }
.lead{ color:var(--muted); font-size:.94rem; margin-bottom:22px; }
.lead b{ color:var(--text); }

/* ---- form ---- */
.field{ margin-bottom:16px; }
.field > label{ display:block; font-size:.8rem; font-weight:600; color:var(--muted); margin-bottom:7px; letter-spacing:.01em; }
.control{ position:relative; display:flex; align-items:center; }
.control input{
  width:100%; padding:13px 15px; border-radius:14px; border:1px solid var(--stroke);
  background:rgba(255,255,255,.03); color:var(--text); font-size:.95rem; transition:border-color .2s, background .2s, box-shadow .2s;
}
.control input::placeholder{ color:var(--muted-2); }
.control input:focus{ outline:none; border-color:var(--brand); background:rgba(124,92,255,.06); box-shadow:0 0 0 4px rgba(124,92,255,.14); }
.control input.is-bad{ border-color:var(--bad); }
.control__btn{
  position:absolute; right:6px; padding:7px 12px; border-radius:10px; font-size:.78rem; font-weight:600;
  color:var(--muted); transition:color .18s, background .18s;
}
.control__btn:hover{ color:var(--text); background:rgba(255,255,255,.06); }
.hint{ font-size:.74rem; color:var(--muted-2); margin-top:6px; }

.row-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:520px){ .row-2{ grid-template-columns:1fr; } }

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px; width:100%;
  padding:14px 20px; border-radius:14px; font-weight:700; font-size:.95rem;
  transition:transform .18s var(--ease), box-shadow .25s, opacity .2s, background .2s;
}
.btn svg{ width:18px; height:18px; }
.btn--primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff;
  box-shadow:0 18px 40px -18px rgba(124,92,255,.95);
}
.btn--primary:hover{ transform:translateY(-2px); box-shadow:0 24px 50px -18px rgba(124,92,255,1); }
.btn--primary:active{ transform:translateY(0) scale(.99); }
.btn--ghost{ border:1px solid var(--stroke); background:rgba(255,255,255,.03); color:var(--text); }
.btn--ghost:hover{ border-color:var(--stroke-2); background:rgba(255,255,255,.06); }
.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none !important; box-shadow:none; }
.btn--loading{ position:relative; color:transparent !important; }
.btn--loading::after{
  content:""; position:absolute; width:18px; height:18px; border-radius:50%;
  border:2px solid rgba(255,255,255,.4); border-top-color:#fff; animation:spin .7s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.swap{ text-align:center; margin-top:18px; font-size:.88rem; color:var(--muted); }
.swap a{ color:var(--brand-2); font-weight:600; }
.swap a:hover{ text-decoration:underline; }

/* ---- alerts ---- */
.alert{
  display:flex; gap:11px; align-items:flex-start; padding:13px 15px; border-radius:14px;
  font-size:.86rem; margin-bottom:18px; border:1px solid transparent; line-height:1.5;
}
.alert svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; }
.alert--bad{ background:rgba(255,92,114,.1); border-color:rgba(255,92,114,.3); color:#ffc2cc; }
.alert--ok{ background:rgba(37,211,102,.1); border-color:rgba(37,211,102,.3); color:#b7f5cd; }
.alert--info{ background:rgba(124,92,255,.1); border-color:rgba(124,92,255,.32); color:#d6c9ff; }
.alert--warn{ background:rgba(255,176,32,.1); border-color:rgba(255,176,32,.32); color:#ffe0a8; }
.alert a{ text-decoration:underline; font-weight:600; }
.alert code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.8rem; word-break:break-all; }

/* ---- steps ---- */
.steps{ display:flex; align-items:center; gap:8px; margin-bottom:22px; }
.steps__dot{
  display:grid; place-items:center; width:28px; height:28px; border-radius:50%; font-size:.76rem; font-weight:700;
  border:1px solid var(--stroke); color:var(--muted); background:rgba(255,255,255,.03); flex-shrink:0;
}
.steps__dot.is-on{ background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; border-color:transparent; }
.steps__dot.is-done{ background:rgba(37,211,102,.16); color:var(--ok); border-color:rgba(37,211,102,.4); }
.steps__bar{ height:2px; flex:1; background:var(--stroke); border-radius:2px; overflow:hidden; }
.steps__bar i{ display:block; height:100%; width:0; background:linear-gradient(90deg,var(--brand),var(--brand-2)); transition:width .4s var(--ease); }
.steps__bar.is-on i{ width:100%; }

/* ---- code input ---- */
.code{
  display:flex; gap:10px; justify-content:center; margin:6px 0 4px;
}
.code input{
  width:52px; height:62px; text-align:center; font-size:1.5rem; font-weight:700;
  border-radius:14px; border:1px solid var(--stroke); background:rgba(255,255,255,.03); color:var(--text);
  transition:border-color .18s, box-shadow .18s, background .18s;
}
.code input:focus{ outline:none; border-color:var(--brand); background:rgba(124,92,255,.08); box-shadow:0 0 0 4px rgba(124,92,255,.16); }
@media (max-width:420px){ .code input{ width:44px; height:54px; font-size:1.28rem; } }

/* ---- QR / 2FA ---- */
.qr-box{
  display:grid; place-items:center; gap:14px; padding:22px; margin:6px 0 18px;
  border:1px solid var(--stroke); border-radius:18px; background:rgba(255,255,255,.025);
}
.qr-canvas{
  width:236px; height:236px; border-radius:16px; background:#fff; padding:10px;
  box-shadow:0 20px 44px -22px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
}
.qr-canvas canvas{ width:100%; height:100%; border-radius:8px; display:block; }
.qr-box p{ font-size:.82rem; color:var(--muted); text-align:center; }
.secret{
  display:flex; align-items:center; gap:10px; justify-content:space-between; width:100%;
  padding:11px 14px; border-radius:12px; border:1px dashed var(--stroke-2); background:rgba(255,255,255,.03);
}
.secret code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.82rem; letter-spacing:.14em; color:var(--brand-2); word-break:break-all; }
.secret button{ font-size:.76rem; font-weight:700; color:var(--muted); padding:6px 10px; border-radius:9px; }
.secret button:hover{ color:var(--text); background:rgba(255,255,255,.07); }

/* ---- account ---- */
.who{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.who__av{
  display:grid; place-items:center; width:56px; height:56px; border-radius:16px; flex-shrink:0;
  background:linear-gradient(140deg,var(--brand),var(--brand-2)); color:#fff; font-weight:800; font-size:1.3rem;
  box-shadow:0 14px 34px -14px rgba(124,92,255,.95);
}
.who__meta b{ font-size:1.05rem; display:block; }
.who__meta span{ font-size:.84rem; color:var(--muted); }
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.tag{ font-size:.7rem; font-weight:700; padding:4px 10px; border-radius:99px; border:1px solid var(--stroke); color:var(--muted); }
.tag--ok{ color:var(--ok); border-color:rgba(37,211,102,.35); background:rgba(37,211,102,.08); }

.orders{ display:flex; flex-direction:column; gap:12px; }
.filters{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.fbtn{
  font-size:.78rem; font-weight:700; padding:8px 14px; border-radius:99px;
  border:1px solid var(--stroke); color:var(--muted);
  transition:color .18s, border-color .18s, background .18s, transform .18s;
}
.fbtn b{ opacity:.75; margin-left:4px; font-weight:700; }
.fbtn:hover{ color:var(--text); border-color:var(--stroke-2); }
.fbtn.is-on{
  color:#fff; border-color:transparent;
  background:linear-gradient(140deg,var(--brand),var(--brand-2));
  box-shadow:0 10px 24px -14px rgba(124,92,255,.95);
}
.order{
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  padding:15px 17px; border-radius:16px; border:1px solid var(--stroke); background:rgba(255,255,255,.025);
  transition:border-color .2s, transform .2s;
}
.order:hover{ border-color:var(--stroke-2); transform:translateY(-2px); }
.order__l b{ display:block; font-size:.94rem; }
.order__l span{ font-size:.78rem; color:var(--muted); }
.order__r{ display:flex; align-items:center; gap:12px; }
.order__amt{ font-weight:700; }
.st{ font-size:.7rem; font-weight:700; padding:4px 10px; border-radius:99px; text-transform:uppercase; letter-spacing:.04em; }
.st--pending{ background:rgba(255,176,32,.14); color:var(--warn); }
.st--paid{ background:rgba(124,92,255,.16); color:#c9b6ff; }
.st--delivered{ background:rgba(37,211,102,.14); color:var(--ok); }
.st--failed{ background:rgba(255,92,114,.14); color:var(--bad); }
.st--expired,.st--cancelled{ background:rgba(255,92,114,.14); color:var(--bad); }
.empty{ text-align:center; padding:34px 10px; color:var(--muted); }
.empty svg{ width:40px; height:40px; opacity:.5; margin-bottom:10px; }

/* ---- legal pages ---- */
.legal{ max-width:none; }
.legal__body{ color:var(--muted); font-size:.94rem; }
.legal__body h2{ color:var(--text); font-size:1.12rem; margin:28px 0 10px; }
.legal__body h2:first-child{ margin-top:8px; }
.legal__body h3{ color:var(--text); font-size:.98rem; margin:18px 0 8px; }
.legal__body p{ margin:0 0 12px; }
.legal__body ul{ margin:0 0 14px 20px; }
.legal__body li{ margin:4px 0; }
.legal__body strong{ color:var(--text); }
.legal__updated{ font-size:.78rem; color:var(--muted-2); margin-bottom:10px; }
.legal__nav{ display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; padding-top:18px; border-top:1px solid var(--stroke); }
.legal__nav a{ font-size:.8rem; padding:7px 12px; border-radius:99px; border:1px solid var(--stroke); color:var(--muted); transition:color .18s, border-color .18s; }
.legal__nav a:hover{ color:var(--text); border-color:var(--stroke-2); }

.hr{ height:1px; background:var(--stroke); margin:22px 0; }
.sec-title{ font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-2); font-weight:700; margin-bottom:14px; }

.foot{ text-align:center; padding:18px; font-size:.76rem; color:var(--muted-2); }
.foot a{ color:var(--muted); }

/* toast */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%, 120%);
  padding:13px 20px; border-radius:14px; background:rgba(20,18,30,.96); border:1px solid var(--stroke-2);
  font-size:.88rem; box-shadow:0 24px 50px -20px rgba(0,0,0,.9); z-index:50;
  transition:transform .4s var(--ease); max-width:90vw; text-align:center;
}
.toast.is-on{ transform:translate(-50%, 0); }
.toast--ok{ border-color:rgba(37,211,102,.4); }
.toast--bad{ border-color:rgba(255,92,114,.4); }

@media (max-width:520px){
  .card{ padding:24px 20px 26px; }
  h1{ font-size:1.5rem; }
}
