* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== THEME CSS VARIABLES ========== */

:root {
  /* Dark (default) */
  --bg-primary: #0a0e1a;
  --bg-secondary: #131832;
  --bg-tertiary: #1a2040;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-dim: #4b5563;
  --border-color: rgba(55, 65, 81, 1);
  --border-subtle: rgba(55, 65, 81, 0.5);
  --card-bg: linear-gradient(135deg, rgba(26, 32, 64, 0.9), rgba(19, 24, 50, 0.95));
  --card-bg-owned: linear-gradient(135deg, rgba(20, 35, 25, 0.95), rgba(15, 25, 18, 0.98));
  --shop-card-bg: linear-gradient(135deg, rgba(20, 22, 50, 0.95), rgba(15, 18, 40, 0.98));
  --modal-bg: #131832;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --achievement-bg: linear-gradient(135deg, #1a2040 0%, #0f1528 100%);
  --daily-bg: linear-gradient(135deg, rgba(30, 32, 70, 0.95), rgba(20, 24, 55, 0.95));
  --daily-bg-claimed: linear-gradient(135deg, rgba(20, 22, 40, 0.8), rgba(15, 18, 35, 0.9));
  --stats-bg: rgba(19, 24, 50, 0.8);
  --scrollbar-track: rgba(10, 14, 26, 0.5);
  --scrollbar-thumb: rgba(255, 215, 0, 0.3);
  --scrollbar-hover: rgba(255, 215, 0, 0.5);
  --badge-bg-locked: rgba(19, 24, 50, 0.5);
  --gold: #FFD700;
  --gold-dark: #B8860B;
  --gold-light: #FFE55C;
  --footer-text: #4b5563;
}

[data-theme="light"] {
  --bg-primary: #f5f0e8;
  --bg-secondary: #ede5d8;
  --bg-tertiary: #e0d6c6;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5c;
  --text-muted: #6b6b7d;
  --text-dim: #8b8b9d;
  --border-color: rgba(180, 170, 150, 0.6);
  --border-subtle: rgba(180, 170, 150, 0.3);
  --card-bg: linear-gradient(135deg, rgba(237, 229, 216, 0.95), rgba(224, 214, 198, 0.98));
  --card-bg-owned: linear-gradient(135deg, rgba(220, 240, 225, 0.95), rgba(210, 235, 215, 0.98));
  --shop-card-bg: linear-gradient(135deg, rgba(237, 229, 216, 0.95), rgba(228, 220, 208, 0.98));
  --modal-bg: #ede5d8;
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --achievement-bg: linear-gradient(135deg, #ede5d8 0%, #e0d6c6 100%);
  --daily-bg: linear-gradient(135deg, rgba(230, 222, 208, 0.95), rgba(220, 212, 198, 0.95));
  --daily-bg-claimed: linear-gradient(135deg, rgba(237, 229, 216, 0.8), rgba(230, 222, 208, 0.9));
  --stats-bg: rgba(237, 229, 216, 0.9);
  --scrollbar-track: rgba(230, 222, 208, 0.5);
  --scrollbar-thumb: rgba(184, 134, 11, 0.4);
  --scrollbar-hover: rgba(184, 134, 11, 0.6);
  --badge-bg-locked: rgba(237, 229, 216, 0.5);
  --gold: #B8860B;
  --gold-dark: #8B6914;
  --gold-light: #DAA520;
  --footer-text: #8b8b9d;
}

body {
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  transition: background 0.4s ease, color 0.4s ease;
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(184, 134, 11, 0.05) 0%, transparent 50%);
}

@keyframes coin-idle {
  0%, 100% { transform: rotateY(0deg) scale(1); }
  25% { transform: rotateY(5deg) scale(1.01); }
  50% { transform: rotateY(0deg) scale(1); }
  75% { transform: rotateY(-5deg) scale(1.01); }
}

@keyframes coin-click {
  0% { transform: scale(1); }
  15% { transform: scale(0.88); }
  40% { transform: scale(1.08); }
  60% { transform: scale(0.97); }
  80% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes coin-click-shockwave {
  0% { transform: scale(0.92); filter: brightness(1); }
  10% { transform: scale(0.85); filter: brightness(1.3); }
  30% { transform: scale(1.15); filter: brightness(1.5); }
  50% { transform: scale(0.95); filter: brightness(1.1); }
  70% { transform: scale(1.05); filter: brightness(1); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes coin-click-jelly {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(0.85, 1.15) rotate(-3deg); }
  30% { transform: scale(1.1, 0.9) rotate(3deg); }
  45% { transform: scale(0.95, 1.05) rotate(-2deg); }
  60% { transform: scale(1.03, 0.97) rotate(1deg); }
  80% { transform: scale(0.99, 1.01) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes coin-click-spin {
  0% { transform: scale(1) rotateY(0deg); }
  20% { transform: scale(0.9) rotateY(90deg); }
  50% { transform: scale(1.1) rotateY(180deg); }
  80% { transform: scale(0.95) rotateY(270deg); }
  100% { transform: scale(1) rotateY(360deg); }
}

@keyframes float-up {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.3); }
}

@keyframes float-up-spiral {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  50% { opacity: 0.9; transform: translateY(-60px) scale(1.2) rotate(180deg) translateX(20px); }
  100% { opacity: 0; transform: translateY(-140px) scale(0.8) rotate(360deg) translateX(-10px); }
}

@keyframes float-up-burst {
  0% { opacity: 1; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-10px) scale(1.5); }
  60% { opacity: 0.8; transform: translateY(-80px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-130px) scale(0.6); }
}

@keyframes float-up-rainbow {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: hue-rotate(0deg); }
  50% { opacity: 0.9; filter: hue-rotate(180deg); }
  100% { opacity: 0; transform: translateY(-120px) scale(1.3); filter: hue-rotate(360deg); }
}

@keyframes sparkle {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

@keyframes sparkle-star {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { opacity: 0.8; transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5)) scale(1.5) rotate(180deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg); }
}

@keyframes sparkle-hearts {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5); }
  30% { opacity: 1; transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.3); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes achievement-pop {
  0% { transform: translateX(120%) scale(0.5); opacity: 0; }
  50% { transform: translateX(0) scale(1.1); opacity: 1; }
  70% { transform: translateX(0) scale(0.95); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes achievement-exit {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.4); }
}

@keyframes pulse-glow-silver {
  0%, 100% { box-shadow: 0 0 15px rgba(192, 192, 210, 0.15); }
  50% { box-shadow: 0 0 30px rgba(192, 192, 210, 0.35); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes screen-shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-4px) translateY(2px); }
  20% { transform: translateX(4px) translateY(-2px); }
  30% { transform: translateX(-3px) translateY(1px); }
  40% { transform: translateX(3px) translateY(-1px); }
  50% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
}

@keyframes card-reveal {
  0% { transform: rotateY(180deg) scale(0.5); opacity: 0; }
  50% { transform: rotateY(90deg) scale(0.8); opacity: 0.5; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes daily-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(192, 192, 255, 0.3), inset 0 0 20px rgba(192, 192, 255, 0.05); }
  50% { box-shadow: 0 0 40px rgba(192, 192, 255, 0.5), inset 0 0 30px rgba(192, 192, 255, 0.1); }
}

@keyframes streak-fire {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 100, 0, 0.6); }
  50% { text-shadow: 0 0 20px rgba(255, 100, 0, 0.9), 0 0 40px rgba(255, 50, 0, 0.4); }
}

@keyframes card-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.coin-idle {
  animation: coin-idle 4s ease-in-out infinite;
}

.coin-clicked {
  animation: coin-click 0.4s ease-out !important;
}

.coin-clicked-shockwave {
  animation: coin-click-shockwave 0.5s ease-out !important;
}

.coin-clicked-jelly {
  animation: coin-click-jelly 0.5s ease-out !important;
}

.coin-clicked-spin {
  animation: coin-click-spin 0.5s ease-out !important;
}

.float-text {
  animation: float-up 1s ease-out forwards;
  pointer-events: none;
  position: absolute;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0,0,0,0.5);
  z-index: 100;
}

.float-text-spiral {
  animation: float-up-spiral 1.2s ease-out forwards;
  pointer-events: none;
  position: absolute;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0,0,0,0.5);
  z-index: 100;
}

.float-text-burst {
  animation: float-up-burst 0.9s ease-out forwards;
  pointer-events: none;
  position: absolute;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 2px 6px rgba(0,0,0,0.6);
  z-index: 100;
}

.float-text-rainbow {
  animation: float-up-rainbow 1.1s ease-out forwards;
  pointer-events: none;
  position: absolute;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0,0,0,0.5);
  z-index: 100;
}

.sparkle-particle {
  animation: sparkle 0.6s ease-out forwards;
  pointer-events: none;
  position: absolute;
  z-index: 99;
}

.sparkle-particle-star {
  animation: sparkle-star 0.8s ease-out forwards;
  pointer-events: none;
  position: absolute;
  z-index: 99;
}

.sparkle-particle-hearts {
  animation: sparkle-hearts 0.9s ease-out forwards;
  pointer-events: none;
  position: absolute;
  z-index: 99;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #FFD700 0%,
    #FFF8DC 25%,
    #FFD700 50%,
    #FFF8DC 75%,
    #FFD700 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

[data-theme="light"] .shimmer-text {
  background: linear-gradient(
    90deg,
    #B8860B 0%,
    #DAA520 25%,
    #B8860B 50%,
    #DAA520 75%,
    #B8860B 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shimmer-silver {
  background: linear-gradient(
    90deg,
    #C0C0D2 0%,
    #E8E8F0 25%,
    #C0C0D2 50%,
    #E8E8F0 75%,
    #C0C0D2 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

[data-theme="light"] .shimmer-silver {
  background: linear-gradient(
    90deg,
    #6b6b7d 0%,
    #8b8b9d 25%,
    #6b6b7d 50%,
    #8b8b9d 75%,
    #6b6b7d 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.achievement-toast {
  animation: achievement-pop 0.5s ease-out forwards;
}

.achievement-toast-exit {
  animation: achievement-exit 0.4s ease-in forwards;
}

.upgrade-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
  background: var(--card-bg);
}

.upgrade-card:not(.disabled):hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.upgrade-card.affordable {
  border-color: rgba(255, 215, 0, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

.upgrade-card.disabled {
  opacity: 0.5;
  filter: grayscale(0.5);
}

.shop-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(192, 192, 210, 0.15);
  background: var(--shop-card-bg);
  position: relative;
  overflow: hidden;
}

.shop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192, 192, 255, 0.03), transparent);
  animation: card-shine 4s ease-in-out infinite;
}

.shop-card:not(.disabled):hover {
  border-color: rgba(192, 192, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(192, 192, 255, 0.15);
}

.shop-card.affordable-silver {
  border-color: rgba(192, 192, 255, 0.3);
  animation: pulse-glow-silver 2s ease-in-out infinite;
}

.shop-card.disabled {
  opacity: 0.4;
  filter: grayscale(0.6);
}

.shop-card.owned {
  border-color: rgba(100, 255, 100, 0.3);
  background: var(--card-bg-owned);
}

.card-rarity-common { border-left: 3px solid #8B8B8B; }
.card-rarity-uncommon { border-left: 3px solid #4CAF50; }
.card-rarity-rare { border-left: 3px solid #2196F3; }
.card-rarity-epic { border-left: 3px solid #9C27B0; }
.card-rarity-legendary { border-left: 3px solid #FF9800; }

.daily-bonus-btn {
  animation: daily-glow 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.daily-bonus-btn:hover {
  transform: scale(1.05);
}

.daily-bonus-btn.claimed {
  animation: none;
  opacity: 0.5;
  filter: grayscale(0.5);
}

.streak-text {
  animation: streak-fire 1.5s ease-in-out infinite;
}

.card-reveal-anim {
  animation: card-reveal 0.6s ease-out forwards;
}

.coin-button {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE55C, #FFD700 40%, #B8860B 80%, #8B6914);
  border: 6px solid #B8860B;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.3),
    inset 0 -8px 20px rgba(0,0,0,0.3),
    inset 0 8px 20px rgba(255,255,255,0.2),
    0 8px 30px rgba(0,0,0,0.5);
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.3s ease;
}

.coin-button::after {
  content: '🪙';
  font-size: 80px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.coin-button:hover {
  box-shadow: 
    0 0 50px rgba(255, 215, 0, 0.5),
    inset 0 -8px 20px rgba(0,0,0,0.3),
    inset 0 8px 20px rgba(255,255,255,0.2),
    0 8px 30px rgba(0,0,0,0.5);
}

.coin-button.level-2 {
  border-color: #DAA520;
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 0.4),
    0 0 80px rgba(255, 215, 0, 0.1),
    inset 0 -8px 20px rgba(0,0,0,0.3),
    inset 0 8px 20px rgba(255,255,255,0.2),
    0 8px 30px rgba(0,0,0,0.5);
}

.coin-button.level-3 {
  border-color: #FFD700;
  background: radial-gradient(circle at 35% 35%, #FFFACD, #FFD700 35%, #FFA500 70%, #B8860B);
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.5),
    0 0 120px rgba(255, 215, 0, 0.15),
    inset 0 -8px 20px rgba(0,0,0,0.2),
    inset 0 8px 20px rgba(255,255,255,0.3),
    0 8px 30px rgba(0,0,0,0.5);
}

/* Coin style overrides */
.coin-style-crystal {
  background: radial-gradient(circle at 35% 35%, #E0F7FF, #7EC8E3 40%, #2196F3 80%, #0D47A1) !important;
  border-color: #1565C0 !important;
  box-shadow:
    0 0 30px rgba(33, 150, 243, 0.4),
    inset 0 -8px 20px rgba(0,0,0,0.2),
    inset 0 8px 20px rgba(255,255,255,0.3),
    0 8px 30px rgba(0,0,0,0.5) !important;
}
.coin-style-crystal::after { content: '💎' !important; }

.coin-style-emerald {
  background: radial-gradient(circle at 35% 35%, #C8E6C9, #66BB6A 40%, #2E7D32 80%, #1B5E20) !important;
  border-color: #2E7D32 !important;
  box-shadow:
    0 0 30px rgba(76, 175, 80, 0.4),
    inset 0 -8px 20px rgba(0,0,0,0.2),
    inset 0 8px 20px rgba(255,255,255,0.3),
    0 8px 30px rgba(0,0,0,0.5) !important;
}
.coin-style-emerald::after { content: '🟢' !important; }

.coin-style-ruby {
  background: radial-gradient(circle at 35% 35%, #FFCDD2, #EF5350 40%, #C62828 80%, #7F0000) !important;
  border-color: #C62828 !important;
  box-shadow:
    0 0 30px rgba(239, 83, 80, 0.4),
    inset 0 -8px 20px rgba(0,0,0,0.2),
    inset 0 8px 20px rgba(255,255,255,0.3),
    0 8px 30px rgba(0,0,0,0.5) !important;
}
.coin-style-ruby::after { content: '❤️‍🔥' !important; }

.coin-style-void {
  background: radial-gradient(circle at 35% 35%, #CE93D8, #9C27B0 40%, #4A148C 80%, #1A0030) !important;
  border-color: #7B1FA2 !important;
  box-shadow:
    0 0 40px rgba(156, 39, 176, 0.5),
    0 0 80px rgba(156, 39, 176, 0.15),
    inset 0 -8px 20px rgba(0,0,0,0.3),
    inset 0 8px 20px rgba(255,255,255,0.2),
    0 8px 30px rgba(0,0,0,0.5) !important;
}
.coin-style-void::after { content: '🔮' !important; }

.coin-style-solar {
  background: radial-gradient(circle at 35% 35%, #FFF9C4, #FF9800 35%, #E65100 70%, #BF360C) !important;
  border-color: #E65100 !important;
  box-shadow:
    0 0 50px rgba(255, 152, 0, 0.5),
    0 0 100px rgba(255, 152, 0, 0.15),
    inset 0 -8px 20px rgba(0,0,0,0.2),
    inset 0 8px 20px rgba(255,255,255,0.3),
    0 8px 30px rgba(0,0,0,0.5) !important;
}
.coin-style-solar::after { content: '☀️' !important; }

.screen-shake {
  animation: screen-shake 0.3s ease-out;
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  z-index: 1000;
  pointer-events: none;
  animation: confetti-fall 2s ease-in forwards;
}

/* Tab styles */
.tab-btn {
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 1px;
}

.tab-btn.tab-gold.active::after {
  background: #FFD700;
}

.tab-btn.tab-silver.active::after {
  background: #C0C0D2;
}

.tab-btn.tab-cosmetic.active::after {
  background: #FF69B4;
}

.tab-btn.tab-quest.active::after {
  background: #4ECDC4;
}

/* ========== QUEST STYLES ========== */

.quest-item {
  transition: all 0.3s ease;
}

.quest-item:hover:not(.quest-claimed) {
  transform: translateY(-1px);
}

.quest-claimable {
  animation: quest-glow 2s ease-in-out infinite;
}

@keyframes quest-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(78, 205, 196, 0.15); }
  50% { box-shadow: 0 0 30px rgba(78, 205, 196, 0.35); }
}

.quest-claim-btn {
  transition: all 0.2s ease;
}

.quest-claim-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 10px rgba(78, 205, 196, 0.4);
}

.quest-claimed {
  filter: saturate(0.5);
}

.shimmer-gem {
  background: linear-gradient(
    90deg,
    #7C4DFF 0%,
    #B388FF 25%,
    #7C4DFF 50%,
    #B388FF 75%,
    #7C4DFF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

[data-theme="light"] .shimmer-gem {
  background: linear-gradient(
    90deg,
    #5E35B1 0%,
    #7C4DFF 25%,
    #5E35B1 50%,
    #7C4DFF 75%,
    #5E35B1 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dark mode toggle */
.theme-toggle {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
}

.theme-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.theme-toggle-knob.light {
  transform: translateX(22px);
}

/* Cosmetic item card */
.cosmetic-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.cosmetic-card:hover:not(.locked) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.15);
}

.cosmetic-card.active {
  border-color: #FF69B4;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
}

.cosmetic-card.locked {
  opacity: 0.4;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}

@media (max-width: 768px) {
  .coin-button {
    width: 160px;
    height: 160px;
  }
  .coin-button::after {
    font-size: 60px;
  }
}