/* =====================================================================
   LUPIN'S VAULT — LOGIN BOX & KEY PANEL
   Uses the same color names (--neon, --panel…) as the main page.
   ===================================================================== */

button.keys { cursor: pointer; font: inherit; }
/* "+4 in 5h 12m" next to the keys — quiet on purpose */
.next-keys {
  font-size: 11.5px; color: var(--muted); white-space: nowrap; opacity: .75;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; cursor: default;
}
@media (max-width: 420px) { .next-keys { display: none; } }
button.keys:hover { background: rgba(255, 43, 58, 0.2); }
.avatar-me svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }

/* ---------- Key panel (drops down under the top bar) ---------- */
.key-panel {
  position: fixed; z-index: 40; top: 64px; right: 24px;
  width: 300px; max-width: calc(100% - 32px);
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.key-panel .who { font-size: 13px; color: var(--muted); margin-bottom: 14px; overflow-wrap: anywhere; }
.key-panel .who strong { color: var(--text); font-weight: 600; }
.key-panel .big {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700;
  color: var(--neon); line-height: 1; margin-bottom: 4px;
}
.key-panel .big svg { width: 24px; height: 24px; }
.key-panel .big small { font-size: 15px; color: var(--muted); font-weight: 500; }
.key-panel .row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; padding: 10px 0; border-top: 1px solid var(--border);
}
.key-panel .row:first-of-type { margin-top: 12px; }
.key-panel .row span:first-child { color: var(--muted); }
.key-panel .row strong { font-weight: 600; }
.refill-dots { display: flex; gap: 5px; align-items: center; }
.refill-dots i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.refill-dots i.on { background: var(--neon); box-shadow: 0 0 6px rgba(255,43,58,.6); }
.key-panel .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.lv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; width: 100%;
  border-radius: 10px; border: 1px solid var(--neon);
  background: var(--neon); color: var(--on-neon);
  font: inherit; font-weight: 600; cursor: pointer;
}
.lv-btn:hover { filter: brightness(1.1); }
.lv-btn:disabled { opacity: .5; cursor: default; filter: none; }
.lv-btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.lv-btn.ghost:hover { border-color: #444; filter: none; }

/* ---------- Login / sign-up box ---------- */
.auth-backdrop {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.auth-box {
  width: 100%; max-width: 400px;
  padding: 28px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px rgba(255,43,58,.08);
  position: relative;
}
.auth-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  cursor: pointer; font-size: 18px; line-height: 1;
}
.auth-close:hover { color: var(--text); }
.auth-box h2 { font-family: "Space Grotesk", sans-serif; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-box .lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 4px; background: var(--bg); border-radius: 12px; }
.auth-tabs button {
  flex: 1; height: 36px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.auth-tabs button.active { background: var(--neon-dim); color: var(--neon); }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 13px; font-weight: 600; }
.auth-field input {
  height: 44px; padding: 0 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; outline: 0; font: inherit;
}
.auth-field input:focus { border-color: var(--neon); }
.auth-field .hint { font-size: 12px; color: var(--muted); }
.auth-error { color: var(--neon); font-size: 13.5px; margin-bottom: 12px; }
.auth-error:empty { display: none; }
.auth-link {
  display: block; margin: 12px auto 0; padding: 4px 6px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13px;
}
.auth-link:hover { color: var(--text); text-decoration: underline; }

/* ---------- Refill pop-up (Ad Drop / Rewards / Premium) ---------- */
.refill-box {
  max-width: 360px; padding: 16px 16px 14px;
  background: linear-gradient(180deg, #1a1414 0%, var(--panel) 45%);
}
.refill-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 600 11px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em;
}
.refill-head .tag { display: flex; align-items: center; gap: 6px; color: var(--neon); }
.refill-head .tag svg { width: 14px; height: 14px; }
.refill-head .line { flex: 1; height: 1px; background: var(--border); }
.refill-head .left { color: var(--muted); }
.refill-head .auth-close { position: static; flex: none; }
.refill-box h2 { font-size: 21px; margin-bottom: 6px; }
.refill-box .lead { font-size: 13.5px; margin-bottom: 14px; }

.refill-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px; margin-bottom: 10px;
  background: #1c1c1c; color: var(--text); text-align: left;
  border: 1px solid var(--border); border-radius: 14px;
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.refill-option:hover:not(:disabled) { border-color: #444; background: #222; }
.refill-option:disabled { opacity: .5; cursor: default; }
.refill-option .ico {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; background: #262626; border: 1px solid #333; color: #ddd;
}
.refill-option .ico svg { width: 20px; height: 20px; }
.refill-option .txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.refill-option strong { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 700; }
.refill-option small { font: 12px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); }
.refill-option .go { color: var(--muted); font-size: 16px; }
.refill-option .gain {
  display: flex; align-items: center; gap: 4px; padding: 5px 9px;
  border-radius: 8px; font-weight: 700; font-size: 13px;
  color: var(--neon); background: var(--neon-dim); border: 1px solid rgba(255,43,58,.45);
}
.refill-option .gain svg { width: 13px; height: 13px; }
.refill-option.rewards .ico { color: #b48cff; background: rgba(150,100,255,.12); border-color: rgba(150,100,255,.3); }
.refill-option.premium {
  border-color: rgba(120,200,80,.4);
  background: linear-gradient(90deg, rgba(90,160,60,.28), rgba(40,70,30,.25));
}
.refill-option.premium:hover { background: linear-gradient(90deg, rgba(90,160,60,.36), rgba(40,70,30,.32)); border-color: rgba(120,200,80,.6); }
.refill-option.premium .ico { color: #0d1a07; background: #8fe05a; border-color: #8fe05a; box-shadow: 0 0 18px rgba(143,224,90,.35); }
.refill-all {
  margin-top: 4px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 12px ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.refill-all:hover { color: var(--text); }

/* ---------- Account page (#account) ---------- */
.account-page { animation: accIn .35s ease both; }
@keyframes accIn { from { opacity: 0; transform: translateY(10px); } }
.acc-wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.acc-label {
  display: flex; align-items: center; gap: 10px; margin: 18px 2px 2px;
  font: 600 11px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.acc-label:first-child { margin-top: 0; }
.acc-label i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), rgba(255,43,58,.25), var(--border)); }
.acc-label b { color: var(--text); font-weight: 700; letter-spacing: .08em; }
.acc-label em { font-style: normal; color: var(--neon); margin-left: 6px; }

.acc-card {
  position: relative; overflow: hidden; padding: 18px; border-radius: 16px;
  background: radial-gradient(260px 160px at 90% 0%, rgba(255,43,58,.16), transparent 70%), linear-gradient(180deg, #191919, #131313);
  border: 1px solid rgba(255,43,58,.25); box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.acc-id { display: flex; align-items: center; gap: 14px; }
.acc-avatar {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px;
  font: 700 18px "Space Grotesk", sans-serif; color: var(--neon);
  background: rgba(255,43,58,.1); border: 1px solid rgba(255,43,58,.4); box-shadow: 0 0 18px rgba(255,43,58,.2);
}
.acc-avatar svg { width: 22px; height: 22px; }
.acc-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.acc-name strong { font-size: 17px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font: 700 10.5px/1.6 "Space Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.acc-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.acc-badge.member { color: var(--neon); border-color: rgba(255,43,58,.45); }
.acc-badge.member i { background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.acc-keys { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--border); }
.acc-keycount { display: flex; align-items: center; gap: 8px; color: var(--neon); font: 700 22px/1 "Space Grotesk", sans-serif; }
.acc-keycount svg { width: 18px; height: 18px; }
.acc-keys small { display: block; margin-top: 6px; font: 11px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); letter-spacing: .04em; }
.acc-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.acc-offline { margin: 0; color: var(--muted); }

.acc-auth { display: flex; gap: 10px; }
.acc-btn {
  height: 46px; padding: 0 20px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: .04em;
  transition: box-shadow .2s, transform .15s, background .15s, border-color .15s;
}
.acc-btn svg { width: 17px; height: 17px; }
.acc-btn.primary {
  flex: 1; border: 0; color: #fff; background: linear-gradient(180deg, #ff4552, #e81c2b);
  box-shadow: 0 6px 22px rgba(255,43,58,.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.acc-btn.primary:hover { box-shadow: 0 8px 30px rgba(255,43,58,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.acc-btn.primary:active { transform: translateY(1px); }
.acc-btn.ghost { border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text); }
.acc-btn.ghost:hover { border-color: rgba(255,43,58,.45); background: rgba(255,43,58,.08); }
.acc-btn.wide { flex: 1; }

.acc-row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 14px; text-align: left;
  border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, #181818, #141414);
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .2s, transform .15s;
}
.acc-row:not(.static):hover { border-color: rgba(255,43,58,.4); box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 18px rgba(255,43,58,.12); transform: translateY(-1px); }
.acc-row:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.acc-row.static { cursor: default; flex-wrap: wrap; }
.acc-ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.acc-ico svg { width: 18px; height: 18px; }
.acc-row:not(.static):hover .acc-ico { color: var(--neon); border-color: rgba(255,43,58,.4); }
.acc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-txt strong { font-size: 14.5px; font-weight: 700; }
.acc-txt small { font: 12px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); }
.acc-go { color: var(--muted); display: grid; }
.acc-go svg { width: 15px; height: 15px; }
.acc-row:hover .acc-go { color: var(--neon); }
.acc-pill {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 9px;
  font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.acc-pill svg { width: 12px; height: 12px; }
.acc-pill.key { color: var(--neon); border-color: rgba(255,43,58,.45); background: rgba(255,43,58,.1); }
.acc-pill.hot { color: #fff; border: 0; background: linear-gradient(180deg, #ff4552, #e81c2b); box-shadow: 0 4px 16px rgba(255,43,58,.45); text-transform: uppercase; }

/* Premium row glows */
.acc-premium {
  border-color: rgba(255,43,58,.45);
  background: radial-gradient(240px 120px at 0% 50%, rgba(255,43,58,.22), transparent 70%), linear-gradient(90deg, rgba(255,43,58,.12), #151515 70%);
}
.acc-premium .acc-ico, .acc-row.acc-premium:hover .acc-ico { color: #fff; border: 0; background: linear-gradient(180deg, #ff4552, #e81c2b); box-shadow: 0 0 18px rgba(255,43,58,.5); }

/* Theme switch */
.acc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(0,0,0,.35); border: 1px solid var(--border); }
.acc-seg button {
  padding: 6px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font: 700 11.5px "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.acc-seg button:hover { color: var(--text); }
.acc-seg button.on { color: #fff; background: rgba(255,43,58,.22); box-shadow: inset 0 0 0 1px rgba(255,43,58,.5); }

/* Legal chips */
.acc-legal { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-legal button {
  padding: 7px 12px; border-radius: 9px; cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--muted); font: 700 11px "Space Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.acc-legal button:hover { color: var(--text); border-color: rgba(255,43,58,.4); }
/* Delete account: small and quiet at the very bottom, so nobody hits it by accident */
.acc-delete {
  display: block; margin: 22px auto 4px; padding: 6px 10px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 12px ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.acc-delete:hover { color: var(--neon); text-decoration: underline; }
.refill-all.acc-danger-link { display: block; margin: 8px auto 0; }
/* Recovery codes: shown once, in two columns */
.acc-codes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 14px; padding: 14px 14px 14px 34px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  font: 600 14px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em;
}
.acc-codes li::marker { color: var(--muted); font-weight: 400; }
.acc-codes-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.acc-codes-actions .lv-btn { flex: 1; }
#codesReauth { margin-bottom: 12px; }
@media (max-width: 380px) { .acc-codes { grid-template-columns: 1fr; } }
.refill-all.acc-danger-link:hover { color: var(--neon); }

@media (max-width: 640px) {
  .acc-label { margin-top: 14px; }
  .acc-row { padding: 12px; gap: 12px; }
  .acc-row.static .acc-seg { width: 100%; justify-content: center; }
  .acc-seg button { flex: 1; }
}

/* ---------- Plan (Account page + key panel) ---------- */
.plan-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); }
.plan-pill.pass { color: var(--neon); border-color: rgba(255,43,58,.45); }
.plan-pill.unlimited { color: #fff; border: 0; background: linear-gradient(180deg, #ff4552, #e81c2b); }
.acc-plan .acc-pill { cursor: pointer; font-family: inherit; }
.acc-plan.paid { border-color: rgba(255,43,58,.45); background: radial-gradient(240px 120px at 0% 50%, rgba(255,43,58,.18), transparent 70%), linear-gradient(90deg, rgba(255,43,58,.08), #151515 70%); }
.acc-plan.paid .acc-ico { color: #fff; border: 0; background: linear-gradient(180deg, #ff4552, #e81c2b); box-shadow: 0 0 16px rgba(255,43,58,.45); }
.acc-deal { font-style: normal; color: var(--neon); font-weight: 700; }
.refill-box .lv-btn { width: 100%; margin-top: 8px; }

/* ---------- Sign in with Google / Discord / Reddit / X / Telegram ---------- */
.auth-sites, .acc-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.site-btn {
  height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .2s, transform .15s;
}
.site-btn svg { width: 17px; height: 17px; flex: none; }
.site-btn:hover { border-color: rgba(255,43,58,.45); background: rgba(255,43,58,.08); box-shadow: 0 0 16px rgba(255,43,58,.15); transform: translateY(-1px); }
.site-btn:disabled { opacity: .6; cursor: wait; transform: none; }
/* Each site's icon keeps a hint of its own colour; everything else stays red & black */
.s-google svg { color: #f2f2f2; }
.s-discord svg { color: #8c9eff; }
.s-reddit svg { color: #ff6a33; }
.s-x svg { color: #f2f2f2; }
.s-telegram svg { color: #4fb7f0; }
.auth-or, .acc-or {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 10px;
  font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em;
}
.acc-or { margin: 6px 2px 0; }
.auth-or::before, .auth-or::after, .acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-box .auth-sites { margin-top: 4px; }
.tg-box { text-align: center; }
.tg-slot { min-height: 48px; display: grid; place-items: center; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- Small message at the bottom ---------- */
.lv-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px);
  background: #1f1f1f; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: opacity .2s, transform .2s; font-size: 14px;
}
.lv-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .key-panel { right: 16px; top: 120px; }
}
