/* Unifex member accounts — sign up, log in, trader ID lock and profile. Same crimson glass as the signal page. */
.hidden { display: none !important; }

/* account button in the top bar */
.pill.acct { gap: 8px; padding: 0 14px 0 5px; background: rgba(255, 255, 255, .05); cursor: pointer; }
.pill.acct:not(.in) { padding-left: 14px; background: linear-gradient(90deg, var(--red-2), var(--red)); border: 0; box-shadow: 0 0 18px var(--red-glow); }
.pill.acct:not(.in) .av { display: none; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 30% 25%, #ff7a8c, var(--red) 55%, #6d0a1c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); }
.av.big { width: 54px; height: 54px; font-size: 22px; flex: none; }
.tier { font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: .1em; padding: 3px 7px; border-radius: 99px; color: #2a1600;
  background: linear-gradient(90deg, #ffd27a, #ffb547); box-shadow: 0 0 12px rgba(255, 181, 71, .45); }

/* lock tag on broker cards */
.broker-row button { position: relative; }
.vtag { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--ink-3); }
.vtag.approved { background: linear-gradient(90deg, #ffd27a, #ffb547); color: #2a1600; box-shadow: 0 0 12px rgba(255, 181, 71, .35); }
.vtag.pending { background: rgba(255, 181, 71, .14); color: var(--amber); }
.vtag.rejected { background: rgba(255, 42, 72, .16); color: #ff8798; }

/* dialogs */
.mdl { width: min(470px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 26px 24px 22px; margin: auto;
  border-radius: 24px; border: 1px solid rgba(255, 90, 110, .28); color: var(--ink);
  background: radial-gradient(420px 220px at 100% 0, rgba(255, 42, 72, .22), transparent 70%), linear-gradient(160deg, #24121a, #120c10 60%);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px -10px rgba(255, 42, 72, .35); }
.mdl.wide { width: min(600px, calc(100% - 24px)); }
.mdl[open] { animation: mdl-in .38s cubic-bezier(.2, 1.2, .35, 1); }
.mdl::backdrop { background: rgba(8, 4, 6, .72); backdrop-filter: blur(6px); }
.mdl.shake { animation: mdl-shake .38s; }
@keyframes mdl-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes mdl-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.mdl h2 { font-size: 21px; margin: 0; }
.mdl p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; transition: all .18s; }
.x:hover { background: rgba(255, 42, 72, .2); color: #fff; transform: rotate(90deg); }
.mdl-head { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.badge-ic { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 10px 26px var(--red-glow); }
.mtabs { display: flex; margin: 20px 0 16px; }
.mtabs button { flex: 1; padding: 9px 0; }

/* fields */
.fl { display: block; margin-bottom: 12px; }
.fl > span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.fl em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.mdl input, .mdl select { width: 100%; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .38);
  color: var(--ink); font: inherit; font-size: 14px; outline: none; transition: border-color .18s, box-shadow .18s; }
.mdl input:focus, .mdl select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 42, 72, .16); }
.mdl input::placeholder { color: var(--ink-3); }
.mdl select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-3) 50%);
  background-position: right 16px top 20px, right 11px top 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.mdl select option { background: #1a1014; }
.pwd { position: relative; display: block; }
.pwd input { padding-right: 70px; }
.eye { position: absolute; right: 7px; top: 7px; height: 32px; padding: 0 11px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.opt { margin: 4px 0 16px; padding: 14px; border-radius: 16px; border: 1px dashed rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .05); }
.opt-h { display: flex; align-items: center; gap: 8px; }
.opt-h b { font-size: 13.5px; }
.opt-h em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: rgba(255, 181, 71, .16); color: var(--amber); }
.opt p { font-size: 12.5px; margin: 6px 0 10px; }
.tid { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.tid.send { grid-template-columns: 1fr auto; margin-top: 10px; }
.tid.send .btn { height: 46px; padding: 0 22px; }
.mdl .btn.wide { width: 100%; }
.mdl .btn:disabled { opacity: .6; cursor: progress; }
.btn.busy { color: transparent; }
.btn.busy::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: mspin .7s linear infinite; }
@keyframes mspin { to { transform: rotate(360deg); } }
.mmsg { min-height: 18px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.mmsg:empty { min-height: 0; margin: 0; }
.mmsg.err { color: #ff8798; }
.mmsg.ok { color: var(--green); }
.fine { font-size: 11.5px !important; color: var(--ink-3) !important; text-align: center; margin-top: 12px !important; }

/* lock */
#lock { text-align: center; }
.lock-art { position: relative; width: 84px; height: 84px; margin: 4px auto 16px; border-radius: 26px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 42, 72, .28), rgba(255, 42, 72, .04) 70%); }
.lock-art::before { content: ""; position: absolute; inset: -8px; border-radius: 32px; border: 1px solid rgba(255, 42, 72, .35); animation: lpulse 2.2s ease-out infinite; }
.lock-art img { width: 50px; height: 50px; border-radius: 14px; object-fit: contain; background: rgba(255, 255, 255, .06); padding: 6px; }
.lk { position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2)); border: 3px solid #160d11; }
.lock-art.pending::before { border-color: rgba(255, 181, 71, .45); }
.lock-art.pending .lk { background: linear-gradient(135deg, #ffd27a, #ffb547); color: #2a1600; }
@keyframes lpulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.lock-p { max-width: 36ch; margin: 6px auto 0 !important; }
.how { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; padding: 13px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.how li > b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 0 14px var(--red-glow); }
.how li > div { flex: 1; min-width: 0; }
.how strong { display: block; font-size: 14px; }
.how span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.go { display: inline-flex; align-items: center; height: 34px; margin-top: 9px; padding: 0 15px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, var(--red-2), var(--red)); box-shadow: 0 0 18px var(--red-glow); transition: transform .18s; }
.go:hover { transform: translateY(-1px); }
.mdl .wait { display: flex; gap: 14px; align-items: center; text-align: left; margin-top: 20px; padding: 15px; border-radius: 16px; border: 1px solid rgba(255, 181, 71, .3); background: rgba(255, 181, 71, .06); }
.mdl .wait strong { display: block; font-size: 14px; }
.mdl .wait strong i { font-style: normal; font-family: var(--mono); color: var(--amber); }
.mdl .wait span:not(.hg) { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.hg { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 181, 71, .2); border-top-color: var(--amber); animation: mspin 1.1s linear infinite; }

/* profile */
.prof-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; flex-wrap: wrap; }
.prof-head > div { flex: 1; min-width: 0; }
.prof-head p { overflow-wrap: anywhere; }
.tier-pill { font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--ink-2); border: 1px solid var(--line-2); }
.tier-pill.vip { color: #2a1600; border: 0; background: linear-gradient(90deg, #ffd27a, #ffb547); box-shadow: 0 0 16px rgba(255, 181, 71, .35); }
.blist { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.brow.approved { border-color: rgba(255, 181, 71, .35); background: linear-gradient(135deg, rgba(255, 181, 71, .08), rgba(0, 0, 0, .28)); }
.brow img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: rgba(255, 255, 255, .06); padding: 5px; }
.bmeta { min-width: 0; }
.bmeta b { display: block; font-size: 14px; }
.bmeta small { display: block; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.reg { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 700; color: #ff8798; text-decoration: none; }
.reg:hover { text-decoration: underline; }
.chip { font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; background: rgba(255, 255, 255, .07); color: var(--ink-3); }
.chip.approved { background: linear-gradient(90deg, #ffd27a, #ffb547); color: #2a1600; }
.chip.pending { background: rgba(255, 181, 71, .14); color: var(--amber); }
.chip.rejected { background: rgba(255, 42, 72, .16); color: #ff8798; }
.tid.inline { grid-column: 2 / -1; grid-template-columns: 1fr auto; margin-top: 6px; }
.tid.inline input { height: 38px; font-size: 13px; }
.tid.inline .mini { height: 38px; padding: 0 16px; cursor: pointer; font-weight: 700; }
.tid.inline[hidden] { display: none; }
.pset { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pset summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 4px 0 10px; }
.pset .btn { height: 44px; }
.prof-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.prof-foot .mini { cursor: pointer; }
.prof-foot .mini:hover { border-color: var(--red); color: #fff; }

@media (max-width: 560px) {
  .mdl { padding: 22px 16px 18px; border-radius: 20px; }
  .tid { grid-template-columns: 1fr; }
  .tid.send, .tid.inline { grid-template-columns: 1fr auto; }
  .brow { grid-template-columns: 36px 1fr; }
  .brow .chip { grid-column: 2; justify-self: start; }
  .tid.inline { grid-column: 1 / -1; }
  .top { align-items: center; flex-direction: row; gap: 6px; }
  .brand { min-width: 0; flex: 0 1 auto; gap: 6px; }
  .brand img { width: 30px; height: 30px; border-radius: 9px; }
  .brand > div { min-width: 0; }
  .brand b { white-space: nowrap; font-size: 11.5px; letter-spacing: -.035em; }
  .brand span { font-size: 9px; }
  .top-actions { width: auto; flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
  .top-actions .pill.blue { width: 28px; height: 30px; gap: 0; justify-content: center; padding: 0; font-size: 0; }
  .top-actions .pill.blue svg { width: 16px; height: 16px; }
  .top-actions .pill.acct {
    display: flex !important; width: auto; min-width: 0; height: 34px; gap: 4px;
    justify-content: flex-start; padding: 0 5px; white-space: nowrap;
  }
  .pill.acct #acct-name { flex: 0 1 auto; min-width: 0; max-width: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; }
  .pill.acct .av { flex: none; width: 22px; height: 22px; font-size: 10px; }
  .pill.acct .tier { flex: none; padding: 2px 4px; font-size: 8px; letter-spacing: .06em; }
  .pill.acct .tok { flex: none; padding: 2px 4px; font-size: 9px; }
}
@media (max-width: 359px) { .top-actions .pill.blue { display: none; } }
@media (prefers-reduced-motion: reduce) { .mdl[open], .lock-art::before, .hg { animation: none; } }
@media (max-width: 560px) { .prof-head > div { flex-basis: calc(100% - 70px); } .prof-head h2 { font-size: 19px; } .prof-head p { font-size: 12.5px; } }

/* ---------- tokens ---------- */
.tok { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; color: #ffd27a; background: rgba(255, 181, 71, .13); border: 1px solid rgba(255, 181, 71, .3); font-family: var(--mono); }
.vtag.tokens { background: rgba(255, 181, 71, .14); color: #ffd27a; border: 1px solid rgba(255, 181, 71, .3); }
.lock-tok { display: flex; gap: 12px; align-items: center; text-align: left; margin-top: 14px; padding: 13px 14px; border-radius: 16px; border: 1px dashed rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .05); }
.lock-tok .bolt { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: rgba(255, 181, 71, .14); }
.lock-tok div { flex: 1; min-width: 0; }
.lock-tok strong { display: block; font-size: 13.5px; }
.lock-tok span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.lock-tok b { color: #ffd27a; }
.lock-tok .mini, .tokcard .mini { flex: none; height: 34px; padding: 0 14px; font-weight: 800; color: #2a1600; border: 0; background: linear-gradient(90deg, #ffd27a, #ffb547); text-decoration: none; }
.lock-tok.dry { border-style: solid; border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .09); }
.tokcard { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid rgba(255, 181, 71, .3); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 181, 71, .14), rgba(0, 0, 0, .28) 60%); }
.tokcard b { display: flex; align-items: center; gap: 6px; font-size: 32px; font-weight: 900; font-family: var(--mono); line-height: 1.1; margin-top: 4px; }
.tokcard b i { font-style: normal; font-size: 22px; }
.tokcard small { display: block; font-size: 11.5px; color: var(--ink-3); }
.tokcard p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 560px) { .tokcard { grid-template-columns: 1fr auto; } .tokcard p { grid-column: 1 / -1; grid-row: 2; } .lock-tok { flex-wrap: wrap; } }

/* ---------- signal card: spend line + result button ---------- */
.spend { margin-top: 10px; font-size: 12px; font-weight: 700; color: #ffd27a; }
.spend.free { color: var(--ink-3); font-weight: 600; }
.resbtn { width: 100%; margin-top: 10px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 14px; color: var(--ink-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); transition: all .2s; }
.resbtn:disabled { cursor: default; font-family: var(--mono); font-size: 13px; }
.resbtn.ready { color: #fff; border-color: transparent; background: linear-gradient(90deg, #191216, #191216) padding-box, linear-gradient(90deg, var(--red), #ffb547) border-box; border: 1.5px solid transparent; box-shadow: 0 0 22px rgba(255, 42, 72, .25); }
.resbtn.ready:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(255, 42, 72, .4); }

/* ---------- history results ---------- */
.out { display: inline-block; min-width: 54px; text-align: center; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; padding: 4px 8px; border-radius: 99px; }
.out.win { background: rgba(34, 224, 138, .15); color: var(--green); }
.out.loss { background: rgba(255, 42, 72, .16); color: #ff8798; }
.out.draw, .out.wait { background: rgba(255, 255, 255, .07); color: var(--ink-3); }
.rescell { white-space: nowrap; }
.rescell .view { margin-left: 8px; cursor: pointer; height: 26px; font-weight: 700; color: var(--ink); }
.rescell .view:hover { border-color: var(--red); }

/* ---------- result dialog ---------- */
.mdl.res { width: min(820px, calc(100% - 24px)); }
.res-shot { position: relative; margin-top: 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b090c; aspect-ratio: 3 / 2; }
.res-shot canvas { display: block; width: 100%; height: 100%; }
.res-shot.waiting canvas { visibility: hidden; }
.res-wait { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.res-shot.waiting .res-wait { display: flex; }
.res-wait b { font-size: 16px; }
.res-wait span:not(.hg) { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.res-acts { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.res-acts .btn { text-decoration: none; display: inline-flex; align-items: center; }
.res-acts .btn.off { opacity: .4; pointer-events: none; }
.res-acts .mini { height: 44px; padding: 0 18px; cursor: pointer; font-weight: 700; }
.tier-pill.tokm { color: #ffd27a; border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .1); }
.chip.tokens { background: rgba(255, 181, 71, .14); color: #ffd27a; }

/* ======================================================================
   Access gate: sign up / log in page, waiting screen, license popup
   ====================================================================== */
.mono { font-family: var(--mono); }
.hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.fl > span.hint-wrap { margin: 0; }

/* only one screen at a time: boot, auth, wait or app (member.js sets body.s-*) */
.boot, .gate { display: none; position: relative; z-index: 1; }
body.s-boot .boot { display: grid; }
body.s-auth #gate-auth, body.s-wait #gate-wait { display: grid; }
body:not(.s-app) .wrap { display: none; }
body:not(.s-app) .toast { z-index: 60; }

.boot { min-height: 100dvh; place-items: center; align-content: center; gap: 14px; text-align: center; }
.boot b { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hg.big { width: 64px; height: 64px; border-width: 4px; }

.gate { min-height: 100dvh; place-items: center; padding: 28px 14px; }
.gcard { width: min(480px, 100%); padding: 28px 26px 24px; border-radius: 28px; border: 1px solid rgba(255, 90, 110, .28);
  background: radial-gradient(520px 260px at 100% 0, rgba(255, 42, 72, .24), transparent 70%), linear-gradient(160deg, #24121a, #120c10 62%);
  box-shadow: 0 50px 100px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 80px -12px rgba(255, 42, 72, .38);
  animation: mdl-in .5s cubic-bezier(.2, 1.1, .35, 1); }
.gcard.center { text-align: center; }
.gcard.shake { animation: mdl-shake .38s; }
.gbrand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 22px; }
.gbrand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 24px var(--red-glow); }
.gbrand b { display: block; font-size: 17px; text-align: left; }
.gbrand b i { font-style: normal; color: var(--red); }
.gbrand span { display: block; font-size: 11px; color: var(--ink-3); text-align: left; }
.gtitle h1 { font-size: 25px; margin: 0; line-height: 1.2; }
.gtitle p { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

/* Public / VIP section picker */
.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 14px; }
.sec { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 16px; text-align: left; cursor: pointer; color: var(--ink-2);
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); transition: all .2s; font: inherit; }
.sec b { display: block; font-size: 14.5px; color: var(--ink); }
.sec small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.sec-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--ink-2); transition: all .2s; }
.sec:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.sec[data-k="public"].on { border-color: var(--red); background: linear-gradient(135deg, rgba(255, 42, 72, .16), rgba(0, 0, 0, .3)); box-shadow: 0 0 22px -4px var(--red-glow); }
.sec[data-k="public"].on .sec-ic { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; }
.sec[data-k="vip"].on { border-color: #ffb547; background: linear-gradient(135deg, rgba(255, 181, 71, .16), rgba(0, 0, 0, .3)); box-shadow: 0 0 22px -4px rgba(255, 181, 71, .45); }
.sec[data-k="vip"].on .sec-ic { background: linear-gradient(135deg, #ffd27a, #ffb547); color: #2a1600; }
#gate-auth .mtabs { display: flex; margin: 0 0 18px; }
#gate-auth.vip .badge-ic, #gate-auth.vip .btn { background: linear-gradient(90deg, #f0a23a, #ffc866); color: #2a1600; box-shadow: 0 0 22px rgba(255, 181, 71, .4); }
#gate-auth.vip .seg button.on { background: linear-gradient(90deg, #f0a23a, #ffc866); color: #2a1600; box-shadow: 0 0 14px rgba(255, 181, 71, .45); }
#gate-auth.vip .gcard, #gate-auth.vip.gate .gcard { border-color: rgba(255, 181, 71, .32); }
.gcard input { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .38); color: var(--ink); font: inherit; font-size: 14.5px; outline: none; transition: border-color .18s, box-shadow .18s; }
.gcard input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 42, 72, .16); }
#gate-auth.vip .gcard input:focus { border-color: #ffb547; box-shadow: 0 0 0 3px rgba(255, 181, 71, .18); }
.gcard input::placeholder { color: var(--ink-3); }
#g-qid { font-family: var(--mono); letter-spacing: .12em; }
#g-qid::placeholder { font-family: inherit; letter-spacing: 0; }
.gcard .btn.wide { width: 100%; height: 50px; margin-top: 6px; }
.gcard .btn:disabled { opacity: .6; cursor: progress; }
#gate-auth.login-mode .signup-only { display: none !important; }
.auth-switch { width: 100%; margin-top: 12px; padding: 8px 4px; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.auth-switch:hover, .auth-switch:focus-visible { color: var(--red); }

/* waiting screen */
.gcard.center h1 { font-size: 23px; margin: 12px 0 0; line-height: 1.25; }
.gcard .lead { margin: 10px auto 0; max-width: 36ch; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.wait-art { display: grid; place-items: center; height: 92px; }
.wait-art .xmark { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 0 30px var(--red-glow); }
.state-chip { display: inline-block; margin-top: 6px; padding: 5px 13px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: rgba(255, 181, 71, .12); border: 1px solid rgba(255, 181, 71, .35); }
.state-chip.bad { color: #ff8798; background: rgba(255, 42, 72, .14); border-color: rgba(255, 42, 72, .4); }
.acct-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 20px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); text-align: left; }
.acct-box div { min-width: 0; }
.acct-box span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.acct-box b { display: block; margin-top: 3px; font-size: 13.5px; overflow-wrap: anywhere; }
.acct-box b.vipc { color: #ffd27a; }
.gacts { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.gacts .btn { height: 46px; padding: 0 24px; }
.gacts .mini { height: 46px; padding: 0 18px; cursor: pointer; font-weight: 700; }

/* "Add to Active License" popup */
#license { text-align: center; }
.lic-art { display: grid; place-items: center; margin: 2px 0 14px; }
.lic-ic { position: relative; width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; color: #2a1600;
  background: linear-gradient(135deg, #ffd27a, #ffb547); box-shadow: 0 0 34px rgba(255, 181, 71, .45); }
.lic-ic::before { content: ""; position: absolute; inset: -8px; border-radius: 30px; border: 1px solid rgba(255, 181, 71, .4); animation: lpulse 2.2s ease-out infinite; }
.lic-user { margin-top: 14px; padding: 12px 14px; border-radius: 16px; text-align: left; background: rgba(0, 0, 0, .3); border: 1px dashed rgba(255, 181, 71, .38); }
.lic-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.lic-row b { font-size: 17px; color: #ffd27a; overflow-wrap: anywhere; }
.lic-row .mini { flex: none; height: 32px; padding: 0 13px; cursor: pointer; font-weight: 700; }
.btn.tg { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; margin-top: 18px; width: 100%; height: 50px;
  background: linear-gradient(90deg, #1e8fff, #23b7ff); box-shadow: 0 0 22px rgba(35, 160, 255, .45); color: #fff; }

.tier.pub { background: rgba(255, 255, 255, .1); color: var(--ink-2); box-shadow: none; }
.tier-pill { white-space: nowrap; }

@media (max-width: 520px) {
  .gcard { padding: 22px 16px 20px; border-radius: 22px; }
  .sections { gap: 8px; }
  .sec { padding: 11px 10px; gap: 9px; }
  .sec-ic { width: 34px; height: 34px; }
  .sec small { display: none; }
  .acct-box { grid-template-columns: 1fr; }
}

.btn.logout { margin-top: 16px; background: transparent; border: 1px solid rgba(255, 90, 90, .45); color: #ff8a8a; box-shadow: none; cursor: pointer; }
.btn.logout:hover { background: rgba(255, 90, 90, .12); }
