/* Vector Hub: your account. The pages that belong to the dashboard alone; everything shared
   (tokens, the shell, blocks, buttons, dialogs) comes from /hub/kit/kit.css. */

/* ── Sign in: the address field, who it found, and the code boxes ──────────── */

.lg-field {
  display: flex;
  align-items: center;
  width: 330px;
  max-width: calc(100vw - 40px);
  height: 44px;
  border: 2px solid var(--green-2);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.lg-field:focus-within { box-shadow: 0 0 0 4px rgba(51, 219, 152, 0.12); }
.lg-field.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(252, 89, 92, 0.1); }
.lg-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 12px;
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.lg-input::placeholder { color: var(--text-2); }
.lg-go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.lg-go:hover:not(:disabled) { transform: translateX(2px); }
.lg-go:disabled { opacity: 0.35; cursor: default; }
.lg-go img { width: 20px; height: auto; }

.who {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}
.who .av { width: 92px; height: 92px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px rgba(89, 252, 179, 0.5), 0 18px 50px rgba(51, 219, 152, 0.18); }
.who-name { margin: 16px 0 0; font-size: 22px; font-weight: 700; letter-spacing: 0.4px; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-npub { margin: 4px 0 0; color: var(--text-4); font-size: 12px; letter-spacing: 0.4px; }

.lg-pins { display: flex; gap: 10px; }
.lg-pins input {
  width: 44px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--text-5);
  border-radius: 8px;
  background: var(--bg);
  color: #fff;
  caret-color: var(--green-2);
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.lg-pins input:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(51, 219, 152, 0.12); }
.lg-pins input.filled { border-color: #8a8f8f; }
.lg-pins.err input { border-color: var(--danger); }
.lg-pins.shake { animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.lg-pins.busy input { opacity: 0.55; }
.lg-pins.ok input { border-color: var(--green); color: var(--green); }
.lg-pins .pin-gap { width: 6px; }
.signin-done { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ── The Vector Pass ────────────────────────────────────────────────────────── */

.pass-wrap { display: flex; justify-content: center; padding: 10px 0 6px; perspective: 1100px; }
.pass {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --holo: 0;
  --tint-a: rgba(89, 252, 179, 0.5);
  --tint-b: rgba(51, 219, 152, 0.18);
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1.586;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, var(--tint-b), transparent 60%),
    linear-gradient(155deg, #161718 0%, #0d0d0e 55%, #0a0a0b 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 30px 80px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.3s ease;
  touch-action: pan-y;
  user-select: none;
  animation: pass-in 0.7s var(--ease) backwards;
}
@keyframes pass-in { from { opacity: 0; transform: translateY(14px) rotateX(10deg) scale(0.97); } }
.pass.idle { transition: transform 0.7s var(--ease); }
.pass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--tint-a), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.02) 60%, var(--tint-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}
.pass-grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.pass-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: 62%;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}
.pass-foil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(115deg, rgba(89, 252, 179, 0.0) 0%, rgba(89, 252, 179, 0.32) 8%, rgba(210, 102, 242, 0.34) 16%, rgba(154, 96, 240, 0.3) 24%, rgba(51, 219, 152, 0.0) 32%);
  background-size: 300% 300%;
  background-position: var(--mx) var(--my);
  transition: opacity 0.4s ease;
}
.pass-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 30%, transparent 55%);
  mix-blend-mode: soft-light;
  opacity: calc(0.25 + 0.75 * var(--holo));
  transition: opacity 0.3s ease;
}
.pass.idle .pass-foil, .pass.idle .pass-glare { transition: background-position 0.7s var(--ease), opacity 0.7s ease; }
.pass.tier-1, .pass.tier-2 { --tint-a: rgba(210, 102, 242, 0.55); --tint-b: rgba(154, 96, 240, 0.16); }
.pass.tier-1 .pass-foil, .pass.tier-2 .pass-foil { opacity: calc(0.14 + 0.3 * var(--holo)); }
.pass.tier-3 {
  --tint-a: rgba(210, 102, 242, 0.8);
  --tint-b: rgba(154, 96, 240, 0.24);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 30px 90px rgba(120, 60, 200, 0.28), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.pass.tier-3 .pass-foil { opacity: calc(0.3 + 0.55 * var(--holo)); animation: foil-drift 9s ease-in-out infinite alternate; }
@keyframes foil-drift { from { background-position: 20% 30%; } to { background-position: 80% 70%; } }
.pass.tier-3.touched .pass-foil { animation: none; }
/* With a mouse the card is hovered at length, so the sheen only lifts a little; a touch keeps the full flash. */
@media (hover: hover) and (pointer: fine) {
  .pass-glare { opacity: calc(0.25 + 0.3 * var(--holo)); }
  .pass.tier-1 .pass-foil, .pass.tier-2 .pass-foil { opacity: calc(0.14 + 0.08 * var(--holo)); }
  .pass.tier-3 .pass-foil { opacity: calc(0.3 + 0.12 * var(--holo)); }
}

.pass-body {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 24px 20px;
  transform: translateZ(30px);
}
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 2.6px; color: rgba(255, 255, 255, 0.78); }
.pass-brand svg { width: 22px; height: auto; }
.pass-tier {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.pass.tier-1 .pass-tier, .pass.tier-2 .pass-tier, .pass.tier-3 .pass-tier {
  background: linear-gradient(90deg, #f0b8ff, var(--volt-a) 45%, var(--volt-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pass-badges { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.pass-badges img { width: 26px; height: 26px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.pass-mid { align-self: center; display: flex; flex-direction: column; justify-content: center; }
.pass-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.pass-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pass-who .av { width: 54px; height: 54px; box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 3.5px var(--tint-a); }
.pass-name { font-size: 20px; line-height: 24px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-npub { margin-top: 3px; color: rgba(255, 255, 255, 0.5); font-size: 11.5px; letter-spacing: 0.6px; font-variant-numeric: tabular-nums; }
.pass-volts { text-align: right; flex-shrink: 0; }
.pass-volts-num {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 26px;
  line-height: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pass-volts-num .bolt { width: 18px; height: 22px; }
.pass-volts-label { margin-top: 2px; color: rgba(255, 255, 255, 0.5); font-size: 10px; font-weight: 700; letter-spacing: 2.2px; }

/* ── Premium & perks ────────────────────────────────────────────────────────── */

.tier-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -4px 0 18px; color: var(--text-3); font-size: 14px; }
.perks { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perk {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  background: var(--tile);
  animation: rise 0.45s var(--ease) backwards;
}
.perk + .perk { border-top: 1px solid #1a1a1a; }
.perk-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  color: var(--text-2);
}
.perk-icon .vh-icon { width: 15px; height: 15px; }
.perk.up .perk-icon { background: rgba(154, 96, 240, 0.14); color: #e2b8ff; }
.perk-label { font-size: 14.5px; }
.perk-val { text-align: right; }
.perk-num { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.perk.up .perk-num { color: #f1d6ff; }
.perk-sub { display: block; color: var(--text-4); font-size: 11.5px; }

.ladder { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ladder th, .ladder td { padding: 11px 10px; text-align: center; border-bottom: 1px solid #1a1a1a; font-variant-numeric: tabular-nums; }
.ladder th:first-child, .ladder td:first-child { text-align: left; padding-left: 16px; }
.ladder thead th { color: var(--text-4); font-size: 11.5px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; }
.ladder td { color: var(--text-3); }
.ladder td:first-child { color: #fff; }
.ladder .you { color: #fff; font-weight: 700; background: rgba(154, 96, 240, 0.08); }
.ladder thead .you { color: #e9c8ff; background: rgba(154, 96, 240, 0.14); }
.ladder tbody tr:last-child td { border-bottom: none; }
.ladder-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--tile); }
.ladder .lim-sym { display: none; }
.ladder-wrap.free .you { background: rgba(89, 252, 179, 0.06); }
.ladder-wrap.free thead .you { color: var(--green); background: rgba(89, 252, 179, 0.1); }

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 14px 18px;
  border: 1px solid var(--tile-line);
  border-radius: 16px;
  background: var(--tile);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.6s var(--soft), border-color 0.4s ease, background-color 0.4s ease;
  animation: rise 0.5s var(--ease) backwards;
}
.badge-tile:nth-child(2) { animation-delay: 0.05s; }
.badge-tile:nth-child(3) { animation-delay: 0.1s; }
.badge-tile:hover { transform: translateY(-2px); border-color: #2c2c2c; background: #111; }
.badge-tile::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto;
  height: 90%;
  background: radial-gradient(closest-side, rgba(89, 252, 179, 0.13), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.badge-tile.held::before { opacity: 1; }
.badge-tile img { width: 76px; height: 76px; margin-bottom: 10px; transition: transform 0.7s var(--soft), filter 0.3s ease; }
.badge-tile:hover img { transform: scale(1.04) rotate(-2deg); }
.badge-tile:not(.held) img { filter: grayscale(1) brightness(0.55); opacity: 0.45; }
.badge-name { font-size: 15px; font-weight: 700; }
.badge-state { color: var(--text-4); font-size: 12.5px; }
.badge-tile.held .badge-state { color: var(--green); }
.badge-tiers { display: flex; gap: 4px; margin-top: 8px; }
.badge-tiers i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.13); }
.badge-tiers i.on { background: var(--green); }
.badges-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-4); font-size: 12.5px; }

/* The app's holographic achievement card. The sheen is plain alpha: a blend mode inside the card
   makes it an isolated group, which flattens its depth. */
.bc-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.bc-overlay.visible { opacity: 1; }
.bc-scene { perspective: 900px; transform: scale(0.86) translateY(10px); opacity: 0; transition: transform 0.42s var(--ease), opacity 0.3s ease; }
.bc-overlay.visible .bc-scene { transform: none; opacity: 1; }
.bc {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --holo: 0;
  position: relative;
  width: min(84vw, 310px);
  padding: 36px 28px 28px;
  border-radius: 22px;
  background: linear-gradient(160deg, #171717, #16181a);
  border: 1px solid #393b3c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.1s ease-out;
  text-align: center;
  touch-action: none;
}
.bc.idle { transition: transform 0.6s var(--ease); }
.bc-holo, .bc-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.bc-holo {
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 68%);
  background-size: 250% 250%;
  background-position: var(--mx) var(--my);
  opacity: calc(0.42 * var(--holo));
  transition: opacity 0.3s ease;
}
.bc-glare {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.008) 35%, transparent 60%);
  background-size: 200% 200%;
  background-position: var(--mx) var(--my);
  opacity: calc(0.5 * var(--holo));
  transition: opacity 0.25s ease;
}
.bc.idle .bc-holo, .bc.idle .bc-glare { transition: background-position 0.6s var(--ease), opacity 0.6s ease; }
.bc-art { width: 132px; height: 132px; object-fit: contain; display: block; margin: 0 auto 18px; transform: translateZ(46px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.bc.locked .bc-art { filter: grayscale(1) brightness(0.6) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); opacity: 0.6; }
.bc-title { transform: translateZ(26px); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.bc-sub { transform: translateZ(22px); font-size: 13px; letter-spacing: 0.06em; color: #8a8a8a; margin: -4px 0 12px; }
.bc-desc { transform: translateZ(14px); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.bc-desc i { opacity: 0.55; font-size: 13px; }
.bc-tiers { transform: translateZ(12px); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.bc-tier { width: 40px; height: 40px; opacity: 0.35; filter: grayscale(1); transition: opacity 0.2s ease, filter 0.2s ease; }
.bc-tier.on { opacity: 1; filter: none; }
.bc-tier img { width: 100%; height: 100%; object-fit: contain; }
.bc-conn { width: 20px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.bc-conn.on { background: var(--green); }
.bc-access { transform: translateZ(14px); display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; color: var(--green); font-size: 15px; font-weight: 500; }
.bc-access svg { width: 16px; height: 16px; }

/* ── Volts ──────────────────────────────────────────────────────────────────── */

.vault {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 20px 30px;
  border: 1px solid #1f1a24;
  border-radius: 20px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(154, 96, 240, 0.16), transparent 70%),
    linear-gradient(180deg, #0f0d12, #0a0a0b);
  overflow: hidden;
  text-align: center;
}
.vault::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(210, 102, 242, 0.45), rgba(154, 96, 240, 0.05) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.vault-bolt { width: 46px; height: 56px; filter: drop-shadow(0 8px 24px rgba(176, 98, 240, 0.5)); animation: bolt-in 0.6s var(--ease) backwards; }
@keyframes bolt-in { from { opacity: 0; transform: translateY(6px) scale(0.9) rotate(-6deg); } }
.vault-num { margin-top: 10px; font-size: 64px; line-height: 70px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.vault-label { color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.vault-copy { max-width: 380px; margin: 16px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.55; }

/* ── Redeem a gift card: a card that charges as you type, then powers up ─────── */

.redeem { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 6px 0 2px; }
.redeem-stage { position: relative; width: min(100%, 400px); }
.redeem-card { position: relative; width: 100%; aspect-ratio: 1.586; }
.redeem-face { position: absolute; inset: 0; transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.redeem-face.back { opacity: 0; transform: scale(0.97); pointer-events: none; }
.redeem-card.done .redeem-face.front { opacity: 0; transform: scale(0.97); pointer-events: none; }
.redeem-card.done .redeem-face.back { opacity: 1; transform: none; pointer-events: auto; }
.redeem-card.instant .redeem-face { transition: none; }
.redeem-face .gcard { width: 100%; height: 100%; }
.redeem-front { transition: box-shadow 0.4s ease; }
.redeem-front .gcard-mid { align-items: flex-start; }
.redeem-scan {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  height: max(30px, 8.4cqw);
  padding: 0 3cqw 0 2.4cqw;
  border: 1px solid rgba(240, 184, 255, 0.32);
  border-radius: 999px;
  background: rgba(210, 102, 242, 0.12);
  color: #f2c9ff;
  font: inherit;
  font-size: max(11px, 2.8cqw);
  font-weight: 700;
  letter-spacing: 0.5cqw;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.redeem-scan .vh-icon { width: max(15px, 4.2cqw); height: max(15px, 4.2cqw); }
.redeem-scan:hover { background: rgba(210, 102, 242, 0.22); border-color: rgba(240, 184, 255, 0.55); box-shadow: 0 0 18px rgba(210, 102, 242, 0.35); }
.redeem-scan:focus-visible { outline: 2px solid rgba(89, 252, 179, 0.7); outline-offset: 2px; }
.redeem-scan:disabled { opacity: 0.4; cursor: default; }
.redeem-label { margin-bottom: 2.2cqw; font-size: 2.6cqw; font-weight: 700; letter-spacing: 0.7cqw; color: rgba(255, 255, 255, 0.5); }
.slots { display: flex; align-items: center; gap: 1.6cqw; width: 100%; }
.slot {
  flex: 1 1 0;
  min-width: 0;
  height: 10.5cqw;
  padding: 0;
  border: 0.35cqw solid rgba(255, 255, 255, 0.14);
  border-radius: 2.4cqw;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  caret-color: #e48af6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: max(16px, 4.6cqw);
  font-weight: 600;
  letter-spacing: 0.5cqw;
  text-align: center;
  outline: none;
  box-shadow: inset 0 0.6cqw 1.6cqw rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.slot::placeholder { color: rgba(255, 255, 255, 0.2); }
.slot:focus { border-color: rgba(228, 138, 246, 0.85); box-shadow: inset 0 0.6cqw 1.6cqw rgba(0, 0, 0, 0.5), 0 0 0 0.9cqw rgba(210, 102, 242, 0.16); }
.slot.full { border-color: rgba(228, 138, 246, 0.42); }
.slot:disabled { opacity: 0.85; }
.slot-dash { flex: none; color: rgba(255, 255, 255, 0.3); font-size: 4cqw; }
.redeem-hint { min-height: 4.6cqw; margin-top: 2.6cqw; color: rgba(255, 255, 255, 0.55); font-size: 3.1cqw; line-height: 1.4; transition: color 0.2s ease; }
.redeem-hint.err { color: #ffb4b6; }
.redeem-hint.ok { color: #f2c9ff; }
.charge { position: absolute; left: 7cqw; right: 7cqw; bottom: 5cqw; height: 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.charge-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9a60f0, #d266f2 60%, #f6dcff); box-shadow: 0 0 2cqw rgba(228, 138, 246, 0.8); transition: width 0.4s var(--ease), background-color 0.2s ease; }
.redeem-front.checking .charge-fill { background: linear-gradient(90deg, #4a3a5e, #8a72a8, #4a3a5e); background-size: 200% 100%; box-shadow: none; animation: checking 1s linear infinite; }
@keyframes checking { from { background-position: 200% 0; } to { background-position: 0 0; } }
.redeem-front.typo .charge-fill { background: var(--danger); box-shadow: 0 0 2cqw rgba(252, 89, 92, 0.6); }
.redeem-front.charged {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(228, 138, 246, 0.55), 0 0 46px rgba(176, 98, 240, 0.42), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.redeem-front.charged .charge-fill { animation: surge 1.5s ease-in-out infinite; }
.redeem-front.charged .gcard-mark { opacity: 0.16; transition: opacity 0.4s ease; }
@keyframes surge { 50% { filter: brightness(1.45); box-shadow: 0 0 3.4cqw rgba(240, 184, 255, 1); } }
.redeem-front.shake { animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.redeem-front.charging { animation: hum 0.09s linear infinite; }
.redeem-front.charging .charge-fill { animation: surge 0.28s ease-in-out infinite; }
@keyframes hum {
  0% { transform: translate(0, 0); }
  25% { transform: translate(0.6px, -0.5px); }
  50% { transform: translate(-0.6px, 0.4px); }
  75% { transform: translate(0.4px, 0.6px); }
}
.redeem-front.drained { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 60px rgba(0, 0, 0, 0.45); }
.redeem-front.drained .charge-fill { width: 0 !important; transition: width 0.5s ease-in; animation: none; }
.gcard.redeemed .gcard-mark { opacity: 0.05; }
.spent { display: flex; align-items: center; gap: 4cqw; }
.spent-check { position: relative; display: block; flex: none; width: 13cqw; height: 13cqw; border-radius: 50%; background: rgba(210, 102, 242, 0.14); box-shadow: 0 0 0 0.4cqw rgba(228, 138, 246, 0.45); color: #f0c4ff; }
/* Placed against the ring itself: a percentage height has nothing to resolve against in a flex or grid row. */
.spent-check svg { position: absolute; inset: 25%; display: block; width: 50%; height: 50%; }
.redeem-card.done .spent-check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s var(--ease) 0.35s forwards; }
.redeem-card.instant .spent-check svg path { animation: none; stroke-dashoffset: 0; }
.spent b { display: block; font-size: 5.4cqw; font-weight: 700; }
.spent span { display: block; margin-top: 1cqw; color: rgba(255, 255, 255, 0.62); font-size: 3.4cqw; font-style: italic; }
.arcs { position: absolute; inset: -6% -4%; width: 108%; height: 112%; overflow: visible; pointer-events: none; z-index: 2; }
.arcs polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.arcs .arc-glow { stroke: rgba(210, 102, 242, 0.55); stroke-width: 6; }
.arcs .arc-core { stroke: #fbeaff; stroke-width: 1.6; }
/* Collected Volts: the value pops off the card, then is pulled into the balance. */
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 79; pointer-events: none; }
.xp { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; will-change: transform, opacity; }
.xp-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: xp-pop 0.62s cubic-bezier(0.18, 1.5, 0.4, 1) both, xp-hover 1.6s ease-in-out 0.62s infinite alternate;
}
.xp-inner span {
  background: linear-gradient(175deg, #ffffff 0%, #f3d0ff 30%, #d266f2 68%, #9a60f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(210, 102, 242, 0.75)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.xp-inner .bolt { width: 30px; height: 38px; filter: drop-shadow(0 0 14px rgba(228, 138, 246, 0.95)); }
@keyframes xp-pop {
  0% { transform: translateY(18px) scale(0.2); opacity: 0; }
  55% { transform: translateY(-14px) scale(1.16); opacity: 1; }
  100% { transform: translateY(-8px) scale(1); opacity: 1; }
}
@keyframes xp-hover { to { transform: translateY(-14px) scale(1.02); } }
.redeem-go { min-width: 200px; }
.redeem-go.ready { animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 6px 30px rgba(210, 102, 242, 0.6), 0 0 0 4px rgba(210, 102, 242, 0.14); } }
.redeem-msg { min-height: 0; margin: -6px 0 0; max-width: 400px; color: var(--text-3); font-size: 13px; line-height: 1.5; text-align: center; }
.redeem-msg:empty { display: none; }
.redeem-msg.err { color: #ffa9ab; }
.redeem-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; font-size: 14px; animation: rise 0.5s var(--ease) 0.5s backwards; }
.redeem-added { display: inline-flex; align-items: center; gap: 7px; color: #f0c4ff; font-weight: 600; }
.redeem-added .bolt { width: 12px; height: 15px; }

.vault.gulp .vault-num { animation: gulp 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); }
.vault.gulp .vault-bolt { animation: bolt-gulp 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes gulp {
  0% { transform: scale(1); }
  30% { transform: scale(1.13); filter: drop-shadow(0 0 18px rgba(228, 138, 246, 0.95)); }
  100% { transform: scale(1); }
}
@keyframes bolt-gulp {
  0% { transform: none; }
  30% { transform: scale(1.18) rotate(-6deg); filter: drop-shadow(0 0 22px rgba(240, 184, 255, 1)); }
  100% { transform: none; }
}
.entry.fresh { animation: rise 0.45s var(--ease) backwards, fresh 2.4s ease 0.2s; }
@keyframes fresh { 0%, 40% { background-color: rgba(154, 96, 240, 0.16); } 100% { background-color: transparent; } }

.gift-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px auto 0;
  padding: 11px 16px 11px 12px;
  max-width: 340px;
  border: 1px solid rgba(210, 102, 242, 0.4);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(210, 102, 242, 0.14), rgba(154, 96, 240, 0.05));
  text-align: left;
  animation: rise 0.6s var(--ease) 0.2s backwards;
}
.gift-banner-bolt { flex: none; width: 22px; height: 28px; filter: drop-shadow(0 0 12px rgba(210, 102, 242, 0.7)); }
.gift-banner-bolt svg { width: 100%; height: 100%; }
.gift-banner b { display: block; font-size: 14px; }
.gift-banner span { display: block; color: var(--text-3); font-size: 12.5px; }

/* ── Communities ────────────────────────────────────────────────────────────── */

.comms { display: flex; flex-direction: column; gap: 12px; }
.comm {
  position: relative;
  border: 1px solid var(--tile-line);
  border-radius: 16px;
  background: var(--tile);
  overflow: hidden;
  animation: rise 0.45s var(--ease) backwards;
  transition: border-color 0.2s ease;
  scroll-margin-top: 16px;
}
.comm:hover { border-color: #292929; }
.comm.flash { animation: rise 0.45s var(--ease) backwards, flash 1.4s ease 0.2s; }
@keyframes flash { 30% { border-color: rgba(89, 252, 179, 0.6); box-shadow: 0 0 0 3px rgba(89, 252, 179, 0.12); } }
.comm-main { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 18px 18px 16px; }
.comm-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  background: #161616;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comm-icon img { width: 100%; height: 100%; object-fit: cover; }
.comm-icon svg { width: 34px; height: 34px; }
.comm-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.comm-name { min-width: 0; font-size: 17px; line-height: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-title .pill { margin-left: auto; flex-shrink: 0; }
.comm-desc {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.comm-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.comm-members { display: flex; align-items: baseline; gap: 6px; }
.comm-members b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.comm-members span { color: var(--text-4); font-size: 12.5px; }
.spark { flex: 1 1 110px; min-width: 60px; max-width: 220px; height: 34px; }
.spark path.line { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: spark-draw 1.1s var(--ease) 0.15s forwards; }
.spark path.area { fill: url(#sparkFill); opacity: 0; animation: fade-in 0.8s ease 0.5s forwards; }
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
.delta { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.delta.up { color: var(--green); }
.delta.down { color: var(--orange); }
.delta.flat { color: var(--text-4); }
.comm-note { margin: 0 18px 14px; }
.comm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #1a1a1a;
  background: rgba(255, 255, 255, 0.012);
}
.comm-actions .spacer { flex: 1; }

/* ── Devices ────────────────────────────────────────────────────────────────── */

.devices { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--tile); }
.device { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; animation: rise 0.4s var(--ease) backwards; }
.device + .device { border-top: 1px solid #1a1a1a; }
.device-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--chip); color: var(--text-2); }
.device-icon .vh-icon { width: 18px; height: 18px; }
.device.current .device-icon { background: rgba(89, 252, 179, 0.1); color: var(--green); }
.device-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.device-meta { color: var(--text-4); font-size: 12.5px; }
.this-device { height: 20px; padding: 0 8px; font-size: 11px; color: var(--green); border-color: rgba(89, 252, 179, 0.3); }
.shield-note {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(89, 252, 179, 0.05), rgba(89, 252, 179, 0.015));
  border: 1px solid rgba(89, 252, 179, 0.14);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.shield-note .vh-icon { width: 18px; height: 18px; margin-top: 1px; color: var(--green); }

.invite-now {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0c0c;
  color: var(--text-2);
  font-size: 12.5px;
}
.invite-now code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.preview {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c0c0c;
  animation: rise 0.3s var(--ease) backwards;
}
.preview .comm-icon { width: 56px; height: 56px; border-radius: 16px; }
.preview-sync {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #1c1c1c;
  color: var(--text-4);
  font-size: 12.5px;
}
.preview-sync .vh-icon { width: 13px; height: 13px; color: var(--text-5); }
.preview-sync .link-btn { margin-left: auto; font-size: 12.5px; }
.preview-sync .link-btn:disabled { color: var(--text-4); text-decoration: none; cursor: default; }
.preview-name { font-size: 16px; font-weight: 700; }
.preview-desc { margin-top: 2px; color: var(--text-3); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Small screens ──────────────────────────────────────────────────────────── */

@media (max-width: 899px) {
  .badges { grid-template-columns: repeat(2, 1fr); }
  .ladder th, .ladder td { padding: 10px 6px; font-size: 12.5px; }
  .ladder th:first-child, .ladder td:first-child { padding-left: 12px; }
}
@media (max-width: 480px) {
  .lg-pins { gap: 7px; }
  .lg-pins input { width: 40px; height: 48px; font-size: 20px; }
  .lg-pins .pin-gap { width: 2px; }
  .pass-body { padding: 16px 16px 15px; }
  .pass-name { font-size: 17px; line-height: 21px; }
  .pass-who .av { width: 44px; height: 44px; }
  .pass-volts-num { font-size: 21px; }
  .pass-brand { letter-spacing: 2px; font-size: 10px; }
  .pass-tier { font-size: 9.5px; letter-spacing: 1.6px; }
  .comm-main { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 14px 12px; }
  .comm-icon { width: 48px; height: 48px; border-radius: 14px; }
  .comm-title { flex-wrap: wrap; row-gap: 6px; }
  .comm-title .pill { margin-left: 0; }
  .comm-actions { padding: 10px 14px; gap: 6px; }
  .comm-actions .wide-only { display: none; }
  .comm-note { margin: 0 14px 12px; }
  .vault-num { font-size: 52px; line-height: 58px; }
  .ladder .lim-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ladder .lim-sym { display: inline; font-size: 17px; line-height: 1; vertical-align: -1px; }
}

@media (hover: none) {
  .badge-tile:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pass, .bc { transform: none !important; }
  .spark path.line { stroke-dashoffset: 0; }
  .spark path.area { opacity: 1; }
}

.settled .pass, .settled .perk, .settled .badge-tile, .settled .comm, .settled .device, .settled .vault-bolt, .settled .redeem-after { animation: none; }
.settled .spark path.line { animation: none; stroke-dashoffset: 0; }
.settled .spark path.area { animation: none; opacity: 1; }

.lg-go:focus-visible, .badge-tile:focus-visible {
  outline: 2px solid rgba(89, 252, 179, 0.7);
  outline-offset: 2px;
}

