/**
 * GP CARd Engine — Lanyard Creds System (Glass Morphism Redesign)
 * "Flip your lanyard to reveal your creds"
 *
 * Rarity Tiers:
 * ***** COSMIC (0.8%)
 * ****  NOVA   (1.0%)
 * ***   SKYE   (5.0%)
 * **    NEON   (18.0%)
 * *     STREET (75.2%)
 */

:root {
  --gp-bg: #0b0f12;
  --gp-ink: rgba(255,255,255,.92);
  --gp-sub: rgba(255,255,255,.62);
  --gp-line: rgba(255,255,255,.10);
  --gp-glow: rgba(140,255,240,.18);
  --gp-accent: rgba(35,235,190,.95);
  --gp-accent2: rgba(120,90,255,.85);

  /* Glass morphism colors */
  --gp-glass-bg: rgba(15, 20, 30, 0.85);
  --gp-glass-border: rgba(255, 255, 255, 0.1);
  --gp-cyan: var(--teal-2, #00c8e6);
  --gp-teal: var(--teal, #18e1ff);
  --gp-purple: #a855f7;

  /* Tier colors - enhanced with more vibrant gradients */
  --gp-cosmic: linear-gradient(135deg, #ff6b6b 0%, #feca57 25%, #48dbfb 50%, #ff9ff3 75%, #54a0ff 100%);
  --gp-nova: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff6347 100%);
  --gp-skye: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
  --gp-neon: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f472b6 100%);
  --gp-street: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  --gp-owner: linear-gradient(135deg, var(--gp-cyan) 0%, var(--gp-teal) 50%, var(--gp-cyan) 100%); /* Teal/Cyan theme */
}

/* Past Owner Stamp */
.gp-stamp-past-owner {
  position: absolute;
  top: 100px;
  right: 30px;
  z-index: 25;

  font-size: 18px;
  font-weight: 900;
  color: #ff4757;
  text-transform: uppercase;
  letter-spacing: 2px;

  border: 3px solid #ff4757;
  border-radius: 8px;
  padding: 8px 16px;

  transform: rotate(-15deg);
  opacity: 0.85;
  mix-blend-mode: hard-light;
  pointer-events: none;

  border-style: double;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

gp-card {
  display: block;
  width: min(430px, 100%);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHELL — The outer card container (Glass Morphism)
═══════════════════════════════════════════════════════════════════════════ */
.gp-card-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5/3.5;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 210, 211, 0.15), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(168, 85, 247, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(15, 20, 30, 0.95), rgba(10, 15, 22, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 210, 211, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  will-change: transform;
  user-select: none;
  transition: transform 120ms ease-out, box-shadow 300ms ease;
}

.gp-card-shell:hover {
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(0, 210, 211, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gp-card-shell[data-layout="badge"] {
  border-radius: 32px;
  padding: 24px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(168, 85, 247, 0.2), transparent 45%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 210, 211, 0.18), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.1), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0, 210, 211, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.98), rgba(6, 9, 15, 0.99));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow:
    0 50px 140px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(168, 85, 247, 0.15),
    0 0 120px rgba(0, 210, 211, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  min-height: 640px;
}

/* VIP CREDENTIAL badge — Premium holographic feel */
.gp-card-shell[data-layout="badge"]::after {
  content: "★ VIP CREDENTIAL ★";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  background:
    linear-gradient(135deg,
      rgba(168, 85, 247, 0.95) 0%,
      rgba(139, 69, 219, 0.9) 25%,
      rgba(0, 210, 211, 0.9) 75%,
      rgba(24, 225, 255, 0.95) 100%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
  box-shadow:
    0 8px 32px rgba(168, 85, 247, 0.5),
    0 4px 16px rgba(0, 210, 211, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 40px rgba(168, 85, 247, 0.3);
  z-index: 24;
  animation: vipBadgePulse 3s ease-in-out infinite;
}

@keyframes vipBadgePulse {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(168, 85, 247, 0.5),
      0 4px 16px rgba(0, 210, 211, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2),
      0 0 40px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow:
      0 12px 40px rgba(168, 85, 247, 0.7),
      0 6px 24px rgba(0, 210, 211, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2),
      0 0 60px rgba(0, 210, 211, 0.4);
  }
}

/* Spotlight effect - subtle top glow */
.gp-card-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(0, 210, 211, 0.08), transparent 60%);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIER BORDER GLOWS — Dynamic tier-based styling
═══════════════════════════════════════════════════════════════════════════ */

/* OWNER'S EDITION - Signature teal/cyan glow */
.gp-card-shell[data-tier="OWNER"] {
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 210, 211, 0.35),
    0 0 120px rgba(24, 225, 255, 0.2),
    inset 0 0 0 2px rgba(0, 210, 211, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.gp-card-shell[data-tier="OWNER"]::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.6), rgba(24, 225, 255, 0.4), rgba(0, 188, 212, 0.5));
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
  animation: ownerGlow 4s ease-in-out infinite;
}
@keyframes ownerGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}
.gp-card-shell[data-tier="OWNER"] .gp-neon-border {
  border-color: rgba(0, 210, 211, 0.6);
  box-shadow: 0 0 25px rgba(0, 210, 211, 0.5), inset 0 0 15px rgba(0, 210, 211, 0.2);
}
.gp-card-shell[data-tier="OWNER"] .gp-tier-badge {
  background: var(--gp-owner);
  color: #0a1a1f;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 210, 211, 0.4), 0 0 40px rgba(24, 225, 255, 0.3);
}

/* COSMIC - Rainbow iridescent glow */
.gp-card-shell[data-tier="COSMIC"] {
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 107, 107, 0.35),
    0 0 120px rgba(72, 219, 251, 0.25),
    inset 0 0 0 2px rgba(255, 107, 107, 0.6);
  animation: cosmicShimmer 3s ease-in-out infinite;
}
@keyframes cosmicShimmer {
  0%, 100% { box-shadow: 0 25px 80px rgba(0,0,0,.6), 0 0 80px rgba(255,107,107,.35), 0 0 120px rgba(72,219,251,.25), inset 0 0 0 2px rgba(255,107,107,.6); }
  33% { box-shadow: 0 25px 80px rgba(0,0,0,.6), 0 0 80px rgba(254,202,87,.35), 0 0 120px rgba(255,159,243,.25), inset 0 0 0 2px rgba(254,202,87,.6); }
  66% { box-shadow: 0 25px 80px rgba(0,0,0,.6), 0 0 80px rgba(72,219,251,.35), 0 0 120px rgba(84,160,255,.25), inset 0 0 0 2px rgba(72,219,251,.6); }
}

/* NOVA / APEX - Golden amber glow */
.gp-card-shell[data-tier="NOVA"],
.gp-card-shell[data-tier="APEX"] {
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(255, 215, 0, 0.35),
    0 0 100px rgba(255, 140, 0, 0.2),
    inset 0 0 0 2px rgba(255, 215, 0, 0.55);
}

/* SKYE - Cool blue glow */
.gp-card-shell[data-tier="SKYE"] {
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(59, 130, 246, 0.35),
    0 0 100px rgba(96, 165, 250, 0.2),
    inset 0 0 0 2px rgba(59, 130, 246, 0.55);
}

/* NEON - Purple/cyan electric glow */
.gp-card-shell[data-tier="NEON"] {
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(124, 58, 237, 0.35),
    0 0 80px rgba(0, 212, 255, 0.2),
    inset 0 0 0 2px rgba(124, 58, 237, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLIP — Front/Back card faces
═══════════════════════════════════════════════════════════════════════════ */
.gp-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(.2,.7,.2,1);
}
.gp-flip.is-back {
  transform: rotateY(180deg);
}

.gp-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

/* Utility classes for JS-injected content */
.gp-section-title {
  font-size: 13px;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: var(--gp-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gp-input-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr auto;
  gap: 8px;
  align-items: center;
}

.gp-input-field {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  width: 100%;
}

.gp-remove-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.gp-remove-btn:hover {
  background: rgba(255,255,255,.12);
}
.gp-face.back {
  transform: rotateY(180deg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FRAME + PHOTO — Enhanced glass morphism styling
═══════════════════════════════════════════════════════════════════════════ */
.gp-card-frame {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 210, 211, 0.05), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gp-card-photo {
  position: absolute;
  inset: 14px 14px 118px 14px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 2px 20px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Photo gradient overlay for text readability */
.gp-card-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
  z-index: 1;
}

.gp-card-photo canvas,
.gp-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.gp-card-shell:hover .gp-card-photo canvas,
.gp-card-shell:hover .gp-card-photo img {
  transform: scale(1.02);
}

.gp-card-photo .gp-photo-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(0, 210, 211, 0.08), transparent 70%);
}

.gp-card-shell[data-layout="badge"] .gp-card-photo {
  inset: 90px 24px 160px 24px;
  border-radius: 24px;
  border: 2px solid rgba(168, 85, 247, 0.3);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(168, 85, 247, 0.25),
    0 0 80px rgba(0, 210, 211, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(0, 210, 211, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.gp-card-shell[data-layout="badge"] .gp-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid;
  border-image: linear-gradient(135deg,
    rgba(168, 85, 247, 0.6),
    rgba(0, 210, 211, 0.6)) 1;
  box-shadow:
    0 0 50px rgba(168, 85, 247, 0.2),
    inset 0 0 30px rgba(168, 85, 247, 0.1);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES — Top left event/award badges (Glass morphism)
═══════════════════════════════════════════════════════════════════════════ */
.gp-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 36px);
  z-index: 7;
}

.gp-badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 210, 211, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM INFO — Title, subtitle, chips (Enhanced glass morphism)
═══════════════════════════════════════════════════════════════════════════ */
.gp-card-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 98px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 20, 30, 0.9), rgba(10, 15, 22, 0.95)),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 210, 211, 0.08), transparent 60%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 -8px 32px rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gp-card-shell[data-layout="badge"] .gp-card-bottom {
  bottom: 24px;
  left: 24px;
  right: 24px;
  height: 130px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 20, 30, 0.95), rgba(8, 12, 20, 0.98)),
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 210, 211, 0.1), transparent 60%);
  box-shadow:
    inset 0 0 0 1px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 -12px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.1);
  gap: 8px;
  padding: 16px 20px;
}

.gp-card-shell[data-layout="badge"] .gp-card-bottom .gp-title {
  font-size: 19px;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.gp-card-shell[data-layout="badge"] .gp-card-bottom .gp-subtitle {
  color: rgba(168, 85, 247, 0.9);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.gp-card-shell[data-layout="badge"] .gp-chipset {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}

/* VIP Credential chips get premium purple styling */
.gp-card-shell[data-layout="badge"] .gp-chip {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 4px 12px rgba(168, 85, 247, 0.15),
    inset 0 0 12px rgba(168, 85, 247, 0.1);
}

.gp-card-shell[data-layout="badge"] .gp-chip:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 6px 20px rgba(168, 85, 247, 0.25),
    0 0 20px rgba(168, 85, 247, 0.15);
}

/* VIP animated holographic border */
.gp-card-shell[data-layout="badge"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.6) 0%,
    rgba(0, 210, 211, 0.6) 25%,
    rgba(168, 85, 247, 0.4) 50%,
    rgba(0, 210, 211, 0.6) 75%,
    rgba(168, 85, 247, 0.6) 100%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: vipHoloBorder 4s linear infinite;
  z-index: 0;
}

@keyframes vipHoloBorder {
  0% { background-position: 0% 50%; opacity: 0.7; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.7; }
}

.gp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gp-title {
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.3px;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gp-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gp-chipset {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.gp-chip {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gp-chip--accent {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.3), rgba(168, 85, 247, 0.25));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(0, 210, 211, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tier-specific chip styles */
.gp-chip--owner {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.4), rgba(24, 225, 255, 0.3));
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 210, 211, 0.4),
    0 0 25px rgba(0, 210, 211, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.gp-chip--cosmic {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(72, 219, 251, 0.35));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 107, 107, 0.25);
  animation: chipPulse 2s ease-in-out infinite;
}

.gp-chip--nova,
.gp-chip--apex {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 140, 0, 0.35));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 25px rgba(255, 215, 0, 0.2);
}

.gp-chip--skye {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(59, 130, 246, 0.35));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(59, 130, 246, 0.2);
}

.gp-chip--neon {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(124, 58, 237, 0.3));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(124, 58, 237, 0.15);
}

.gp-chip--street {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.3), rgba(148, 163, 184, 0.25));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes chipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTROLS — Small overlay buttons (Glass morphism)
═══════════════════════════════════════════════════════════════════════════ */
.gp-controls {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  gap: 8px;
  z-index: 9;
}

.gp-card-shell[data-layout="badge"] .gp-controls {
  right: 24px;
  top: 72px;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* VIP Credential controls get premium styling */
.gp-card-shell[data-layout="badge"] .gp-ctl {
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.15);
  box-shadow:
    0 4px 20px rgba(168, 85, 247, 0.2),
    inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.gp-card-shell[data-layout="badge"] .gp-ctl:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow:
    0 6px 24px rgba(168, 85, 247, 0.35),
    0 0 30px rgba(168, 85, 247, 0.2);
}

.gp-ctl {
  font: inherit;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-weight: 600;
  transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gp-ctl:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.gp-ctl:active {
  transform: translateY(1px);
}

.gp-ctl[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.gp-ctl--primary {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.45), rgba(168, 85, 247, 0.35));
  border-color: rgba(0, 210, 211, 0.5);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(0, 210, 211, 0.2);
}

.gp-ctl--primary:hover {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.6), rgba(168, 85, 247, 0.5));
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 210, 211, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACK FACE — Creds layout
═══════════════════════════════════════════════════════════════════════════ */
.gp-back {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(35,235,190,.10), transparent 55%),
    radial-gradient(120% 120% at 80% 80%, rgba(120,90,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.gp-back h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--gp-ink);
  letter-spacing: .5px;
}

.gp-back .meta {
  font-size: 12px;
  color: var(--gp-sub);
  margin: 0;
}

.gp-back .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gp-back .box {
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px;
}

.gp-back .list {
  margin: 0;
  padding-left: 16px;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  line-height: 1.45;
}

.gp-back .list li {
  margin: 2px 0;
}

/* Creds header */
.gp-creds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 4px;
}

.gp-creds-type {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.gp-creds-type--owner {
  background: linear-gradient(90deg, rgba(35,235,190,.3), rgba(120,90,255,.3));
  color: #23ebbc;
}

.gp-creds-type--visitor {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

/* Stats grid */
.gp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gp-stat-box {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.gp-stat-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--gp-ink);
  line-height: 1;
}

.gp-stat-label {
  font-size: 10px;
  color: var(--gp-sub);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOLO FOIL EFFECT
═══════════════════════════════════════════════════════════════════════════ */
.gp-holo {
  pointer-events: none;
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  filter: saturate(1.15) contrast(1.06);
  transform: translateZ(45px);
  border-radius: 22px;
  overflow: hidden;
}

.gp-holo::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    conic-gradient(from 0deg at var(--mx,50%) var(--my,50%),
      rgba(35,235,190,.00),
      rgba(35,235,190,.28),
      rgba(120,90,255,.22),
      rgba(255,210,70,.18),
      rgba(35,235,190,.28),
      rgba(35,235,190,.00)
    );
  animation: gpHoloSpin 10s linear infinite;
}

.gp-holo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(120deg,
      rgba(255,255,255,.00) 0px,
      rgba(255,255,255,.00) 6px,
      rgba(255,255,255,.06) 7px,
      rgba(255,255,255,.00) 12px);
  opacity: .55;
  mix-blend-mode: overlay;
}

@keyframes gpHoloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDGE GLOW
═══════════════════════════════════════════════════════════════════════════ */
.gp-edgeglow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 0 26px rgba(35,235,190,.12);
  transform: translateZ(36px);
  opacity: .95;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERIAL STAMP
═══════════════════════════════════════════════════════════════════════════ */
.gp-serial {
  position: absolute;
  left: 16px;
  bottom: 118px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  color: rgba(255,255,255,.78);
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  z-index: 8;
}

.gp-card-shell[data-layout="badge"] .gp-serial {
  bottom: 165px;
  left: 28px;
  font-size: 11px;
  color: rgba(168, 85, 247, 0.7);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FX LAYER — Particles + effects
═══════════════════════════════════════════════════════════════════════════ */
.gp-fx-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

#gpFxCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RARITY BANNER — "COSMIC CRED" reveal
═══════════════════════════════════════════════════════════════════════════ */
.gp-rarity-banner {
  position: fixed;
  left: 50%;
  top: 14%;
  transform: translateX(-50%) scale(.92);
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: 1.2px;
  font-size: 24px;
  color: rgba(255,255,255,.94);
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.2,1);
  backdrop-filter: blur(14px);
  text-transform: uppercase;
  z-index: 10001;
}

.gp-rarity-banner.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Tier-specific banner styles */
.gp-rarity-banner[data-tier="COSMIC"] {
  background: linear-gradient(135deg, rgba(255,107,107,.4), rgba(72,219,251,.4));
  border-color: rgba(255,107,107,.5);
  box-shadow: 0 18px 60px rgba(255,107,107,.3), 0 0 100px rgba(72,219,251,.2);
  animation: cosmicBannerPulse 1.5s ease-in-out infinite;
}

.gp-rarity-banner[data-tier="NOVA"],
.gp-rarity-banner[data-tier="APEX"] {
  background: linear-gradient(135deg, rgba(255,215,0,.4), rgba(255,140,0,.4));
  border-color: rgba(255,215,0,.5);
  box-shadow: 0 18px 60px rgba(255,215,0,.25);
}

.gp-rarity-banner[data-tier="SKYE"] {
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(0,212,255,.25));
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 18px 60px rgba(59,130,246,.22);
}

.gp-rarity-banner[data-tier="NEON"] {
  background: linear-gradient(135deg, rgba(0,212,255,.35), rgba(124,58,237,.35));
  border-color: rgba(124,58,237,.4);
  box-shadow: 0 18px 60px rgba(124,58,237,.2);
}

@keyframes cosmicBannerPulse {
  0%, 100% { box-shadow: 0 18px 60px rgba(255,107,107,.3), 0 0 100px rgba(72,219,251,.2); }
  50% { box-shadow: 0 18px 80px rgba(255,107,107,.5), 0 0 150px rgba(72,219,251,.35); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COSMIC WARP — Ultra rare reveal effect
═══════════════════════════════════════════════════════════════════════════ */
.gp-timewarp {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,.10), transparent 65%),
    conic-gradient(from 0deg, rgba(35,235,190,.22), rgba(120,90,255,.20), rgba(255,215,80,.14), rgba(35,235,190,.22));
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(2px) saturate(1.2);
  animation: gpWarp 1200ms ease-out forwards;
  z-index: 10000;
}

@keyframes gpWarp {
  0% { opacity: 0; transform: scale(.98); }
  35% { opacity: .55; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.06); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BINDER UI — Collection drawer
═══════════════════════════════════════════════════════════════════════════ */
.gp-binder-ui {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  max-height: 280px;
  z-index: 9998;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(35,235,190,.12), transparent 60%),
    radial-gradient(120% 120% at 90% 90%, rgba(120,90,255,.12), transparent 60%),
    rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 26px 90px rgba(0,0,0,.62);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 300ms ease, opacity 300ms ease;
}

.gp-binder-ui.collapsed {
  transform: translateY(calc(100% - 48px));
}

.gp-binder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 12px;
  cursor: pointer;
}

.gp-binder-head:hover {
  background: rgba(255,255,255,.05);
}

.gp-binder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.gp-slot {
  aspect-ratio: 2.5/3.5;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.18);
  position: relative;
  overflow: hidden;
  transition: all 200ms ease;
}

.gp-slot.filled {
  border-style: solid;
  border-color: rgba(255,255,255,.18);
}

.gp-slot .tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 9px;
  font-weight: 850;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  padding: 4px 6px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 12px);
}

.gp-slot canvas,
.gp-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

/* Card fly-to-binder animation */
.gp-card-fly {
  position: fixed;
  width: 260px;
  height: 364px;
  border-radius: 22px;
  z-index: 9999;
  pointer-events: none;
  transform-origin: center;
  animation: cardFly 1.1s cubic-bezier(.25,.8,.25,1) forwards;
}

@keyframes cardFly {
  0% { transform: translate(var(--sx), var(--sy)) scale(1) rotate(0deg); opacity: 1; }
  60% { transform: translate(calc(var(--tx) * .6), calc(var(--ty) * .6)) scale(.7) rotate(-8deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(.38) rotate(-14deg); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .gp-holo::before { animation: none; }
  .gp-card-shell { transition: none; }
  .gp-flip { transition: none; }
  .gp-rarity-banner { transition: none; }
  .gp-card-fly { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .gp-binder-ui {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-width: 360px;
  }

  .gp-rarity-banner {
    font-size: 20px;
    padding: 14px 22px;
  }

  .gp-controls {
    gap: 6px;
  }

  .gp-ctl {
    font-size: 11px;
    padding: 6px 8px;
  }
}
