@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@700&display=swap');

:root {
  --primary: #9d4edd;
  --primary-light: #c77dff;
  --secondary: #ff9e00;
  --bg-dark: #0b090a;
  --glass-bg: rgba(20, 20, 25, 0.45);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  --gold: #fee440;
  --gold-glow: 0 0 20px rgba(254, 228, 64, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Orbs */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-dark);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: var(--primary);
  animation-delay: 0s;
}

.orb-2 {
  bottom: 20%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: var(--secondary);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: #f15bb5;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 50px) scale(1.2);
  }

  100% {
    transform: translate(-30px, 80px) scale(0.9);
  }
}

/* Global Glass Class */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--secondary);
  border-bottom-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  z-index: 50;
  border-bottom: none;
  box-shadow: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 158, 0, 0.05);
  padding: 5px 15px 5px 5px;
  border-radius: 50px;
  border: 1px solid rgba(255, 158, 0, 0.3);
  box-shadow: inset 0 0 10px rgba(255, 158, 0, 0.1);
}

.user-dp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff9e00;
  box-shadow: 0 0 15px rgba(255, 158, 0, 0.4);
}

.user-info h2 {
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.balances {
  display: flex;
  gap: 8px;
}

.balance-item {
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(199, 125, 255, 0.4);
  font-family: monospace;
  font-size: 1rem;
  color: #c77dff;
  text-shadow: 0 0 8px rgba(199, 125, 255, 0.5);
  box-shadow: inset 0 0 10px rgba(199, 125, 255, 0.1);
}

.balance-item:first-child {
  border-color: rgba(254, 228, 64, 0.4);
  color: #fee440;
  text-shadow: 0 0 8px rgba(254, 228, 64, 0.5);
  box-shadow: inset 0 0 10px rgba(254, 228, 64, 0.1);
}

/* Premium Startup Loader */
.startup-loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loader-prism {
  width: 150px;
  height: 150px;
  background: url('/frontend/assets/bot_pic.jpg') center/cover no-repeat;
  border-radius: 50%;
  border: 4px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.6);
  animation: logoBreath 3s infinite ease-in-out;
  position: relative;
}

@keyframes logoBreath {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.6); 
    border-color: rgba(168, 85, 247, 0.4);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.9); 
    border-color: rgba(168, 85, 247, 0.8);
  }
}

.loader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: 15px;
  margin-left: 15px; /* offset for letter spacing centering */
  background: linear-gradient(to right, #fff, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoPulse 2s infinite alternate;
}

.loader-bar-container {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #6366f1, #ec4899);
  box-shadow: 0 0 10px #ec4899;
  animation: barFill 2.5s infinite ease-in-out;
}

.loader-status {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  font-weight: 800;
}

@keyframes prismRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes logoPulse {
  0% { opacity: 0.5; filter: blur(2px); }
  100% { opacity: 1; filter: blur(0px); }
}

@keyframes barFill {
  0% { width: 0%; transform: translateX(-100%); }
  50% { width: 100%; transform: translateX(0%); }
  100% { width: 0%; transform: translateX(100%); }
}

/* Views */
.view {
  display: none;
  padding: calc(40px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 35px))) 20px 100px 20px;
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#view-home {
  padding-top: 20px;
}

.view.active {
  display: block;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:active {
  transform: scale(0.97);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--primary), #7209b7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn:hover::after {
  left: 150%;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 5px 10px rgba(157, 78, 221, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

/* Character Grid */
.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.char-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  transform-origin: center;
}

.char-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 245, 212, 0.2);
  border-color: var(--secondary);
}

.char-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.char-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}

.char-card:hover .char-img {
  transform: scale(1.08);
}

.char-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  padding: 30px 10px 10px 10px;
  text-align: center;
  pointer-events: none;
}

.char-actions {
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.char-price {
  font-weight: bold;
  color: var(--gold);
  font-size: 0.9rem;
}

.view h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.char-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #ddd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.char-rarity {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 5px 0;
  font-weight: 600;
}

.char-price {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: var(--gold-glow);
}

/* Gacha Banner System */
#view-gacha {
  padding-top: calc(30px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 20px))) !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden !important;
}

/* --- Immersive Gacha Hub --- */
.gacha-hub-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.gacha-stats-header {
  padding: 10px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.virex-balance-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--secondary);
}

.manifest-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.manifest-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.summon-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3px 20px 0 20px;
}

.banner-carousel {
  width: 100%;
  max-width: 500px;
}

.banner-slide {
  width: 100%;
  height: 400px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.banner-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/frontend/assets/images/imperial_banner.png') center/cover;
  filter: brightness(0.7) saturate(1.2);
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
  transition: opacity 0.5s ease-in-out;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

.banner-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.95) 100%);
}

.banner-info-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  text-align: left;
}

.event-tag {
  background: var(--secondary);
  color: #000;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.imperial-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.imperial-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Pity Gauge */
.pity-gauge-container {
  max-width: 200px;
}

.pity-gauge-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pity-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.pity-progress-fill {
  height: 100%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  transition: width 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Summoning Terminal */
.summoning-terminal {
  padding: 15px 20px 0 20px;
  width: 100%;
  max-width: 500px;
  background: transparent;
}

.terminal-buttons {
  display: flex;
  gap: 15px;
}

.terminal-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.terminal-btn:active {
  transform: scale(0.95);
}

.terminal-btn.btn-10x {
  background: rgba(255, 158, 0, 0.05);
  border-color: rgba(255, 158, 0, 0.2);
}

.btn-top {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.btn-bottom {
  font-size: 1rem;
  font-weight: 900;
  color: var(--secondary);
}

.terminal-btn.btn-10x .btn-bottom {
  color: var(--gold);
}

/* Reveal Overlay & Animation */
.reveal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.summon-sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.summon-portal-video {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-core {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 50px 20px var(--secondary), 0 0 100px 40px rgba(255,158,0,0.3);
  animation: singularityCore 0.8s infinite alternate cubic-bezier(0.19, 1, 0.22, 1);
}

.portal-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 158, 0, 0.3);
  border-radius: 50%;
  animation: ringExpand 0.8s infinite linear;
}

.portal-ring:nth-child(2) { animation-delay: 0.2s; }
.portal-ring:nth-child(3) { animation-delay: 0.4s; }

.reveal-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  letter-spacing: 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 20px;
  opacity: 0.8;
  animation: textGlitch 0.2s infinite alternate;
}

@keyframes singularityCore {
  0% { transform: scale(1); filter: blur(5px); }
  100% { transform: scale(1.5); filter: blur(20px); }
}

@keyframes ringExpand {
  0% { transform: scale(0.2); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes textGlitch {
  0% { transform: translate(2px, 0); text-shadow: 2px 0 var(--secondary); }
  100% { transform: translate(-2px, 0); text-shadow: -2px 0 var(--primary); }
}

.results-display {
  width: 100%;
  height: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.results-title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.close-results-btn {
  margin-top: auto;
  width: 100%;
}

@keyframes pulseCore {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes spinRing {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes flicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Floating Navbar */
.navbar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  border-radius: 24px;
  background: rgba(15, 15, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 12px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.nav-item {
  text-align: center;
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item .nav-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: grayscale(100%) opacity(0.5);
}

.nav-item.active {
  color: var(--secondary);
}

.nav-item.active .nav-icon {
  transform: translateY(-8px) scale(1.2);
  filter: grayscale(0%) opacity(1);
  text-shadow: 0 10px 20px rgba(0, 245, 212, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: rgba(0, 245, 212, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FUTURISTIC HUD HOME VIEW */


.cyber-btn {
  background: var(--secondary);
  color: #000;
  border: none;
  padding: 8px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(255, 158, 0, 0.4);
}

.cyber-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 158, 0, 0.6);
}

.cyber-btn:active {
  transform: scale(0.95);
}

.cyber-btn:disabled {
  background: #444;
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

select:focus {
  outline: none;
  border-color: var(--secondary) !important;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* Premium Vault Styles */
.vault-hero {
  text-align: center;
  padding: 5px 15px;
  background: linear-gradient(180deg, rgba(255, 158, 0, 0.08), transparent);
  border-radius: 15px;
  margin-bottom: 8px;
}

.vault-icon {
  font-size: 1.2rem;
  margin-bottom: 0;
  filter: drop-shadow(0 0 8px rgba(255, 158, 0, 0.3));
}

.vault-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.vault-hero p {
  color: var(--secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.premium-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.rate-badge {
  background: rgba(255, 158, 0, 0.1);
  color: var(--secondary);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 158, 0, 0.2);
}

.vault-input-group {
  margin-bottom: 20px;
  text-align: left;
}

.vault-input-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-left: 5px;
  letter-spacing: 1px;
}

.premium-select,
.premium-input {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.premium-select:focus,
.premium-input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.08);
}

.preview-panel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 15px;
  margin: 25px 0;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.preview-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.premium-btn {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--secondary), #ffcc00);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 158, 0, 0.3);
  transition: all 0.3s ease;
}

.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 158, 0, 0.4);
}

.referral-banner {
  margin-top: 25px;
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 20px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.referral-banner:hover {
  background: rgba(157, 78, 221, 0.15);
  transform: scale(1.02);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.banner-icon {
  font-size: 1.5rem;
}

.banner-text h3 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
}

.banner-text p {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin: 0;
}

.banner-arrow {
  color: var(--primary-light);
  font-size: 1.2rem;
}

body.keyboard-open .navbar {
  display: none !important;
}

/* Vault Balance Display */
.vault-balances {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.v-bal {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v-bal-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.v-bal-value {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.v-bal-divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.1);
}

/* Select Wrapper with Arrow */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--secondary);
  pointer-events: none;
  opacity: 0.8;
}

.premium-select {
  padding-right: 40px !important;
}

/* Custom UI Select Menu */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.custom-select-trigger::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--secondary);
  opacity: 0.8;
}

.custom-select-container.open .custom-select-trigger {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.custom-select-container.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: rgba(255, 158, 0, 0.1);
  color: var(--secondary);
  padding-left: 20px;
}

.custom-option.selected {
  background: rgba(255, 158, 0, 0.15);
  color: var(--secondary);
  font-weight: bold;
}

.custom-options::-webkit-scrollbar {
  width: 5px;
}

.custom-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Custom UI Select Menu */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.custom-select-trigger::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--secondary);
  opacity: 0.8;
}

.custom-select-container.open .custom-select-trigger {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.custom-select-container.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: rgba(255, 158, 0, 0.1);
  color: var(--secondary);
  padding-left: 20px;
}

.custom-option.selected {
  background: rgba(255, 158, 0, 0.15);
  color: var(--secondary);
  font-weight: bold;
}

.custom-options::-webkit-scrollbar {
  width: 5px;
}

.custom-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Premium Home & Header Styles */
.premium-header {
  margin-top: 65px;
  padding: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-avatar {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 2px solid var(--secondary);
  box-shadow: 0 0 15px rgba(255, 158, 0, 0.3);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-greeting {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-meta h2 {
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
}

.premium-balances {
  display: flex;
  gap: 15px;
}

.p-bal {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.p-bal-icon {
  color: var(--secondary);
  font-weight: bold;
}

.p-bal-value {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

/* Home Page Specifics */


.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 20px;
  margin-bottom: 30px;
}

.action-grid.single-action {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.action-tile.referral-rectangle {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.action-tile.referral-rectangle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.action-tile.referral-rectangle::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--secondary);
}

.action-tile.referral-rectangle .tile-icon {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--secondary);
}

.action-tile.referral-rectangle h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.action-tile.referral-rectangle p {
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.5px;
}

.action-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--secondary);
  transform: translateY(-5px);
}

.tile-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 158, 0, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--secondary);
}

.tile-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #fff;
}

.tile-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Icons specific colors */
.icon-summon {
  background: rgba(0, 245, 212, 0.1);
  color: #00f5d4;
}

.icon-market {
  background: rgba(157, 78, 221, 0.1);
  color: #9d4edd;
}

.icon-p2p {
  background: rgba(255, 158, 0, 0.1);
  color: #ff9e00;
}

.icon-friends {
  background: rgba(254, 228, 64, 0.1);
  color: #fee440;
}

.daily-reward-banner {
  margin: 0 20px;
  background: linear-gradient(90deg, var(--secondary), #ffcc00);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 158, 0, 0.2);
}

.daily-reward-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 158, 0, 0.3);
}

.daily-info {
  display: flex;
  flex-direction: column;
}

.daily-label {
  font-weight: 800;
  color: #000;
  font-size: 1rem;
  text-transform: uppercase;
}

.daily-sub {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.daily-btn {
  background: #000;
  color: #fff;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
}

/* Daily Reward Enhancements */
.daily-reward-banner {
  margin: 0 20px 25px 20px !important;
}

.daily-btn.disabled {
  background: rgba(0, 0, 0, 0.3) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
}

.daily-sub {
  font-family: monospace;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Premium Membership Card Style */
.premium-hero-card {
  margin: 45px 20px 25px 20px;
  padding: 25px;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 158, 0, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 158, 0, 0.12) 0%, transparent 70%);
  transform: rotate(-45deg);
  pointer-events: none;
}

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

.card-user-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  box-shadow: 0 0 15px rgba(255, 158, 0, 0.3);
  object-fit: cover;
}

.card-user-details {
  display: flex;
  flex-direction: column;
}

.card-user-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.card-user-id-text {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.card-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  background: linear-gradient(to right, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
}

.card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 15px;
}

.card-stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.card-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.card-balances-footer {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.card-bal-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 158, 0, 0.1);
  border: 1px solid rgba(255, 158, 0, 0.15);
  padding: 10px;
  border-radius: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.bal-icon {
  color: var(--secondary);
  font-size: 1rem;
}

/* Custom Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  border: 1px solid rgba(255, 158, 0, 0.3);
  border-radius: 32px;
  padding: 35px 25px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 15px;
}

.modal-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  font-size: 0.8rem !important;
}

.confirm-btn {
  background: var(--secondary) !important;
  color: #000 !important;
  font-size: 0.8rem !important;
}

@keyframes modalPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Premium Success Acquisition Modal */
.success-content {
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  width: 90% !important;
  max-width: 380px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: radial-gradient(circle at top, #1a1a1a 0%, #000 100%) !important;
  padding: 40px 20px !important;
  border-radius: 32px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  width: 200px;
  height: 100px;
  background: var(--gold);
  filter: blur(80px);
  opacity: 0.2;
  transform: translateX(-50%);
  pointer-events: none;
}

.success-header h3 {
  letter-spacing: 4px !important;
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-top: 10px;
}



.acquired-reveal-card {
  position: relative;
  margin: 30px 0;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.rarity-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background: var(--secondary);
  color: #000;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(255, 158, 0, 0.3);
}

.acquired-image-container {
  width: 100%;
  aspect-ratio: 1/1.2;
  position: relative;
}

.acquired-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-overlay-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #111 0%, transparent 100%);
}

.acquired-details-footer {
  padding: 20px;
  text-align: center;
  background: #111;
}

.acquired-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.acquired-subtitle {
  font-size: 0.85rem;
  color: var(--secondary);
  opacity: 0.8;
  font-weight: 500;
}

.success-confirm-btn {
  width: 100%;
  background: var(--secondary) !important;
  color: #000 !important;
  letter-spacing: 2px;
  font-weight: 800 !important;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.series-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 2px;
}

/* Premium Rarity Guide */
.premium-guide-content {
  background: #050505 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  max-width: 380px !important;
  padding: 30px 20px !important;
  overflow: hidden;
  position: relative;
}

.guide-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: var(--secondary);
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.guide-header {
  text-align: center;
  margin-bottom: 30px;
}

.guide-header h3 {
  letter-spacing: 6px;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.header-line {
  width: 40px;
  height: 2px;
  background: var(--secondary);
  margin: 0 auto;
}

.rarity-scroll-area {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 5px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 15px;
  text-align: left;
  transition: all 0.3s ease;
}

.card-tier {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.card-main {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.card-rate {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: monospace;
}

/* Grand Prize Card */
.grand-prize-section {
  margin: 20px 0;
}

.prize-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 158, 0, 0.15);
}

.prize-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 158, 0, 0.05), transparent);
  pointer-events: none;
}

.prize-tag {
  font-size: 0.6rem;
  background: var(--gold);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 8px;
}

.prize-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.prize-chance {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 700;
  transform: rotate(-90deg);
  white-space: nowrap;
}

/* Exclusive Section */
.exclusive-section {
  margin-top: 30px;
  text-align: left;
}

.exclusive-section h4 {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 15px;
}

.exclusive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.excl-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar for Guide */
.rarity-scroll-area::-webkit-scrollbar {
  width: 4px;
}

.rarity-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.rarity-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* My Market View Styles */
#view-my-market {
    background: linear-gradient(180deg, rgba(157, 78, 221, 0.05) 0%, transparent 100%);
}

.market-header {
    margin-bottom: 25px;
}

.market-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 158, 0, 0.1);
    border: 1px solid rgba(255, 158, 0, 0.3);
    color: var(--secondary);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.sell-form-card {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.sell-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-with-preview {
    position: relative;
    width: 100%;
}

.premium-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.premium-input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

.char-id-preview {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a20;
    border: 1px solid var(--secondary);
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.char-id-preview img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.preview-info {
    display: flex;
    flex-direction: column;
    max-width: 100px;
}

.preview-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    font-weight: 600;
}

.listings-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.listings-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.market-rectangle {
    width: 100%;
    border-radius: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.market-rectangle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.market-rectangle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
}

.market-rectangle .tile-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--primary-light);
}

.market-rectangle h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.market-rectangle p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.refresh-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.refresh-pill-btn:active {
    transform: scale(0.95);
}
/* Grand Prize Visual Styles */
.prize-visual {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.prize-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.grand-prize-section .prize-card {
  height: auto !important;
  padding: 15px !important;
}
