/* Signup form, admin and keygen pages. Same purple theme as the landing page (site.css). */
:root {
  --bg: #0B0614;
  --bg2: #14082A;
  --card: #1A0E33;
  --card2: #24124A;
  --line: rgba(196, 181, 253, .16);
  --text: #FFFFFF;
  --muted: #A79BC7;
  --accent: #8B5CF6;
  --accent2: #A78BFA;
  --deep: #7C3AED;
  --ok: #34D399;
  --bad: #F87171;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(124, 58, 237, .32), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(139, 92, 246, .16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); }
h1 { font-family: "Saira", "Inter", sans-serif; font-style: italic; font-weight: 800; letter-spacing: 0; }
.brand-home { display: contents; }
.brand img { width: 26px !important; height: 26px !important; border-radius: 0 !important;
             filter: drop-shadow(0 0 8px rgba(139, 92, 246, .6)); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 14px;
              border-radius: 12px; border: 1px solid var(--line); background: #0F0A22; color: var(--text); font: inherit;
              cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.choice.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .choice.three { grid-template-columns: 1fr; } }
.choice-btn b { font-size: 16px; }
.choice-btn span { color: var(--muted); font-size: 12.5px; }
.choice-btn:hover { border-color: rgba(139, 92, 246, .5); }
.choice-btn.on { border-color: var(--accent); background: rgba(139, 92, 246, .14); box-shadow: 0 0 0 4px rgba(139, 92, 246, .16); }
.field.bad .choice-btn { border-color: var(--bad); }
.idbox { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 12px;
         border: 1px solid rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .1); }
.idbox code { flex: 1; font: 600 18px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; word-break: break-all; }
/* ---------- member pages ---------- */
.wrap.narrow { max-width: 460px; }
.brand .right { margin-left: auto; }
.mono-tag { font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.acct-id { font: 600 20px/1.3 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.sub.small { font-size: 13px; margin: 4px 0 0; }
.acct-owed { display: flex; flex-direction: column; align-items: flex-end; padding: 10px 16px; border-radius: 12px;
             background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); }
.acct-owed span { font-size: 12px; color: var(--muted); font-weight: 600; }
.acct-owed b { font-size: 22px; }
.acct-owed.zero { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .4); }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.item.acct { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
select.groupsel { width: auto; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.pill.submitted { color: #E4D8FF; background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .4); }
.pill.loaded { color: #C9F7E4; background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .45); }
.pill.paused { color: #FECACA; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .45); }
.paybox { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0;
          border-color: rgba(248, 113, 113, .4); }
.paybox .help { margin-top: 4px; }
.paybtns { display: flex; gap: 8px; flex-wrap: wrap; }
.joinbox { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0;
           border-color: rgba(88, 101, 242, .45); background: linear-gradient(135deg, rgba(88, 101, 242, .14), var(--bg2)); }
.joinbox .help { margin-top: 4px; }
.item.hist { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.item.hist .help { margin-top: 2px; }
.item.hist .amt { font-weight: 700; white-space: nowrap; }
.item.hist.payment .amt, .item.hist.credit .amt { color: var(--ok); }
.items + .help { margin-bottom: 18px; }
.pwcard { margin-top: 24px; }
.pwcard summary { cursor: pointer; font-weight: 600; }
.pwcard[open] summary { margin-bottom: 14px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.nav a.btn { flex: 1; }

/* ---------- admin center ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab { background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px;
       padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .4); }
.tab.right { margin-left: auto; font-weight: 500; }
.note.good { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .4); color: #C9F7E4; }
.items { display: grid; gap: 12px; margin: 14px 0; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.item.add { border-color: rgba(139, 92, 246, .45); background: linear-gradient(180deg, rgba(139, 92, 246, .1), var(--card)); }
.item h3 { font-size: 15px; margin-bottom: 12px; }
.item h3 small { color: var(--muted); font-weight: 400; }
.item h3 code { font: 600 14px/1.4 ui-monospace, Menlo, Consolas, monospace; color: #E4D8FF; }
.itemhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.itemhead h3 { margin-bottom: 10px; }
.now { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
label.mini { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0; }
label.mini.wide { margin-bottom: 10px; }
label.mini input { font-size: 15px; padding: 10px 12px; color: var(--text); font-weight: 400; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #0F0A22; border: 1px solid var(--line); margin-bottom: 12px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
              padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: linear-gradient(135deg, var(--accent2), var(--deep)); color: #fff; }
/* one compact row on wide screens: [% of resale | Set fee] [resale] [%] [PAS] [Save] [Remove] */
.pricebox { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pricebox .seg { margin-bottom: 0; }
.pricefields { display: flex; gap: 12px; flex: 1 1 320px; align-items: flex-end; }
.pricefields > label.mini { flex: 1 1 100px; min-width: 0; }
.pricefields > .pas { flex: 0 0 112px; }
.pricebox .acts { margin-top: 0; }
@media (max-width: 620px) { .pricefields { flex-wrap: wrap; } .pricefields > .pas { flex: 1 1 100%; } }
.dollar, .pct { position: relative; display: block; }
.dollar input { padding-left: 24px !important; }
.dollar::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.pct input { padding-right: 26px !important; }
.pct::after { content: "%"; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.pas { display: flex; flex-direction: column; gap: 1px; padding: 5px 12px; border-radius: 12px; background: rgba(139, 92, 246, .12);
       border: 1px solid rgba(139, 92, 246, .35); }
.pas span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pas b { font-size: 18px; line-height: 1.25; color: #fff; }
.acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.row-inline { display: flex; gap: 10px; align-items: center; }
.row-inline .dollar { width: 140px; }
.item.win { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.winpic { width: 64px; height: 64px; border-radius: 8px; background: #fff; object-fit: contain; padding: 5px; }
.winpic.empty { background: transparent; padding: 14px; }
.winfields { display: grid; grid-template-columns: 1fr 80px; gap: 0 12px; }
.winfields label:last-child { grid-column: 1 / -1; margin-bottom: 0; }
.item.win .acts { margin-top: 0; flex-direction: column; }
@media (max-width: 620px) {
  .item.win { grid-template-columns: 52px 1fr; }
  .winpic { width: 52px; height: 52px; }
  .item.win .acts { grid-column: 1 / -1; flex-direction: row; }
}
.kv.owed { grid-template-columns: 110px 1fr; }
.toolbar input[type=search] { max-width: 260px; margin-left: auto; }
.item.member .kv { margin-bottom: 6px; }
.now.owes { color: #FECACA; font-weight: 700; }
.acctrow { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.acctline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acctline b { word-break: break-all; }
.acctline .help { margin: 0; flex: 1; }
.acctline select.status { width: auto; padding: 6px 10px; font-size: 13px; font-weight: 700; }
select.status.loaded { border-color: rgba(52, 211, 153, .6); color: #C9F7E4; }
select.status.paused { border-color: rgba(248, 113, 113, .6); color: #FECACA; }
.acctrow .acts { margin-top: 8px; }
.acctrow .kv { margin-top: 10px; }
.oldhead { margin: 26px 0 10px; font-size: 15px; color: var(--muted); }
select.groupfilter { width: auto; padding: 9px 12px; font-size: 14px; }
.groupcounts { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
select.status.group-needoh { border-color: rgba(139, 92, 246, .6); }
select.status.group-pokemon { border-color: rgba(250, 204, 21, .55); color: #FDE68A; }
.linked { align-self: center; font-size: 13px; font-weight: 700; color: var(--ok); }
.kv.owed span { color: #E4D8FF; font-weight: 600; grid-column: auto; }
.wrap { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.wide { max-width: 980px; }

/* header */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand b { font-size: 18px; letter-spacing: .2px; }
.brand span { display: block; color: var(--muted); font-size: 13px; }
.lock { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line);
        padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* progress */
.steps { display: flex; gap: 6px; margin-bottom: 10px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .35s ease; }
.steps i.on { background: linear-gradient(90deg, var(--accent2), var(--deep)); }
.steplabel { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* card */
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
h1 { font-size: 24px; margin-bottom: 6px; letter-spacing: -.3px; }
h2 { font-size: 20px; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

.step { display: none; animation: fade .35s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* fields */
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row, .row3 { grid-template-columns: 1fr; } }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #0F0A22; color: var(--text); font: inherit; font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #6E6390; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.err { display: none; color: var(--bad); font-size: 12.5px; margin-top: 6px; }
.field.bad .err { display: block; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 8px; padding: 6px 10px; font-size: 12px; background: var(--card2);
             border: 1px solid var(--line); color: var(--muted); border-radius: 8px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* buttons */
.nav { display: flex; gap: 10px; margin-top: 22px; }
.btn { flex: 1; padding: 14px 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 15px;
       cursor: pointer; transition: transform .1s, filter .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent2), var(--deep)); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); flex: 0 0 auto; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.small { flex: 0 0 auto; padding: 8px 12px; font-size: 13px; }
.btn.danger { background: transparent; border: 1px solid #5b2333; color: var(--bad); }

/* review */
.review { display: grid; gap: 10px; }
.review div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; background: #0F0A22;
              border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.review span { color: var(--muted); flex: none; }
.review b { text-align: right; word-break: break-all; }

.note { background: rgba(139, 92, 246, .10); border: 1px solid rgba(139, 92, 246, .35); color: #E4D8FF;
        border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin: 16px 0; }
.done { text-align: center; padding: 18px 4px; }
.done .big { font-size: 46px; margin-bottom: 8px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }
.hidden { display: none !important; }

/* inbox */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input[type=password] { max-width: 260px; }
.toolbar input[type=file] { max-width: 300px; padding: 9px; font-size: 14px; }
.profiles { display: grid; gap: 14px; }
.profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.profile h3 { display: flex; gap: 10px; align-items: center; font-size: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.profile h3 small { color: var(--muted); font-weight: 400; }
.kv { display: grid; grid-template-columns: 170px 1fr auto; gap: 6px 10px; align-items: center; font-size: 14px; }
.kv span { color: var(--muted); }
.kv code { background: #0F0A22; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; word-break: break-all; }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr auto; } .kv span { grid-column: 1 / -1; } }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }

/* My account: referral link */
.refbox .refrow { display: flex; gap: 8px; margin: 10px 0 6px; }
.refbox .refrow input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.refbox { margin: 18px 0; }
