/* ==========================================================================
   GymDiet Master — Collectible Cards & Booster Pack Styles
   Dark Neon Luxury Theme with 3D Flip Effects & Holographic Foils
   ========================================================================== */

/* Profile Trophy Showcase */
.profile-trophies-shelf {
  box-sizing: border-box;
  width: 100%;
  margin: 16px 0;
  padding: 16px 14px;
  background: #05080e;
  border: 1px solid rgba(0, 240, 118, 0.22);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-trophies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.profile-trophies-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #f6f8ff;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.profile-trophies-title span.badge,
#profile-trophies-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  margin-left: 4px;
  min-width: 46px;
  border-radius: 8px !important;
  background: rgba(0, 240, 118, 0.12) !important;
  color: #00f076 !important;
  border: 1px solid rgba(0, 240, 118, 0.35) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  letter-spacing: 0.5px;
}

.profile-trophies-btn {
  background: rgba(0, 240, 118, 0.08);
  border: 1px solid rgba(0, 240, 118, 0.3);
  color: #00f076;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
  margin-left: auto;
  box-sizing: border-box;
}

.profile-trophies-btn:hover {
  background: rgba(0, 240, 118, 0.2);
  border-color: #00f076;
  color: #ffffff;
}

/* 3 Slots Row */
.profile-trophies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-trophy-slot {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: rgba(13, 18, 34, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.profile-trophy-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 118, 0.4);
}

.profile-trophy-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(218, 225, 248, 0.4);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}

.profile-trophy-empty .plus-icon {
  font-size: 20px;
  color: rgba(0, 240, 118, 0.6);
}

/* Weekly Quest Streak Banner in Profile or Home */
.weekly-booster-banner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #05080e, #090f18);
  border: 1px solid rgba(0, 240, 118, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 240, 118, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.weekly-booster-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.weekly-booster-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.weekly-booster-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.weekly-booster-icon {
  font-size: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.weekly-booster-title {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-booster-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 1px;
  line-height: 1.35;
  width: 100%;
  word-break: break-word;
}

.weekly-streak-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #00f076;
  background: rgba(0, 240, 118, 0.14);
  border: 1px solid rgba(0, 240, 118, 0.35);
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.weekly-booster-progress-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.weekly-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.weekly-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f076, #17c987);
  box-shadow: 0 0 10px rgba(0, 240, 118, 0.6);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.weekly-booster-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.weekly-dot {
  position: relative !important;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: rgba(13, 18, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.weekly-dot.completed,
.weekly-dot.done,
.dashboard-dot.completed,
.dashboard-dot.done {
  background: #00f076 !important;
  background-color: #00f076 !important;
  border-color: #00f076 !important;
  color: #05080e !important;
  box-shadow: 0 0 12px rgba(0, 240, 118, 0.5) !important;
  position: relative !important;
  transform: scale(1.05);
}

.weekly-dot.completed svg,
.weekly-dot.completed svg *,
.weekly-dot.done svg,
.weekly-dot.done svg *,
.dashboard-dot.completed svg,
.dashboard-dot.completed svg *,
.dashboard-dot.done svg,
.dashboard-dot.done svg * {
  stroke: #05080e !important;
  color: #05080e !important;
  stroke-width: 2.6 !important;
}

.weekly-dot.completed::after,
.weekly-dot.done::after,
.dashboard-dot.completed::after,
.dashboard-dot.done::after {
  content: '✓';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  background: #05080e;
  color: #00f076;
  font-size: 9px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #00f076;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.weekly-booster-action {
  width: 100%;
  box-sizing: border-box;
}

.weekly-open-pack-btn {
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 118, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.weekly-open-pack-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.weekly-open-pack-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Booster Pack Opening Modal & 3D Card Flipping
   ========================================================================== */
.card-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.card-modal-content {
  position: relative;
  width: min(480px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

/* The Sealed Booster Pack */
.booster-pack-wrapper {
  perspective: 1200px;
  margin: 20px 0;
  cursor: pointer;
}

.booster-pack-foil {
  width: 200px;
  height: 290px;
  border-radius: 18px;
  background: linear-gradient(145deg, #09121c, #05080e, #0c1824);
  border: 2px solid #00f076;
  box-shadow: 0 20px 50px rgba(0, 240, 118, 0.25), inset 0 0 30px rgba(0, 240, 118, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 14px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.booster-pack-foil:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 25px 60px rgba(0, 240, 118, 0.4);
}

.booster-pack-foil::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(0, 240, 118, 0.15) 50%,
    transparent 55%
  );
  animation: shine-sweep 3s infinite linear;
}

@keyframes shine-sweep {
  0% { transform: translateY(-30%) rotate(25deg); }
  100% { transform: translateY(30%) rotate(25deg); }
}

.booster-pack-emblem {
  font-size: 54px;
  margin-top: 20px;
  filter: drop-shadow(0 0 12px rgba(0, 240, 118, 0.5));
}

.booster-pack-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booster-pack-sub {
  font-size: 11px;
  font-weight: 700;
  color: #00f076;
  margin-top: 4px;
}

.booster-pack-hint {
  font-size: 11px;
  color: rgba(218, 225, 248, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Interactive 3D Cards Unveiled
   ========================================================================== */
.unveiled-cards-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 20px 0;
  perspective: 1000px;
}

.card-3d-scene {
  width: min(130px, 30vw);
  aspect-ratio: 2 / 3.1;
  perspective: 800px;
}

.card-3d-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card-3d-flipper.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  overflow: hidden;
}

/* Card Back (Facedown) */
.card-face-back {
  background: linear-gradient(145deg, #090e17, #030508);
  border: 2px solid rgba(0, 240, 118, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-face-back .back-pattern {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 118, 0.4);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #00f076;
}

.card-face-back .tap-flip-text {
  font-size: 9px;
  font-weight: 800;
  color: rgba(0, 240, 118, 0.8);
  text-transform: uppercase;
}

/* Card Front (Revealed) */
.card-face-front {
  transform: rotateY(180deg);
  background: #060a12;
  border: 2px solid #94a3b8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  text-align: left;
}

/* Rarity specific glow & border */
.card-face-front.rarity-common {
  border-color: #94a3b8;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.25);
}

.card-face-front.rarity-rare {
  border-color: #17c987;
  box-shadow: 0 0 20px rgba(0, 240, 118, 0.35);
}

.card-face-front.rarity-super_rare {
  border-color: #00f076;
  box-shadow: 0 0 24px rgba(0, 240, 118, 0.45);
}

.card-face-front.rarity-epic {
  border-color: #a855f7;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.5);
}

.card-face-front.rarity-mythic {
  border-color: #ff5c7a;
  box-shadow: 0 0 32px rgba(255, 92, 122, 0.6);
}

.card-face-front.rarity-legendary {
  border-color: #facc15;
  box-shadow: 0 0 38px rgba(250, 204, 21, 0.7);
}

.card-face-front.rarity-ultra {
  border-color: #fff;
  background: linear-gradient(145deg, #090d16, #04060a);
  box-shadow: 0 0 45px rgba(0, 240, 118, 0.6), 0 0 20px rgba(250, 204, 21, 0.6);
  position: relative;
}

/* Holographic Rainbow Shimmer Overlay for Ultra */
.card-face-front.rarity-ultra::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 0, 0, 0.12),
    rgba(255, 255, 0, 0.12),
    rgba(0, 255, 118, 0.12),
    rgba(0, 200, 255, 0.12),
    rgba(180, 0, 255, 0.12)
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

.card-top-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rarity-pill {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
}

.card-category-pill {
  font-size: 8px;
  font-weight: 700;
  color: rgba(218, 225, 248, 0.6);
}

.card-art-box {
  display: grid;
  place-items: center;
  min-height: 48px;
  font-size: 34px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.card-info-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-name-title {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-quote-snip {
  font-size: 8px;
  font-style: italic;
  color: rgba(218, 225, 248, 0.55);
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-stat-pill {
  margin-top: 4px;
  background: rgba(0, 240, 118, 0.1);
  border: 1px solid rgba(0, 240, 118, 0.25);
  border-radius: 4px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 800;
  color: #00f076;
}

/* ==========================================================================
   Collection Binder Modal Grid (All 30 Cards)
   ========================================================================== */
.binder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  box-sizing: border-box;
}

.binder-card-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 3.1;
  background: #05080e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.binder-card-item:hover {
  transform: translateY(-2px);
  border-color: #00f076;
}

.binder-card-item.is-locked {
  filter: grayscale(1) opacity(0.45);
  border-style: dashed;
}

.binder-card-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #00f076;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.binder-card-trophy-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 14px;
}

/* ==========================================================================
   Cinematic 3D Booster Pack Unboxing & Card Flip Animations
   ========================================================================== */

/* Fullscreen Unboxing Stage */
.unboxing-fullscreen-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000000 !important;
  z-index: 200050 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.booster-pack-open .bottom-nav,
body.booster-pack-open #bottom-nav,
body.booster-pack-open nav.bottom-nav,
body.booster-pack-open [data-screen-nav] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.booster-pack-opened .unboxing-footer,
body.booster-pack-opened #instructionNote,
body.booster-pack-opened .unboxing-instruction-note,
body.booster-pack-opened #nextCardBtn,
body.booster-pack-opened .next-card-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.unboxing-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 45%, rgba(0, 240, 118, 0.08) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.unboxing-ambient-light {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 90vw);
  height: min(650px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 118, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  transition: background 0.8s ease, transform 0.8s ease;
  z-index: 1;
}

.unboxing-header-hud {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 900px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unboxing-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.unboxing-brand-title span.accent {
  color: #00f076;
}

.unboxing-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s;
}

.unboxing-close-btn:hover {
  border-color: #00f076;
  color: #00f076;
  background: rgba(0, 240, 118, 0.12);
}

/* Stage & Perspective Area */
.unboxing-stage-container {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: visible;
}

/* Cards State Banner */
.cards-state-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid rgba(0, 240, 118, 0.3);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 118, 0.2);
  border-radius: 14px;
  padding: 8px 20px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 120;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cards-state-banner span.counter {
  color: #00f076;
  font-weight: 900;
}

/* 3D Two-Piece Foil Pack (AAA Premium) */
.pack-split-wrapper {
  position: relative;
  width: 280px;
  height: 430px;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: floatPack 4s ease-in-out infinite;
  z-index: 50;
  transition: filter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Prismatic Metallic Sheen Sweep */
.pack-split-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  background: linear-gradient(
    115deg,
    transparent 15%,
    rgba(0, 240, 118, 0.12) 32%,
    rgba(255, 215, 0, 0.35) 46%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(56, 189, 248, 0.35) 54%,
    rgba(168, 85, 247, 0.18) 68%,
    transparent 85%
  );
  background-size: 260% 260%;
  border-radius: 20px;
  opacity: 0.85;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  z-index: 60;
  animation: foilSheenSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes foilSheenSweep {
  0% { background-position: -120% -120%; }
  50%, 100% { background-position: 220% 220%; }
}

@keyframes floatPack {
  0%, 100% { transform: translateY(0px) rotateY(-5deg) rotateX(3deg); }
  50% { transform: translateY(-12px) rotateY(5deg) rotateX(-3deg); }
}

.pack-split-wrapper:hover {
  filter: drop-shadow(0 0 35px rgba(0, 240, 118, 0.65)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.45));
}

/* Pre-Tear Rumble & Suspense */
.pack-split-wrapper.pack-rumble {
  animation: packRumble 0.08s ease-in-out infinite !important;
  filter: drop-shadow(0 0 55px rgba(0, 240, 118, 0.95)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) !important;
}

@keyframes packRumble {
  0% { transform: scale(1.09) translate(0, 0) rotate(0deg); }
  25% { transform: scale(1.09) translate(-3px, 2px) rotate(-1.2deg); }
  50% { transform: scale(1.10) translate(3px, -2px) rotate(1.2deg); }
  75% { transform: scale(1.09) translate(-2px, -2px) rotate(-0.8deg); }
  100% { transform: scale(1.10) translate(2px, 2px) rotate(0.8deg); }
}

.seam-light-leak {
  position: absolute;
  top: 68px;
  left: -20px;
  right: -20px;
  height: 6px;
  background: linear-gradient(90deg, transparent, #00f076, #ffffff, #00f076, transparent);
  box-shadow: 0 0 25px #00f076, 0 0 50px #ffffff, 0 0 70px #00f076;
  opacity: 0;
  z-index: 65;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pack-split-wrapper.pack-rumble .seam-light-leak {
  opacity: 1;
  animation: seamPulse 0.12s ease-in-out infinite alternate;
}

@keyframes seamPulse {
  0% { transform: scaleY(1); opacity: 0.8; }
  100% { transform: scaleY(2.4); opacity: 1; filter: brightness(1.8); }
}

.pack-top-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  transform-origin: top right;
  z-index: 52;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.9);
  border-bottom: 2px dashed rgba(0, 240, 118, 0.85);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.pack-top-strip img {
  width: 280px;
  height: 430px;
  object-fit: cover;
  display: block;
}

.tear-cue-line {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 118, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #00f076;
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.pack-body {
  position: absolute;
  top: 72px;
  left: 0;
  width: 280px;
  height: 358px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  z-index: 51;
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(0, 240, 118, 0.35);
  transition: transform 0.85s cubic-bezier(0.35, 0.05, 0.3, 1), opacity 0.6s ease;
}

.pack-body img {
  width: 280px;
  height: 430px;
  object-fit: cover;
  display: block;
  margin-top: -72px;
}

/* Shockwave Explosion */
.shockwave-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 4px solid #00f076;
  box-shadow: 0 0 40px #00f076, 0 0 80px #00f076, inset 0 0 30px #ffffff;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
}

.shockwave-ring.animate {
  animation: shockwaveExpand 0.75s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
    border-width: 8px;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 0.8;
  }
  100% {
    width: min(1200px, 150vw);
    height: min(1200px, 150vw);
    opacity: 0;
    border-width: 1px;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.camera-shake {
  animation: cameraShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes cameraShake {
  10%, 90% { transform: translate3d(-3px, 2px, 0); }
  20%, 80% { transform: translate3d(5px, -3px, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 4px, 0); }
  40%, 60% { transform: translate3d(6px, -4px, 0); }
}

.flashbang-burst {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(0, 240, 118, 0.35) 45%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  z-index: 92;
  transition: opacity 0.15s ease-out;
}

/* Card Rarity Edge Glow */
.card-unit.glow-edge-legendary {
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.85), 0 0 75px rgba(255, 174, 0, 0.45) !important;
}
.card-unit.glow-edge-mythic {
  box-shadow: 0 0 35px rgba(255, 92, 122, 0.85), 0 0 75px rgba(168, 85, 247, 0.45) !important;
}
.card-unit.glow-edge-epic {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.75), 0 0 65px rgba(168, 85, 247, 0.35) !important;
}
.card-unit.glow-edge-rare {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.65), 0 0 50px rgba(56, 189, 248, 0.3) !important;
}

/* Slogan Banner */
.slogan-banner {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 20px #00f076, 0 0 40px #00f076;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}

#booster-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
}

.laser-slice {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, #ffffff, #ffd700, transparent);
  box-shadow: 0 0 18px #ffd700, 0 0 35px #ffffff;
  transform: translateY(-50%) rotate(-16deg);
  opacity: 0;
  z-index: 150;
  pointer-events: none;
}

.blackout-layer {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  transition: opacity 0.3s ease;
}

.god-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(850px, 95vw);
  height: min(850px, 95vw);
  background: conic-gradient(from 0deg, 
    transparent 0deg, rgba(0, 240, 118, 0.35) 25deg, transparent 50deg,
    transparent 80deg, rgba(56, 189, 248, 0.3) 100deg, transparent 130deg,
    transparent 170deg, rgba(0, 240, 118, 0.35) 190deg, transparent 220deg,
    transparent 260deg, rgba(250, 204, 21, 0.3) 280deg, transparent 310deg,
    transparent 340deg, rgba(0, 240, 118, 0.35) 360deg
  );
  border-radius: 50%;
  opacity: 0;
  filter: blur(25px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 15;
  animation: spinRays 14s linear infinite;
}

@keyframes spinRays {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 3D Stack of Cards */
.cards-stack-container {
  position: absolute;
  width: 255px;
  height: 340px; /* 3:4 aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  z-index: 40;
  pointer-events: auto;
}

.stack-card {
  position: absolute;
  width: 255px;
  height: 340px;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, filter 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.stack-card .card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95);
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.stack-card .card-front {
  transform: rotateY(180deg);
}

.stack-card .card-back {
  transform: rotateY(0deg);
}

.stack-card .card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
  display: block;
}

.card-action-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #00f076;
  color: #00f076;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 240, 118, 0.35);
  animation: bounceCue 1.2s infinite alternate ease-in-out;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@keyframes bounceCue {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-5px); }
}

/* Rarity Glow Classes */
.glow-rare {
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.45), 0 16px 45px rgba(0, 0, 0, 0.95) !important;
}
.glow-super-rare {
  box-shadow: 0 0 40px rgba(0, 240, 118, 0.5), 0 16px 45px rgba(0, 0, 0, 0.95) !important;
}
.glow-epic {
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.6), 0 16px 45px rgba(0, 0, 0, 0.95) !important;
}
.glow-mythic {
  box-shadow: 0 0 50px rgba(255, 92, 122, 0.65), 0 0 80px rgba(250, 204, 21, 0.35) !important;
}
.glow-legendary {
  box-shadow: 0 0 60px rgba(250, 204, 21, 0.85), 0 0 100px rgba(250, 204, 21, 0.45) !important;
}

.card-reveal-badge {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px 16px;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  z-index: 35;
}

.card-reveal-badge .r-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.card-reveal-badge .r-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.next-card-btn {
  position: absolute;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00f076, #17c987);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  cursor: pointer;
  display: none;
  box-shadow: 0 0 25px rgba(0, 240, 118, 0.6);
  z-index: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.next-card-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 118, 0.9);
}

/* Unboxing Footer Actions */
.unboxing-footer {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 500px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.unboxing-open-btn {
  width: 100%;
  max-width: 360px;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00f076, #17c987);
  color: #000000;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 30px rgba(0, 240, 118, 0.45);
  transition: all 0.2s;
}

.unboxing-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 240, 118, 0.7);
}

.unboxing-instruction-note {
  font-size: 12px;
  color: rgba(218, 225, 248, 0.7);
  text-align: center;
}

/* Final Summary Overlay */
.summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100060;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 16px;
  box-sizing: border-box;
}

.summary-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.summary-card {
  background: #070c14;
  border: 1px solid rgba(0, 240, 118, 0.25);
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 240, 118, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.summary-overlay.active .summary-card {
  transform: scale(1);
}

.summary-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-align: center;
}

.summary-title span {
  color: #00f076;
}

.summary-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.summary-card .summary-item {
  background: #03060a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
  width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card .summary-item:hover {
  transform: translateY(-4px) scale(1.03);
}

.summary-card .summary-item img {
  width: 100%;
  height: 186px; /* 3:4 ratio */
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
  display: block;
}

.binder-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
  display: block;
}

.card-detail-holo-card {
  width: 220px;
  height: 293px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 auto;
}

.card-detail-holo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
  display: block;
}

.summary-card .summary-item .s-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  padding: 6px 4px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.summary-card .summary-item .s-rarity {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.summary-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.summary-actions button {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reopen {
  background: linear-gradient(135deg, #00f076, #17c987);
  color: #000;
  border: none;
  box-shadow: 0 0 20px rgba(0, 240, 118, 0.4);
}

.btn-reopen:hover {
  box-shadow: 0 0 35px rgba(0, 240, 118, 0.7);
  transform: translateY(-2px);
}

.btn-table {
  background: rgba(12, 18, 28, 0.9);
  color: #fff;
  border: 1px solid rgba(0, 240, 118, 0.4);
}

.btn-table:hover {
  border-color: #00f076;
  box-shadow: 0 0 25px rgba(0, 240, 118, 0.3);
  transform: translateY(-2px);
}

@keyframes screenShake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-10px, 8px) rotate(-1deg); }
  30% { transform: translate(12px, -10px) rotate(1deg); }
  45% { transform: translate(-8px, 6px); }
  60% { transform: translate(6px, -4px); }
  80% { transform: translate(-3px, 2px); }
  100% { transform: translate(0, 0); }
}

.shaking {
  animation: screenShake 0.4s ease-out;
}

@media (max-width: 768px) {
  .cards-stack-container, .stack-card {
    width: 200px;
    height: 266px;
  }
  .summary-card .summary-item {
    width: 105px;
  }
  .summary-card .summary-item img {
    height: 140px;
  }
  .pack-split-wrapper {
    width: 230px;
    height: 358px;
  }
  .pack-top-strip {
    width: 230px;
    height: 60px;
  }
  .pack-top-strip img {
    width: 230px;
    height: 358px;
  }
  .pack-body {
    top: 60px;
    width: 230px;
    height: 358px;
    margin-top: -60px;
  }
}

/* =========================================================
   QUEST DETAILS MODAL (OLED DARK NEON AESTHETIC)
   ========================================================= */
.quest-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  animation: qmFadeIn 0.22s ease-out;
}

@keyframes qmFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.quest-modal-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: #05080e;
  border: 1px solid rgba(0, 240, 118, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 240, 118, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quest-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 18, 34, 0.6);
}

.quest-modal-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quest-modal-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px #00f076);
}

.quest-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.quest-modal-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(218, 225, 248, 0.65);
}

.quest-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.quest-modal-close:hover {
  background: rgba(255, 92, 122, 0.2);
  border-color: #ff5c7a;
  color: #ff5c7a;
}

.quest-modal-progress-section {
  padding: 14px 18px 10px;
  background: rgba(8, 12, 20, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quest-modal-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(218, 225, 248, 0.7);
  margin-bottom: 8px;
}

.quest-modal-counter {
  color: #00f076;
  font-weight: 800;
  font-size: 12px;
}

.quest-modal-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quest-modal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f076, #17c987);
  box-shadow: 0 0 10px rgba(0, 240, 118, 0.6);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quest-modal-timer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(0, 240, 118, 0.08);
  border: 1px solid rgba(0, 240, 118, 0.22);
  border-radius: 10px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.quest-modal-timer-badge .quest-timer-digits {
  color: #00f076;
  font-family: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(0, 240, 118, 0.45);
}

.quest-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quest-task-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(13, 18, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.quest-task-item.is-done {
  background: rgba(0, 240, 118, 0.07);
  border-color: rgba(0, 240, 118, 0.3);
}

.quest-task-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.quest-task-ico {
  font-size: 20px;
  flex-shrink: 0;
}

.quest-task-text {
  min-width: 0;
  flex: 1;
}

.quest-task-name {
  font-size: 13px;
  font-weight: 800;
  color: #f6f8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quest-task-desc {
  font-size: 11px;
  color: rgba(218, 225, 248, 0.55);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quest-task-action {
  flex-shrink: 0;
  margin-left: 10px;
}

.quest-badge-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #00f076;
  background: rgba(0, 240, 118, 0.16);
  border: 1px solid rgba(0, 240, 118, 0.35);
  padding: 5px 10px;
  border-radius: 8px;
}

.quest-btn-jump {
  font-size: 11px;
  font-weight: 800;
  color: #00f076;
  background: transparent;
  border: 1px solid rgba(0, 240, 118, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quest-btn-jump:hover,
.quest-btn-jump:active {
  background: #00f076;
  color: #000000;
  box-shadow: 0 0 10px rgba(0, 240, 118, 0.5);
}

.quest-modal-footer {
  padding: 12px 18px 16px;
  background: rgba(13, 18, 34, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quest-btn-open-pack {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #00f076 0%, #17c987 100%);
  color: #000000;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 240, 118, 0.45);
  transition: all 0.2s ease;
}

.quest-btn-open-pack.pulse {
  animation: qmPulse 1.8s infinite;
}

@keyframes qmPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 118, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 18px 4px rgba(0, 240, 118, 0.4); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 118, 0.7); transform: scale(1); }
}

.quest-footer-hint {
  font-size: 11px;
  color: rgba(218, 225, 248, 0.6);
  text-align: center;
  line-height: 1.4;
}

/* =========================================================
   3D TILT & HOLOGRAPHIC FOIL ENGINE (HOLO SHIELD)
   ========================================================= */
.holo-tilt-active {
  transform-style: preserve-3d;
  will-change: transform;
}

.holo-foil-layer {
  display: none !important; /* Disabled: no rainbow distortion on cards */
}

.holo-glare-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    calc(var(--tilt-angle, 125deg) + 90deg),
    rgba(255, 255, 255, 0.25) 0%,
    rgba(0, 240, 118, 0.12) 35%,
    transparent 65%
  );
  mix-blend-mode: overlay;
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.25s ease;
  z-index: 6;
}

.holo-sparkles {
  display: none !important; /* Disabled: keep cards clean and crisp */
}

.card-detail-holo-wrapper {
  perspective: 800px;
  display: flex;
  justify-content: center;
  margin: 12px auto;
  touch-action: none;
}

.card-detail-holo-card {
  position: relative;
  width: 210px;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  cursor: grab;
  user-select: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-detail-holo-card:active {
  cursor: grabbing;
}

/* =========================================================
   AVATAR FRAMES & SET REWARDS
   ========================================================= */
@keyframes pulseGlowGreen {
  0%, 100% { box-shadow: 0 0 10px #00f076, inset 0 0 6px #00f076; border-color: #00f076; }
  50% { box-shadow: 0 0 20px #00f076, 0 0 30px rgba(0, 240, 118, 0.4), inset 0 0 10px #00f076; border-color: #57ffab; }
}

@keyframes pulseGlowCyan {
  0%, 100% { box-shadow: 0 0 10px #38bdf8, inset 0 0 6px #38bdf8; border-color: #38bdf8; }
  50% { box-shadow: 0 0 20px #38bdf8, 0 0 30px rgba(56, 189, 248, 0.4), inset 0 0 10px #38bdf8; border-color: #7dd3fc; }
}

@keyframes pulseGlowGold {
  0%, 100% { box-shadow: 0 0 12px #facc15, inset 0 0 6px #facc15; border-color: #facc15; }
  50% { box-shadow: 0 0 22px #facc15, 0 0 32px rgba(250, 204, 21, 0.45), inset 0 0 10px #facc15; border-color: #fef08a; }
}

.frame-neon-green {
  border: 2px solid #00f076 !important;
  animation: pulseGlowGreen 2s infinite ease-in-out !important;
}

.frame-neon-cyan {
  border: 2px solid #38bdf8 !important;
  animation: pulseGlowCyan 2s infinite ease-in-out !important;
}

.frame-neon-gold {
  border: 2px solid #facc15 !important;
  animation: pulseGlowGold 2s infinite ease-in-out !important;
}

/* Binder Craft & Dust Bar */
.binder-dust-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(5, 8, 14, 0.95);
  border: 1px solid rgba(0, 240, 118, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.binder-dust-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.binder-dust-value {
  color: #00f076;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(0, 240, 118, 0.4);
}

.binder-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-binder-action {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-binder-action:active {
  transform: scale(0.96);
}

.btn-dust-all {
  background: linear-gradient(135deg, #00f076 0%, #10b981 100%);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: none;
  font-weight: 900;
  box-shadow: 0 3px 12px rgba(0, 240, 118, 0.35);
}

.btn-view-sets {
  background: rgba(255, 255, 255, 0.07);
  color: #f6f8ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-craft-card {
  width: 100%;
  margin-top: 6px;
  padding: 5px 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 240, 118, 0.12);
  border: 1px solid rgba(0, 240, 118, 0.35);
  color: #00f076;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-craft-card:hover {
  background: rgba(0, 240, 118, 0.22);
  border-color: #00f076;
}

.btn-craft-card:active {
  transform: scale(0.96);
}

/* Sets Modal */
.sets-modal-card {
  background: #05080e;
  border: 1px solid rgba(0, 240, 118, 0.3);
  border-radius: 20px;
  padding: 20px 16px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.set-item-card {
  background: rgba(13, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.set-item-card.is-complete {
  border-color: rgba(0, 240, 118, 0.4);
  background: rgba(0, 240, 118, 0.04);
}

.set-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.set-name {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.set-progress-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.set-item-card.is-complete .set-progress-badge {
  background: rgba(0, 240, 118, 0.2);
  color: #00f076;
}

.set-cards-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.set-card-thumb {
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.set-card-thumb.unlocked {
  border-color: #00f076;
}

.set-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.set-card-thumb.locked .lock-icon {
  font-size: 14px;
  opacity: 0.35;
}

.set-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.set-reward-desc {
  font-size: 11px;
  color: rgba(218, 225, 248, 0.7);
}

.btn-equip-reward {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: #00f076;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-equip-reward.equipped {
  background: rgba(0, 240, 118, 0.15);
  color: #00f076;
  border: 1px solid #00f076;
}




