/* profile.css — profile page styles */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: #050505; color: #fff; }
body { overflow-x: hidden; }
#root { min-height: 100vh; }

@keyframes pf-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes pf-float-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-bar { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes pf-pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.4); opacity: 0; } }
@keyframes pf-aurora { 0% { transform: translate(0,0) scale(1); } 33% { transform: translate(20%, -10%) scale(1.2); } 66% { transform: translate(-15%, 15%) scale(.9); } 100% { transform: translate(0,0) scale(1); } }
@keyframes pf-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ─── root ───────────────────────────────────────────────────────────────── */

.pf-root {
  position: relative;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  overflow: hidden;
}

/* ─── background ─────────────────────────────────────────────────────────── */

.pf-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
}
.pf-bg-dim { position: absolute; inset: 0; }

.pf-stars {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.pf-grid-bg {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

.pf-galaxy {
  position: absolute; inset: 0;
  background: #000;
}
.pf-galaxy-nebula { display: none; }
.pf-galaxy-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pf-galaxy-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pf-milky {
  position: absolute; top: -10%; left: -20%; right: -20%; height: 90%;
  background:
    radial-gradient(ellipse 50% 100% at 50% 50%, rgba(180,200,255,.06) 0%, rgba(255,200,180,.025) 30%, transparent 70%);
  transform: rotate(28deg);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(2px);
}
.pf-neb { display: none; }
.pf-neb-1 {
  width: 30vw; height: 30vw; top: 10%; left: 8%;
  background: radial-gradient(circle, rgba(80,40,180,.18) 0%, rgba(40,20,90,.08) 40%, transparent 70%);
}
.pf-neb-2 {
  width: 24vw; height: 24vw; bottom: 12%; right: 10%;
  background: radial-gradient(circle, rgba(180,40,90,.12) 0%, rgba(80,20,40,.06) 40%, transparent 70%);
}
.pf-shoot { display: none; }
@keyframes pf-shoot-disabled {
  0%, 90% { opacity: 0; transform: translate(0,0) rotate(-25deg); }
  91% { opacity: 1; }
  100% { opacity: 0; transform: translate(420px, 200px) rotate(-25deg); }
}

.pf-aurora {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #061a18 0%, #02060a 80%);
}
.pf-aurora-blob {
  position: absolute; width: 60vw; height: 60vw;
  border-radius: 50%; filter: blur(80px); opacity: .6; mix-blend-mode: screen;
  animation: pf-aurora 18s ease-in-out infinite;
}
.pf-aurora-1 { background: #18d2a0; top: -20%; left: -10%; }
.pf-aurora-2 { background: #6c4dff; bottom: -20%; right: -20%; animation-duration: 22s; animation-delay: -7s; }
.pf-aurora-3 { background: #ff5a93; top: 30%; left: 40%; animation-duration: 26s; animation-delay: -3s; }
.pf-aurora-grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* striped placeholder */
.pf-ph {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pf-ph-label {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ─── entry overlay ──────────────────────────────────────────────────────── */

.pf-entry {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pf-entry-inner { position: relative; display: flex; align-items: center; justify-content: center; }
.pf-entry-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  filter: blur(40px); opacity: .9; pointer-events: none;
  animation: pf-entry-breath 4s ease-in-out infinite;
}
@keyframes pf-entry-breath {
  0%, 100% { transform: scale(1);    opacity: .75; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.pf-entry-btn-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.pf-entry-btn-new {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 42px;
  max-width: 300px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  font: 500 15px/1 var(--font);
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  isolation: isolate;
}
.pf-entry-btn-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.pf-entry-btn-shine {
  position: absolute; top: 0; left: -120%; z-index: -1;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: pf-entry-shine 3.2s ease-in-out infinite;
}
@keyframes pf-entry-shine {
  0%, 100% { left: -120%; }
  60%, 100% { left: 220%; }
}
.pf-entry-btn-content {
  display: inline-flex; align-items: center; gap: 12px;
  transition: opacity .3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.pf-entry-btn-label { font-weight: 600; }
.pf-entry-btn-new:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, white 20%);
  box-shadow:
    0 14px 40px rgba(0,0,0,.45),
    0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent) inset;
}
.pf-entry-btn-new:active { transform: scale(.97); }

.pf-entry.is-active { pointer-events: none; animation: pf-overlay-out 2s ease forwards; }
.pf-entry.is-active .pf-entry-btn-content { animation: pf-fade-out .35s ease forwards; }
.pf-entry.is-active .pf-entry-hint       { animation: pf-fade-out .35s ease forwards; }
.pf-entry.is-active .pf-entry-btn-new    { animation: pf-btn-out   2s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes pf-fade-out {
  to { opacity: 0; }
}
@keyframes pf-overlay-out {
  0%, 55% { opacity: 1; }
  100%    { opacity: 0; }
}
@keyframes pf-btn-out {
  0%,  17.5% { max-width: 300px; padding: 16px 42px; transform: none;                          opacity: 1; }
  52.5%      { max-width: 52px;  padding: 16px;       transform: none;                          opacity: 1; }
  57.5%      { max-width: 52px;  padding: 16px;       transform: none;                          opacity: 1; }
  100%       { max-width: 52px;  padding: 16px;       transform: translateY(-240px) scale(.3);  opacity: 0; }
}
.pf-entry-hint {
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  animation: pf-entry-hint 2.2s ease-in-out infinite;
}
@keyframes pf-entry-hint {
  0%, 100% { opacity: .35; }
  50%      { opacity: .75; }
}

/* ─── main ───────────────────────────────────────────────────────────────── */

.pf-main {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px 120px;
  opacity: 0;
  pointer-events: none;
}
.pf-main--in {
  opacity: 1;
  pointer-events: auto;
  animation: pf-float-in .6s ease both;
}

/* ─── card ───────────────────────────────────────────────────────────────── */

.pf-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.pf-card--apple {
  background:
    radial-gradient(120% 80% at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.05), rgba(255,255,255,.01) 50%, transparent 100%),
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 100%),
    rgba(180,180,200,.008);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  border: .5px solid rgba(255,255,255,.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 -1px 0 rgba(255,255,255,.06) inset,
    0 0 0 .5px rgba(255,255,255,.05) inset,
    0 8px 24px -4px rgba(0,0,0,.4),
    0 40px 80px -10px rgba(0,0,0,.55),
    0 80px 140px -20px rgba(0,0,0,.7);
}
/* outer chromatic edge */
.pf-card--apple::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.6) 0%,
      rgba(255,255,255,.15) 20%,
      rgba(180,200,255,.05) 45%,
      rgba(255,200,220,.05) 55%,
      rgba(255,255,255,.1) 80%,
      rgba(255,255,255,.35) 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.pf-card--apple::after { display: none; }
.pf-card--apple .pf-body, .pf-card--apple .pf-banner, .pf-card--apple .pf-avatar-wrap { position: relative; z-index: 1; }

/* card breathing wrapper (separate from JS tilt) */
.pf-card-wrap { animation: pf-breathe 7s ease-in-out infinite; will-change: transform; }
@keyframes pf-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pf-card-aura { display: none; }

/* avatar idle ring pulse */
.pf-avatar::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--accent);
  opacity: 0;
  animation: pf-ring 3s ease-out infinite;
  pointer-events: none;
}
@keyframes pf-ring {
  0% { transform: scale(.95); opacity: .6; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* 3D rotating wallet logos */
.pf-wallet-3d {
  position: relative;
  width: 28px; height: 28px;
  transform-style: preserve-3d;
  animation: pf-coin-spin 4.5s linear infinite;
  flex-shrink: 0;
}
.pf-wallet-3d .pf-coin-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 18px var(--wcolor), inset 0 1px 0 rgba(255,255,255,.3);
  color: var(--wcolor);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pf-wallet-3d .pf-coin-face--front { transform: translateZ(2px); }
.pf-wallet-3d .pf-coin-face--back  { transform: rotateY(180deg) translateZ(2px); opacity: .8; }
.pf-wallet-3d .pf-coin-edge {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(90deg, var(--wcolor), transparent 30%, transparent 70%, var(--wcolor));
  opacity: .6;
  transform: rotateY(90deg);
}
@keyframes pf-coin-spin {
  0% { transform: rotateY(0deg) rotateX(8deg); }
  100% { transform: rotateY(360deg) rotateX(8deg); }
}
.pf-wallet:hover .pf-wallet-3d { animation-duration: 1.4s; }

/* shimmer band traveling across the card edge */
.pf-card--apple .pf-shimmer {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.18) 55%, transparent 70%);
  background-size: 250% 100%;
  animation: pf-shimmer 6s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: .55;
}
@keyframes pf-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* social icons bounce on hover */
.pf-social svg { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.pf-social:hover svg { transform: scale(1.15) rotate(-6deg); }

/* badge floating */
.pf-badge { animation: pf-badge-float 3.5s ease-in-out infinite; }
.pf-badge--star { animation-delay: -1.5s; }
@keyframes pf-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* name letter shimmer */
.pf-name {
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 30%, rgba(255,255,255,1) 45%, rgba(255,255,255,1) 55%, var(--text) 70%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pf-name-shine 6s linear infinite;
}
@keyframes pf-name-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.pf-card--glass {
  background: var(--card);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 30px 80px -10px rgba(0,0,0,.5),
    0 0 0 1px var(--card-border);
}
.pf-card--solid {
  background: rgba(15,15,25,.95);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px -10px rgba(0,0,0,.6);
}
.pf-card--outline {
  background: transparent;
  border: 1px solid var(--card-border);
}
.pf-card--neon {
  background: rgba(8,2,20,.7);
  border: 1px solid var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 24px var(--glow),
    0 0 80px var(--glow),
    inset 0 0 24px rgba(255,255,255,.05);
}

/* banner */
.pf-banner { display: none; }
.pf-avatar-wrap--nobanner {
  height: auto !important;
  padding-top: 28px;
  margin-bottom: 18px;
}
.pf-avatar-wrap--nobanner .pf-avatar {
  margin-top: 0 !important;
}
.pf-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.05); }
.pf-banner-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--card) 100%);
}

/* avatar */
.pf-avatar-wrap {
  position: relative; height: 0;
  display: flex; justify-content: center;
}
.pf-avatar {
  position: relative;
  width: 96px; height: 96px;
  margin-top: -52px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1d2e;
}
.pf-avatar-dot {
  position: absolute; right: 4px; bottom: 4px;
  width: 16px; height: 16px;
  background: #4ade80; border-radius: 50%;
  border: 3px solid var(--card);
  z-index: 2;
}

/* body */
.pf-body {
  padding: 12px 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
}

.pf-name-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 0;
  position: relative;
}
.pf-name {
  margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 0;
  line-height: 1;
}
.pf-tag {
  font-size: 12px; font-weight: 400;
  color: var(--sub);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.pf-badges {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; gap: 4px;
}
.pf-badge {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #0a0a14; background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}
.pf-badge--star { background: #fbbf24; }

.pf-bio {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-family: 'EB Garamond', 'Cormorant Garamond', 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px; line-height: 1.45;
  letter-spacing: .005em;
  min-height: 2.7em;
  text-wrap: pretty;
  padding: 0 12px;
  opacity: .85;
}
.pf-name-caret {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--accent);
  margin-left: 4px;
  align-self: center;
  animation: pf-caret 1s steps(2,end) infinite;
}
.pf-caret {
  display: inline-block; width: 7px; height: 1em;
  background: var(--accent); margin-left: 2px;
  vertical-align: -2px;
  animation: pf-caret 1s steps(2,end) infinite;
}

/* stats */
.pf-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 10px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.pf-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pf-stat-n { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-stat-l { font-size: 10px; color: var(--sub); text-transform: uppercase; letter-spacing: .08em; }
.pf-stat-sep { width: 1px; height: 22px; background: var(--card-border); }

/* socials */
.pf-socials {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px;
}
.pf-social {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  line-height: 0;
  padding: 0;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.pf-social svg { display: block; width: 18px; height: 18px; margin: 0; }
.pf-social:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color: var(--text);
  box-shadow: none;
}
.pf-card--neon .pf-social:hover { color: #fff; background: var(--accent); }
.pf-social-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font-size: 10px; white-space: nowrap;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(0,0,0,.85); color: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.pf-social:hover .pf-social-tip { opacity: 1; }

/* wallets */
.pf-wallets {
  display: flex; flex-direction: column; gap: 8px;
}
.pf-wallets-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sub);
  font-family: 'JetBrains Mono', monospace;
}
.pf-wallets-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.pf-wallet {
  appearance: none;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text); cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  position: relative;
  overflow: hidden;
}
.pf-wallet::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--wcolor); opacity: .7;
}
.pf-wallet:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--wcolor);
  transform: translateY(-1px);
}
.pf-wallet-ico { flex-shrink: 0; display: flex; }
.pf-wallet-meta { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.pf-wallet-ticker { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pf-wallet-addr {
  font-size: 9.5px; color: var(--sub);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-wallet-status { color: var(--sub); display: flex; align-items: center; }
.pf-wallet-status.is-copied { color: #4ade80; }

/* player cover image */
.pf-player-art-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}

/* wallet detail modal */
.pf-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: pf-modal-fade .25s ease forwards;
  padding: 20px;
}
@keyframes pf-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pf-modal-card {
  position: relative;
  width: 100%; max-width: 380px;
  padding: 28px 24px 22px;
  border-radius: 22px;
  background: rgba(20, 18, 32, 0.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 24px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.04) inset;
  color: var(--text);
  animation: pf-modal-in .35s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes pf-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.pf-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--text); opacity: .7;
  cursor: pointer; transition: all .15s;
}
.pf-modal-close:hover { opacity: 1; background: rgba(255,255,255,.12); }

.pf-modal-coin {
  position: relative;
  width: 120px; height: 120px;
  margin: 6px auto 18px;
  display: grid; place-items: center;
}
.pf-modal-coin-glow {
  position: absolute; inset: -10px;
  filter: blur(30px); opacity: .25;
  border-radius: 50%;
  animation: pf-modal-pulse 3s ease-in-out infinite;
}
@keyframes pf-modal-pulse {
  0%, 100% { opacity: .2;  transform: scale(1); }
  50%      { opacity: .35; transform: scale(1.06); }
}
.pf-modal-coin-3d {
  position: relative;
  width: 110px; height: 110px;
  transform-style: preserve-3d;
  animation: pf-modal-coin-spin 5s linear infinite;
}
@keyframes pf-modal-coin-spin {
  0%   { transform: rotateY(0deg)   rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}
.pf-modal-coin-face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--wcolor) 40%, #fff 20%), var(--wcolor) 70%, color-mix(in srgb, var(--wcolor) 60%, #000) 100%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--wcolor) 80%, #fff 20%) inset,
    0 0 30px var(--wcolor);
  color: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pf-modal-coin-face svg { width: 56px; height: 56px; }
.pf-modal-coin-face--front { transform: translateZ(6px); }
.pf-modal-coin-face--back  { transform: rotateY(180deg) translateZ(6px); opacity: .85; }
.pf-modal-coin-edge {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(90deg, var(--wcolor), color-mix(in srgb, var(--wcolor) 30%, #000) 50%, var(--wcolor));
  transform: translateZ(0);
}

.pf-modal-head { text-align: center; margin-bottom: 18px; }
.pf-modal-ticker {
  font-size: 22px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text);
}
.pf-modal-label {
  font-size: 12px; color: var(--sub);
  letter-spacing: .1em; text-transform: uppercase;
  margin-top: 4px;
}

.pf-modal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  margin-bottom: 8px;
}
.pf-modal-row-label {
  font-size: 11px; color: var(--sub);
  letter-spacing: .08em; text-transform: uppercase;
}
.pf-modal-row-value {
  font-size: 12px; font-weight: 500;
  color: var(--text);
  text-align: right;
}

.pf-modal-note {
  font-size: 11.5px; line-height: 1.5;
  color: var(--sub);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.pf-modal-warn {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,170,80,.08), rgba(255,170,80,.04));
  border: 1px solid rgba(255,170,80,.25);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 11px; line-height: 1.5;
  color: #ffd9a8;
}
.pf-modal-warn svg { flex-shrink: 0; margin-top: 1px; color: #ffb05c; }

.pf-modal-addr-label {
  font-size: 10px; color: var(--sub);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.pf-modal-addr {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.pf-modal-addr code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}
.pf-modal-copy {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 8px 10px;
  background: var(--accent);
  color: #0a0a14;
  border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.pf-modal-copy:hover { transform: translateY(-1px); filter: brightness(1.1); }
.pf-modal-copy.is-copied {
  background: #4ade80; color: #0a0a14;
}

/* player */
.pf-player {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.pf-player-top { display: flex; align-items: center; gap: 10px; }
.pf-player-art {
  position: relative;
  width: 44px; height: 44px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.pf-player-spin {
  position: absolute; inset: 0;
  background: conic-gradient(transparent, rgba(255,255,255,.15), transparent);
  animation: pf-spin 4s linear infinite;
  animation-play-state: paused;
}
.pf-player-spin.is-on { animation-play-state: running; }
.pf-player-meta { flex: 1; min-width: 0; }
.pf-player-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-player-artist { font-size: 11px; color: var(--sub); margin-top: 1px; }

.pf-viz {
  display: flex; align-items: flex-end; gap: 2px;
  height: 22px; width: 56px; flex-shrink: 0;
}
.pf-viz span {
  flex: 1; height: 100%;
  border-radius: 1px;
  transform-origin: bottom;
  transform: scaleY(.3);
  transition: opacity .3s ease;
  animation: pf-bar 1.1s ease-in-out infinite;
}

.pf-player-seek { display: flex; align-items: center; gap: 8px; }
.pf-player-time {
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  color: var(--sub); font-variant-numeric: tabular-nums;
  min-width: 28px;
}
.pf-seekbar {
  flex: 1; position: relative; height: 4px;
  background: rgba(255,255,255,.1); border-radius: 2px;
  cursor: pointer;
}
.pf-seekbar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 2px;
  transition: width .2s linear;
}
.pf-seekbar-thumb {
  position: absolute; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--glow);
  transition: left .2s linear;
}

.pf-player-ctrls { display: flex; align-items: center; gap: 8px; }
.pf-player-ctrls button {
  appearance: none; border: 0; background: rgba(255,255,255,.06);
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.pf-player-ctrls button:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.pf-player-play { width: 36px !important; height: 36px !important; }
.pf-player-vol {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
}
.pf-player-vol input[type=range] {
  appearance: none; -webkit-appearance: none;
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 var(--v), rgba(255,255,255,.1) var(--v) 100%);
  border-radius: 2px; outline: none; cursor: pointer;
}
.pf-player-vol input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: white; border: 0;
}
.pf-player-vol input[type=range]::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%;
  background: white; border: 0;
}

/* footer */
.pf-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding-top: 6px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: lowercase;
}
.pf-footer-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--sub);
}
