/* ══════════════════════════════════════
   VibraAura · Dynamic Identity System
   VibraWorld © 2025
   ══════════════════════════════════════ */

/* ── Nav Avatar Wrap ── */
#tnAvatarWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#va-nav-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.tn-avatar-ph, .tn-avatar-img {
  position: relative;
  z-index: 1;
}

/* ── Profile Aura Canvas ── */
.pp-hero {
  position: relative;
  overflow: visible;
}

#va-prof-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.pp-avatar-ph,
.pp-avatar-img {
  position: relative;
  z-index: 1;
}

/* ── Aura Info Card ── */
.va-aura-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  margin: 0 16px 16px;
  backdrop-filter: blur(10px);
  animation: va-card-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes va-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.va-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.va-card-emoji {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px currentColor);
  animation: va-emoji-float 3s ease-in-out infinite;
}

@keyframes va-emoji-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.va-card-tier {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 800;
  color: var(--fg1);
  letter-spacing: .03em;
}

.va-card-level {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--fg3);
  margin-top: 2px;
}

/* Progress bar */
.va-card-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.va-card-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--va-color, linear-gradient(90deg, #7c3aed, #06b6d4));
  transition: width 1.2s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.va-card-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: va-bar-shine 2s ease-in-out infinite;
}

@keyframes va-bar-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.va-card-hint {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--fg3);
  text-align: center;
}

/* ── Tier badge chip ── */
.va-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: 0.9;
  margin-top: 4px;
}

.va-tier-chip.dormant   { color: #666; border-color: #444; }
.va-tier-chip.awakening { color: #00d4ff; border-color: #00d4ff44; background: #00d4ff11; }
.va-tier-chip.active    { color: #a855f7; border-color: #a855f744; background: #a855f711; }
.va-tier-chip.radiant   { color: #f59e0b; border-color: #f59e0b44; background: #f59e0b11; }
.va-tier-chip.cosmic    { 
  background: linear-gradient(90deg, #ff006e22, #8338ec22, #3a86ff22);
  border-color: transparent;
  animation: va-cosmic-chip 3s linear infinite;
}

@keyframes va-cosmic-chip {
  0%   { box-shadow: 0 0 8px #ff006e44; }
  33%  { box-shadow: 0 0 8px #8338ec44; }
  66%  { box-shadow: 0 0 8px #3a86ff44; }
  100% { box-shadow: 0 0 8px #ff006e44; }
}

/* ── Aura Pulse on VBC earn ── */
@keyframes va-pulse-ring {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.5); opacity: 0; }
}

.va-pulse-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: va-pulse-ring 0.7s ease-out forwards;
}

/* ── Aura level-up toast ── */
.va-levelup-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
  z-index: 9997;
  opacity: 0;
  animation: va-toast-in 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s forwards,
             va-toast-out 0.4s ease-in 2.5s forwards;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes va-toast-in {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes va-toast-out {
  to { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}
