/* ==========================================================================
   STEAL AN EGG - MODERN CYBER-GAMING DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #08090f;
  --bg-secondary: #0f111d;
  --bg-card: rgba(19, 21, 35, 0.7);
  --bg-card-hover: rgba(28, 31, 52, 0.85);
  
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.45);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.45);
  --accent-red: #f43f5e;
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.4);

  /* Rarities */
  --rarity-secret-color: #ec4899;
  --rarity-secret-border: rgba(236, 72, 153, 0.45);
  --rarity-secret-glow: rgba(236, 72, 153, 0.25);

  --rarity-divine-color: #fbbf24;
  --rarity-divine-border: rgba(251, 191, 36, 0.45);
  --rarity-divine-glow: rgba(251, 191, 36, 0.25);

  --rarity-eternal-color: #38bdf8;
  --rarity-eternal-border: rgba(56, 189, 248, 0.45);
  --rarity-eternal-glow: rgba(56, 189, 248, 0.25);

  --rarity-cosmic-color: #a855f7;
  --rarity-cosmic-border: rgba(168, 85, 247, 0.45);
  --rarity-cosmic-glow: rgba(168, 85, 247, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(16, 18, 30, 0.75);
  --glass-blur: blur(16px);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(139, 92, 246, 0.3);
}

/* ── Global Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: #f1f5f9;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Ambient Background Glow Orbs ── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6, #3b82f6);
  top: -100px;
  left: 15%;
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ec4899, #8b5cf6);
  bottom: 10%;
  right: -100px;
  animation-duration: 24s;
}

.ambient-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4, #3b82f6);
  top: 45%;
  left: -150px;
  animation-duration: 20s;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image: 
    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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Floating weapons particles */
.weapon-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ── Language Switcher Top Right ── */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-button {
  background: rgba(20, 24, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lang-button:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
  transform: translateY(-1px);
}

.lang-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ── Hero Section ── */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(8px);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-logo-wrap {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(139, 92, 246, 0.35));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 70%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

/* Live Stats Bar */
.live-stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 20, 36, 0.65);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.stat-chip strong {
  color: #fff;
  font-weight: 700;
}

.stat-chip-icon {
  font-size: 1rem;
}

/* ── Filter & Search Toolbar ── */
.inventory-toolbar {
  background: rgba(16, 20, 36, 0.7);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.filter-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Search input */
.search-box {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  background: rgba(9, 11, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 0.85rem;
}

/* ── Shop Grid ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* Card Design */
.shop-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: var(--glass-border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.shop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.shop-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

/* Dynamic Rarity Borders & Glows */
.shop-card[data-rarity="Secret"] {
  border-color: var(--rarity-secret-border);
}
.shop-card[data-rarity="Secret"]:hover {
  box-shadow: 0 20px 48px -10px rgba(0,0,0,0.8), 0 0 30px var(--rarity-secret-glow);
  border-color: var(--rarity-secret-color);
}

.shop-card[data-rarity="Divine"] {
  border-color: var(--rarity-divine-border);
}
.shop-card[data-rarity="Divine"]:hover {
  box-shadow: 0 20px 48px -10px rgba(0,0,0,0.8), 0 0 30px var(--rarity-divine-glow);
  border-color: var(--rarity-divine-color);
}

.shop-card[data-rarity="Eternal"] {
  border-color: var(--rarity-eternal-border);
}
.shop-card[data-rarity="Eternal"]:hover {
  box-shadow: 0 20px 48px -10px rgba(0,0,0,0.8), 0 0 30px var(--rarity-eternal-glow);
  border-color: var(--rarity-eternal-color);
}

.shop-card[data-rarity="Cosmic"] {
  border-color: var(--rarity-cosmic-border);
}
.shop-card[data-rarity="Cosmic"]:hover {
  box-shadow: 0 20px 48px -10px rgba(0,0,0,0.8), 0 0 30px var(--rarity-cosmic-glow);
  border-color: var(--rarity-cosmic-color);
}

/* Card Top Badges */
.card-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  z-index: 2;
}

.rarity-pill {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rarity-pill.secret {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.rarity-pill.divine {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.rarity-pill.eternal {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.rarity-pill.cosmic {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.stock-pill {
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stock-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

/* Card Image Display */
.card-img-wrap {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
}

.card-img-halo {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-purple-glow), transparent 70%);
  filter: blur(20px);
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.shop-card:hover .card-img-halo {
  opacity: 0.85;
  transform: scale(1.2);
}

.card-img {
  max-width: 135px;
  max-height: 135px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.shop-card:hover .card-img {
  transform: scale(1.08) translateY(-4px);
}

/* Card Info */
.card-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Claim Button */
.claim-btn {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.claim-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(30deg);
  transition: transform 0.6s ease;
}

.shop-card:hover .claim-btn::after {
  transform: rotate(30deg) translate(50%, 50%);
}

.claim-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

.shop-card[data-rarity="Secret"] .claim-btn {
  background: linear-gradient(135deg, #ec4899, #be185d);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
}
.shop-card[data-rarity="Secret"]:hover .claim-btn {
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.6);
}

.shop-card[data-rarity="Divine"] .claim-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.shop-card[data-rarity="Divine"]:hover .claim-btn {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

/* ── Live Claim Notification Toast ── */
.claim-toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.claim-toast {
  background: rgba(19, 23, 38, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-left: 4px solid var(--accent-purple);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}

.claim-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-text {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.toast-user {
  color: #fff;
  font-weight: 700;
}

.toast-item {
  color: var(--accent-gold);
  font-weight: 700;
}

.toast-time {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* ── Modern Holographic Generator Modal ── */
.gen-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}

.gen-modal.open {
  opacity: 1;
  pointer-events: all;
}

.gen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(16px);
}

.gen-box {
  position: relative;
  background: #0f1221;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(139, 92, 246, 0.2);
  z-index: 2;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.gen-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.gen-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gen-logo-img {
  height: 28px;
  width: auto;
}

.gen-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.gen-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.gen-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.gen-screen {
  display: none;
  padding: 1.75rem 1.5rem;
}

.gen-screen.active {
  display: block;
  animation: screenFade 0.3s ease;
}

@keyframes screenFade {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Screen 1: Item Preview */
.gen-item-preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.gen-item-thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.gen-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gen-item-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.gen-item-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-transform: uppercase;
}

.gen-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  text-align: center;
}

.gen-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.gen-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #64748b;
}

.gen-input {
  width: 100%;
  background: rgba(6, 8, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.gen-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.gen-error-msg {
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-align: center;
  display: none;
}

.gen-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-purple), #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px var(--accent-purple-glow);
}

.gen-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55);
}

.gen-security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
}

.gen-security-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

/* Screen 2: Hologram Scanner */
.gen-progress-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.avatar-scanner-container {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.5);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--accent-purple-glow);
}

.scanner-avatar-img {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #8b5cf6, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: laserScan 1.6s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 5%; }
  100% { top: 90%; }
}

.gen-progress-label {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.gen-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.gen-step.active {
  opacity: 1;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
}

.gen-step.done {
  opacity: 0.85;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.gen-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  flex-shrink: 0;
}

.gen-step.active .gen-step-icon {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.gen-step.done .gen-step-icon {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 8px var(--accent-green);
}

.gen-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.gen-step-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.gen-progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.gen-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 9999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Screen 3: Holographic Transfer & CPA Offers */
.gen-transfer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
}

.transfer-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 90px;
}

.transfer-avatar-wrap, .transfer-item-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.transfer-avatar-img {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  object-fit: cover;
}

.transfer-item-img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.transfer-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0f1221;
}

.transfer-status-indicator.online {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.transfer-status-indicator.pending {
  background: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}

.transfer-username, .transfer-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.transfer-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.online-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pending-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.transfer-path {
  flex-grow: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  margin: 0 0.75rem;
}

.transfer-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
  width: 100%;
}

.transfer-pulse {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #8b5cf6;
  animation: pulseBeam 1.8s ease-in-out infinite;
}

@keyframes pulseBeam {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 95%; opacity: 0; }
}

.gen-success-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* CPA Offers Container */
.offer-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.offer-card {
  background: rgba(20, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-purple);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
}

.offer-card:hover {
  background: rgba(28, 35, 65, 0.9);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.offer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-grow: 1;
}

.offer-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.offer-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.offer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

.offer-action {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--accent-green-glow);
  flex-shrink: 0;
}

/* Modal Footer Status */
.cpa-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.secure-footer-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.status-dot.pulsing {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: livePulse 1.5s infinite;
}

.gen-expire-note {
  font-size: 0.78rem;
  color: #64748b;
}

#gen-timer {
  color: #f87171;
  font-weight: 700;
}

/* iOS & TikTok Redirect Popup */
.ios-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ios-popup-background {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ios-popup-content {
  position: relative;
  background: #111424;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.2);
  z-index: 2;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  z-index: 5;
}

.ios-popup-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.ios-instruction-gif {
  max-width: 100%;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0;
  text-align: center;
  background: rgba(6, 8, 15, 0.6);
  backdrop-filter: blur(10px);
}

.footer-keywords {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto;
}

/* ── Responsive adjustments ── */

/* ─── MOBILE: Compact hero + Items ─── */
@media (max-width: 767px) {
  /* Show hero but compact */
  .hero-section {
    display: block;
    padding: 3.5rem 0 1rem; /* top padding for lang switcher */
    text-align: center;
  }

  /* Hide season badge on mobile */
  .hero-badge-wrap {
    display: none;
  }

  /* Smaller logo */
  .hero-logo {
    max-width: 140px;
  }

  .hero-logo-wrap {
    margin-bottom: 0.6rem;
  }

  /* Smaller title */
  .hero-title {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
  }

  /* Hide subtitle on mobile */
  .hero-subtitle {
    display: none;
  }

  /* Compact counters on mobile */
  .live-stats-bar {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .stat-chip {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
  }

  /* Container */
  .main-container .container {
    padding: 0 0.75rem;
  }

  /* 2-column tight grid on mobile */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .shop-card {
    border-radius: 14px;
  }

  .card-header-meta {
    padding: 0.5rem 0.5rem 0;
    gap: 0.3rem;
  }

  .rarity-pill {
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
  }

  .stock-pill {
    font-size: 0.6rem;
    padding: 0.18rem 0.45rem;
  }

  .card-img-wrap {
    height: 110px;
    padding: 0.4rem;
  }

  .card-img {
    max-width: 88px;
    max-height: 88px;
  }

  .card-body {
    padding: 0 0.5rem 0.6rem;
  }

  .card-title {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }

  .claim-btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
  }

  /* Activity ticker: smaller */
  .ticker-wrap {
    font-size: 0.72rem;
    padding: 0.5rem 0;
  }

  /* Live notification toast: smaller */
  .claim-toast {
    max-width: 280px;
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }

  /* Modal: full screen on mobile */
  .gen-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 95vh;
    overflow-y: auto;
  }

  .gen-modal {
    align-items: flex-end !important;
  }
}

/* ─── TABLET+ ─── */
@media (min-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 1.5rem;
  }

  .inventory-toolbar {
    flex-direction: row;
    align-items: center;
  }

  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    flex-wrap: nowrap;
  }

  .search-box {
    width: auto;
    min-width: 220px;
  }

  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .card-img-wrap {
    height: 140px;
  }

  .card-img {
    max-width: 110px;
    max-height: 110px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .claim-btn {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
  }
}
