@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap");

:root {
    --dark-bg: #08101e;
    --dark-surface: #0e1627;
    --dark-card: #121c30;
    --cyan-primary: #00e5ff;
    --cyan-secondary: #00b8d4;
    --cyan-glow: rgba(0, 229, 255, 0.4);
    --blue-accent: #0a84ff;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --error-red: #ff4d4d;
    --success-green: #4caf50;
    --neutral-gray: #6a7ea8;
    --gradient-dark: linear-gradient(135deg, #08101e, #121c30);
    --tech-border: 1px solid rgba(0, 229, 255, 0.2);
    --tech-shadow: 0 4px 20px rgba(0, 229, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: radial-gradient(ellipse at center, #0a0d1a 0%, #000509 70%, #000000 100%);
  min-height: 100vh;
  color: #e8f4f8;
  overflow-x: hidden;
  position: relative;
}

/* Enhanced cosmic background with stars */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 200px 120px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 250px 60px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 300px 100px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(circle at 20% 20%, rgba(64, 224, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(100, 149, 237, 0.06) 0%, transparent 50%);
  background-repeat: repeat;
  background-size: 350px 250px, 350px 250px, 350px 250px, 350px 250px, 350px 250px, 350px 250px, 350px 250px, 350px 250px, 100% 100%, 100% 100%, 100% 100%;
  z-index: -1;
  animation: twinkle 20s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* Uranus System Container */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Uranus Planet */
.uranus-system {
  position: fixed;
  top: 15%;
  right: 10%;
  width: 200px;
  height: 200px;
  z-index: 0;
  pointer-events: none;
  animation: uranusOrbit 240s linear infinite;
  opacity: 0.8;
}

.uranus-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, 
    rgba(79, 208, 231, 0.95) 0%,
    rgba(64, 224, 255, 0.9) 25%,
    rgba(72, 209, 204, 0.8) 50%,
    rgba(0, 191, 255, 0.7) 75%,
    rgba(65, 105, 225, 0.6) 100%);
  border-radius: 50%;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(64, 224, 255, 0.6),
    0 0 120px rgba(0, 191, 255, 0.4),
    0 0 160px rgba(79, 208, 231, 0.2);
  animation: uranusRotation 8s linear infinite;
  position: relative;
}

.uranus-planet::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 30%;
  height: 20%;
  background: rgba(100, 149, 237, 0.5);
  border-radius: 50%;
  filter: blur(8px);
}

.uranus-planet::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 20%;
  width: 25%;
  height: 15%;
  background: rgba(0, 191, 255, 0.6);
  border-radius: 50%;
  filter: blur(6px);
}

/* Uranus Rings */
.uranus-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg) rotateY(15deg);
  z-index: 1;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotation 12s linear infinite;
  opacity: 0.8;
}

.ring:nth-child(1) {
  width: 160px;
  height: 160px;
  border-color: rgba(173, 216, 230, 0.7);
  animation-delay: 0s;
  box-shadow: 0 0 15px rgba(173, 216, 230, 0.4);
}

.ring:nth-child(2) {
  width: 180px;
  height: 180px;
  border-color: rgba(135, 206, 235, 0.6);
  animation-delay: -2s;
  box-shadow: 0 0 12px rgba(135, 206, 235, 0.3);
}

.ring:nth-child(3) {
  width: 200px;
  height: 200px;
  border-color: rgba(176, 224, 230, 0.6);
  animation-delay: -4s;
  box-shadow: 0 0 10px rgba(176, 224, 230, 0.3);
}

.ring:nth-child(4) {
  width: 220px;
  height: 220px;
  border-color: rgba(173, 216, 230, 0.5);
  animation-delay: -6s;
  box-shadow: 0 0 8px rgba(173, 216, 230, 0.2);
}

.ring:nth-child(5) {
  width: 240px;
  height: 240px;
  border-color: rgba(135, 206, 235, 0.4);
  animation-delay: -8s;
  box-shadow: 0 0 6px rgba(135, 206, 235, 0.2);
}

/* Moons Container */
.moons-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

/* Individual Moons */
.moon {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(240, 240, 240, 0.9), rgba(180, 180, 180, 0.7));
  box-shadow: 
    0 0 15px rgba(220, 220, 220, 0.5),
    inset 2px 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Titania (largest moon) */
.moon-1 {
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: moonOrbit1 45s linear infinite;
  box-shadow: 0 0 20px rgba(220, 220, 220, 0.6);
}

/* Oberon */
.moon-2 {
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: moonOrbit2 38s linear infinite;
  box-shadow: 0 0 18px rgba(220, 220, 220, 0.5);
}

/* Umbriel */
.moon-3 {
  width: 12px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: moonOrbit3 28s linear infinite;
  box-shadow: 0 0 15px rgba(220, 220, 220, 0.4);
}

/* Ariel */
.moon-4 {
  width: 10px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: moonOrbit4 22s linear infinite;
  box-shadow: 0 0 12px rgba(220, 220, 220, 0.4);
}

/* Miranda */
.moon-5 {
  width: 8px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: moonOrbit5 16s linear infinite;
  box-shadow: 0 0 10px rgba(220, 220, 220, 0.3);
}

/* Keyframe Animations */
@keyframes uranusOrbit {
  from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes uranusRotation {
  from { transform: translate(-50%, -50%) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateY(360deg); }
}

@keyframes ringRotation {
  from { transform: translate(-50%, -50%) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateZ(360deg); }
}

@keyframes moonOrbit1 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(150px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes moonOrbit2 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(170px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(170px) rotate(-360deg); }
}

@keyframes moonOrbit3 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes moonOrbit4 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes moonOrbit5 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(80px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(80px) rotate(-360deg); }
}

/* Nebula background enhancement */
@keyframes nebula {
  0% { 
    opacity: 0.3; 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    opacity: 0.6; 
    transform: scale(1.1) rotate(180deg); 
  }
  100% { 
    opacity: 0.4; 
    transform: scale(1) rotate(360deg); 
  }
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  gap: 20px;
  position: relative;
  padding-top: 100px;
}

.ca{
  padding:5px;
  padding-left:10px;
  padding-right:10px;
  background-color:rgba(255, 255, 255, 0.199);
  border-radius:14px;
  display:block;
  text-align:center;
}

.ca a{
  color:cyan;
  text-decoration:none;
  font-weight:bolder;
}

/* Desktop Navigation */
.desktop-nav {
  position: fixed;
  left: calc(50% - 540px);
  top: 222px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  background: rgba(15, 25, 40, 0.85);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 191, 255, 0.1);
}

.desktop-nav .nav-btn {
  display: block;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0px;
  min-width: 100px;
  height:40px;
  background: rgba(5, 15, 25, 0.6);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 12px;
  color: #8a94a6;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.desktop-nav .nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.desktop-nav .nav-btn:hover::before {
  left: 100%;
}

.desktop-nav .nav-btn:hover {
  border-color: rgba(0, 191, 255, 0.4);
  color: #40e0ff;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 191, 255, 0.2);
}

.desktop-nav .nav-btn.active {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(64, 224, 255, 0.1));
  border-color: rgba(0, 191, 255, 0.5);
  color: #00bfff;
  box-shadow: 
    0 8px 20px rgba(0, 191, 255, 0.3),
    inset 0 0 20px rgba(0, 191, 255, 0.1);
}

.desktop-nav .nav-btn.inactive {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(5, 15, 25, 0.3);
  border-color: rgba(0, 191, 255, 0.1);
  color: #5a6373;
}

.desktop-nav .nav-btn.inactive:hover {
  transform: none;
  border-color: rgba(0, 191, 255, 0.1);
  color: #5a6373;
  box-shadow: none;
}

.desktop-nav .nav-btn.inactive:hover::before {
  left: -100%;
}

.desktop-nav .nav-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.3));
  float:left;
  padding-left:10px;
  vertical-align: middle;
}

.desktop-nav .nav-text {
  font-size: 11px;
  line-height: 3;
  vertical-align: middle;
  padding-top:20px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  z-index: 1000;
  background: rgba(15, 25, 40, 0.95);
  border-top: 1px solid rgba(0, 191, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
}

.mobile-nav .nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  flex: 1;
  max-width: 100px;
  background: transparent;
  border: none;
  color: #8a94a6;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav .nav-btn:hover {
  color: #40e0ff;
  background: rgba(0, 191, 255, 0.1);
}

.mobile-nav .nav-btn.active {
  color: #00bfff;
  background: rgba(0, 191, 255, 0.15);
}

.mobile-nav .nav-btn.inactive {
  opacity: 0.5;
  cursor: not-allowed;
  color: #5a6373;
}

.mobile-nav .nav-btn.inactive:hover {
  color: #5a6373;
  background: transparent;
}

.mobile-nav .nav-btn.inactive:hover::before {
  display: none;
}

/* Tooltip styles */
.nav-btn[data-tooltip] {
  position: relative;
}

.nav-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  border: 1px solid rgba(0, 191, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-btn[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

/* Mobile tooltip positioning */
.mobile-nav .nav-btn[data-tooltip]:hover::after {
  top: -60px;
  bottom: auto;
}

.mobile-nav .nav-btn[data-tooltip]:hover::before {
  top: -60px;
  bottom: auto;
  transform: translateX(-50%) translateY(48px) rotate(180deg);
}

/* Token Header - Outside Trading Box */
.logo-header {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.uranus-logo {
  height: 50px;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.4));
  cursor: pointer;
}

.uranus-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.6));
  transform: scale(1.05);
}

.uranus-text {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 900;
  color: #00bfff;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  letter-spacing: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.uranus-text:hover {
  text-shadow: 0 0 25px rgba(0, 191, 255, 0.7);
  color: #40e0ff;
}

.uranus-link {
  text-decoration: none;
  color: inherit;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 25, 40, 0.8);
  border: 1px solid rgba(0, 191, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: #00bfff;
  box-shadow: 0 8px 20px rgba(0, 191, 255, 0.3);
}

.social-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.3));
}

.social-link:hover .social-icon {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(0, 191, 255, 0.5));
}

.trading-box {
  background: rgba(15, 25, 40, 0.85);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(0, 191, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: glow 3s ease-in-out infinite alternate;
  overflow: hidden;
  position: relative;
}

/* Token Header */
.token-header {
  padding: 24px 0 0 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.05), rgba(64, 224, 255, 0.02));
  position: relative;
  z-index: 100;
}

.token-selector {
  position: relative;
  display: inline-block;
  z-index: 101;
}

.token-name {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00bfff;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  margin-bottom: 8px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.token-main-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 191, 255, 0.4);
  flex-shrink: 0;
  transition: all 0.3s ease;
  transform:scale(1.25);
  overflow: hidden;
}

.token-main-icon img{
  max-width: 100%;
}

.token-name:hover .token-main-icon {
  border-color: rgba(64, 224, 255, 0.6);
  background: rgba(255, 255, 255, 0.9);
}

.dropdown-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
  margin-top:-5px;
}

.token-selector:hover .dropdown-arrow {
  transform: rotate(360deg);
}

.token-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: calc(100vw - 40px);
  max-width: 760px;
  background: rgba(5, 15, 25, 0.95);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 191, 255, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(0px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.token-selector:hover .token-dropdown {
  
}

.token-search {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
}

.token-search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 8px;
  color: #e8f4f8;
  font-size: 24px;
  font-weight:bolder;
  font-family: 'Rajdhani', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.token-search-input::placeholder {
  color: rgba(232, 244, 248, 0.4);
}

.token-search-input:focus {
  border-color: #00bfff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.token-list {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 191, 255, 0.5) transparent;
}

.token-list::-webkit-scrollbar {
  width: 6px;
}

.token-list::-webkit-scrollbar-track {
  background: transparent;
}

.token-list::-webkit-scrollbar-thumb {
  background: rgba(0, 191, 255, 0.5);
  border-radius: 3px;
}

.token-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 191, 255, 0.05);
  gap: 12px;
}

.token-item:hover {
  background: rgba(0, 191, 255, 0.1);
  transform: translateX(4px);
}

.token-item:last-child {
  border-bottom: none;
}

.token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 191, 255, 0.3);
  overflow:hidden;
}

.token-icon img{
  overflow:hidden;max-width:100%;max-height:100%;
}

.token-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.token-item-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.token-symbol {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: #00bfff;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-price-small {
  font-size: 16px;
  color: #40e0ff;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  min-width: 60px;
}

.token-volume {
  font-size: 14px;
  color: #8a94a6;
  text-align: center;
  white-space: nowrap;
  min-width: 70px;
}

.token-liquidity {
  font-size: 14px;
  color: #8a94a6;
  text-align: center;
  white-space: nowrap;
  min-width: 70px;
}

.token-traders {
  font-size: 14px;
  color: #8a94a6;
  text-align: center;
  white-space: nowrap;
  min-width: 80px;
}

span.no-results{
  
}

/* Token Price Container */
.token-price-container {
  padding: 0;
  text-align: center;
  background: rgba(5, 15, 25, 0.4);
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
}

.token-price {
  font-size: 24px;
  color: #40e0ff;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 15px rgba(64, 224, 255, 0.4);
  background: transparent;
  padding: 16px;
  border: none;
  display: block;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin: 0;
  width: 100%;
  text-align: center;
}

.token-price:hover {
  background: rgba(5, 15, 25, 0.6);
  text-shadow: 0 0 20px rgba(64, 224, 255, 0.6);
}

/* Chart Section */
.chart-section {
  padding: 0;
  height: 480px;
  position: relative;
  z-index: 1;
}

.chart-placeholder {
  background: rgba(5, 15, 25, 0.6);
  border: 1px dashed rgba(0, 191, 255, 0.3);
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.chart-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  animation: chartScan 3s linear infinite;
}

@keyframes chartScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.chart-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.chart-text {
  color: #40e0ff;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Trading Controls */
.trading-controls {
  padding: 24px;
}

/* Simulate Trade Toggle */
.simulate-toggle-container {
  margin-bottom: 20px;
  display: none;
  justify-content: flex-start;
}

/* Simulate Toggle Switch */
.simulate-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.simulate-toggle:hover {
  color: #40e0ff;
}

.simulate-checkbox {
  display: none;
}

.simulate-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: rgba(5, 15, 25, 0.8);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.simulate-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #8a94a6, #6c7a89);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.simulate-checkbox:checked + .simulate-slider {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(0, 255, 127, 0.2));
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.simulate-checkbox:checked + .simulate-slider::before {
  transform: translateX(26px);
  background: linear-gradient(135deg, #00bfff, #40e0ff);
  box-shadow: 0 2px 12px rgba(0, 191, 255, 0.4);
}

.simulate-checkbox:checked ~ .simulate-label {
  color: #00bfff;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

.simulate-label {
  transition: all 0.3s ease;
}

/* Direction Buttons */
.direction-buttons {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.direction-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 0;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.direction-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.direction-btn:hover::before {
  left: 100%;
}

.long-btn {
  background: rgba(0, 255, 127, 0.1);
  border-right: 1px solid rgba(0, 191, 255, 0.3);
  color: #00ff7f;
  opacity: 0.6;
}

.long-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.8), rgba(0, 255, 100, 0.6));
  box-shadow: 
    inset 0 0 30px rgba(0, 255, 127, 0.4),
    0 0 20px rgba(0, 255, 127, 0.5);
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.8);
}

.long-btn:hover:not(.active) {
  background: rgba(0, 255, 127, 0.15);
  opacity: 0.8;
}

.short-btn {
  background: rgba(255, 69, 0, 0.1);
  color: #ff4500;
  opacity: 0.6;
}

.short-btn.active {
  background: linear-gradient(135deg, rgba(255, 20, 20, 0.8), rgba(255, 69, 0, 0.6));
  box-shadow: 
    inset 0 0 30px rgba(255, 20, 20, 0.4),
    0 0 20px rgba(255, 69, 0, 0.5);
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 20, 20, 0.8);
}

.short-btn:hover:not(.active) {
  background: rgba(255, 69, 0, 0.15);
  opacity: 0.8;
}

/* Input Section */
.input-section {
  margin-bottom: 24px;
}

.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 14px;
  color: #40e0ff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Leverage Slider */
.leverage-group {
  margin-bottom: 20px;
}

.leverage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.leverage-value {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #00ff7f;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.leverage-slider-container {
  position: relative;
  background: rgba(5, 15, 25, 0.8);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.leverage-slider-container:hover {
  border-color: #00bfff;
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.leverage-slider {
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% - 80px);
  height: 8px;
  background: linear-gradient(90deg, 
    rgba(0, 191, 255, 0.3) 0%, 
    rgba(0, 255, 127, 0.3) 50%, 
    rgba(255, 69, 0, 0.3) 100%
  );
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 40px;
}

.leverage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #00bfff, #40e0ff);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 
    0 0 15px rgba(0, 191, 255, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.leverage-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 0 25px rgba(0, 191, 255, 0.8),
    0 6px 12px rgba(0, 0, 0, 0.4);
}

.leverage-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #00bfff, #40e0ff);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 
    0 0 15px rgba(0, 191, 255, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.leverage-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 0 25px rgba(0, 191, 255, 0.8),
    0 6px 12px rgba(0, 0, 0, 0.4);
}

.leverage-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 52px;
}

.leverage-mark {
  font-size: 10px;
  color: #8a94a6;
  font-weight: 500;
  transition: color 0.3s ease;
}

.leverage-mark.active {
  color: #40e0ff;
  text-shadow: 0 0 8px rgba(64, 224, 255, 0.5);
}

.input-container {
  position: relative;
  background: rgba(5, 15, 25, 0.8);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

/* Currency Icon */
.currency-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.input-container:hover .currency-icon {
  opacity: 1;
}

.currency-label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #40e0ff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sol-input,
.usdc-input {
  width: 100%;
  padding: 16px 80px;
  background: transparent;
  border: none;
  outline: none;
  color: #e8f4f8;
  font-size: 22px;
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
  text-align: center;
}

/* Placeholder color for input fields */
.sol-input::placeholder,
.usdc-input::placeholder {
  color: rgba(232, 244, 248, 0.4);
}

/* Open Fee Label */
.open-fee-label {
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  padding: 12px 16px;
  background: rgba(5, 15, 25, 0.6);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.open-fee-label:hover {
  border-color: rgba(0, 191, 255, 0.3);
  background: rgba(5, 15, 25, 0.8);
}

.open-fee-label span:first-child {
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.open-fee-label span:last-child {
  color: #8a94a6;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

/* Connect Wallet Button */
.connect-wallet-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #00bfff, #0080ff);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

.connect-wallet-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.connect-wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 191, 255, 0.4);
}

.connect-wallet-btn:hover::before {
  left: 100%;
}

.connect-wallet-btn:active {
  transform: translateY(1px);
}

/* Open Order Button */
.open-order-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #00ff7f, #00cc66);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 255, 127, 0.3);
  margin-top: 12px;
}

.open-order-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.open-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 255, 127, 0.4);
  background: linear-gradient(135deg, #00cc66, #00aa55);
}

.open-order-btn:hover::before {
  left: 100%;
}

.open-order-btn:active {
  transform: translateY(1px);
}

/* Market Data */
.market-data {
  display: flex;
  margin-top: 0;
  justify-content: center;
  background: rgba(5, 15, 25, 0.4);
  border-radius: 0;
  border-top: 1px solid rgba(0, 191, 255, 0.15);
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
  overflow: hidden;
}

.market-stat {
  padding: 12px 16px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  text-align: center;
  position: relative;
}

.market-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(0, 191, 255, 0.25);
}

.market-stat:hover {
  background: rgba(5, 15, 25, 0.6);
}

.stat-label {
  font-size: 12px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: 16px;
  color: #e8f4f8;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Notification Container */
.notification-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 300px;
}

/* Notification Popup */
.notification-popup {
  background: rgba(15, 25, 40, 0.95);
  border: 1px solid rgba(0, 191, 255, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 191, 255, 0.2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #e8f4f8;
  opacity: 0;
  transform: translateX(-100%);
  animation: notificationSlideInLeft 0.3s ease forwards;
  transition: all 0.3s ease;
}

.notification-popup.scale-down {
  animation: notificationSlideOutLeft 0.3s ease forwards;
}

.notification-popup a{
  color:cyan;
  font-weight: bolder;
}

.notification-popup.long {
  border-color: rgba(0, 255, 127, 0.4);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 127, 0.2);
}

.notification-popup.short {
  border-color: rgba(255, 69, 0, 0.4);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 69, 0, 0.2);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Make .notification-content scale down to zero after 5 seconds */
.notification-content.scale-down {
  animation: notificationSlideOutLeft 0.3s ease forwards;
  opacity: 0;
  transform: translateX(-100%);
}

.notification-action {
  color: #00ff7f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notification-popup.short .notification-action {
  color: #ff4500;
}

.notification-token {
  color: #40e0ff;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(64, 224, 255, 0.4);
}

.notification-amount {
  color: #e8f4f8;
  font-weight: 700;
}

@keyframes notificationSlideIn {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notificationSlideOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes notificationSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notificationSlideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 191, 255, 0.3);
  border-top: 3px solid #00bfff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00bfff;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.8);
  }
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  background: #00bfff;
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Order Processing Popup */
.order-processing-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 15000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.order-processing-popup.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: all;
}

.order-processing-popup.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.2);
  transition: all 0.3s ease-in;
}

.order-processing-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: rgba(15, 25, 40, 0.9);
  border: 1px solid rgba(0, 191, 255, 0.4);
  border-radius: 20px;
  padding: 48px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 191, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-width: 400px;
  max-width: 90vw;
  animation: orderContentFloat 3s ease-in-out infinite alternate;
}

@keyframes orderContentFloat {
  0% {
    transform: translateY(0px);
    box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(0, 191, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  100% {
    transform: translateY(-8px);
    box-shadow: 
      0 35px 70px rgba(0, 0, 0, 0.6),
      0 0 50px rgba(0, 191, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.order-processing-text {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 191, 255, 0.6);
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 350px;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

.order-processing-text span {
  display: block;
  font-size: 16px;
  color: rgba(0, 191, 255, 0.4);
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
  margin-bottom: 4px;
}

.order-processing-text span:last-child {
  font-size: 20px;
  color: #00bfff;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  margin-bottom: 0;
}

.order-processing-text a {
  color: #c084fc;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.order-processing-text a:hover {
  color: #e879f9;
  text-shadow: 0 0 20px rgba(232, 121, 249, 0.6);
}

/* Mobile responsive adjustments for order processing popup */
@media (max-width: 768px) {
  .uranus-text {
  font-size:21px;
}

  .order-processing-content {
    min-width: 320px;
    padding: 36px 28px;
    gap: 28px;
  }
  
  .order-processing-text {
    font-size: 18px;
    max-width: 280px;
  }
  
  .order-processing-spinner {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .order-processing-content {
    min-width: 280px;
    padding: 32px 24px;
    gap: 24px;
    border-radius: 16px;
  }
  
  .order-processing-text {
    font-size: 16px;
    max-width: 240px;
    letter-spacing: 0.5px;
  }
  
  .order-processing-spinner {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }
  
  .order-processing-spinner::after {
    border-width: 2px;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-container {
    padding: 16px 0;
  }
  
  .desktop-nav {
    left: calc(50% - 540px);
    top:138px;
  }
  
  .trading-box {
    margin: 0 16px;
  }
  
  .token-dropdown {
    width: calc(100vw - 72px);
    max-width: 728px;
  }
}

@media (max-width: 1048px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .main-container {
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 80px;
    min-height: 100vh;
    align-items: stretch;
    gap: 15px;
  }
  
  .trading-box {
    width: 100%;
    height: auto;
    max-width: none;
    min-height: auto;
    border-radius: 20px;
    margin: 0;
    margin-bottom: 20px;
  }
  
  .token-dropdown {
    width: calc(100vw - 32px);
    max-width: none;
  }
  
  .chart-section {
    padding: 0;
      height: 480px;
      position: relative;
      z-index: 1;
  }
  
  .market-data {
    margin-top: 0;
  }
  
  .market-stat {
    padding: 10px 12px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .main-container {
    padding: 10px;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    align-items: stretch;
    gap: 15px;
  }
  
  .trading-box {
    width: 100%;
    height: auto;
    max-width: none;
    min-height: auto;
    border-radius: 20px;
    margin: 0;
    margin-bottom: 20px;
  }
  
  .token-dropdown {
    width: calc(100vw - 32px);
    max-width: none;
  }
  
  .chart-section {
    padding: 0;
      height: 480px;
      position: relative;
      z-index: 1;
  }
  
  .market-data {
    margin-top: 0;
  }
  
  .market-stat {
    padding: 10px 12px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 10px;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: auto;
  }
  
  .trading-box {
    width: 100%;
    height: auto;
    min-height: auto;
    border-radius: 20px;
    margin: 0;
    margin-bottom: 20px;
  }
  
  .token-name {
    font-size: 20px;
  }
  
  .token-dropdown {
    width: calc(100vw - 32px);
    max-width: none;
  }
  
  .market-data {
    margin-top: 0;
  }
  
  .market-stat {
    padding: 8px 10px;
  }
  
  .stat-label {
    font-size: 9px;
    letter-spacing: 0.3px;
  }
  
  .stat-value {
    font-size: 12px;
  }
  
  .chart-section {
    padding: 0;
    height: 480px;
    position: relative;
    z-index: 1;
  }
  
  .direction-btn {
    padding: 14px;
    font-size: 14px;
  }
  
  .sol-input,
  .usdc-input {
    font-size: 16px;
    padding: 14px 50px 14px 14px;
  }
  
  .connect-wallet-btn {
    padding: 16px;
    font-size: 14px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 80px;
    min-height: auto;
  }
  
  .trading-box {
    width: 100%;
    height: auto;
    min-height: auto;
    border-radius: 20px;
    margin: 0;
    margin-bottom: 20px;
  }
  
  .token-header {
    padding: 20px 16px 12px;
  }
  
  .token-name {
    font-size: 18px;
  }
  
  .token-dropdown {
    width: calc(100vw - 32px);
    max-width: none;
  }
  
  .chart-section {
    padding: 0;
    height: 300px;
    position: relative;
    z-index: 1;
  }
  
  .trading-controls {
    padding: 16px;
    padding-bottom: 20px;
  }
  
  .market-data {
    margin-top: 0;
  }
  
  .market-stat {
    padding: 6px 8px;
  }
  
  .stat-label {
    font-size: 8px;
  }
  
  .stat-value {
    font-size: 10px;
  }
  
  .close-position-btn {
    padding: 12px;
    font-size: 12px;
  }
  
  .position-item {
    padding: 16px;
  }

  .position-details {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .position-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .info-value {
    font-size: 13px;
    text-align: right;
  }

  .position-pnl {
    width: 100%;
    border-top: 1px solid rgba(0, 191, 255, 0.15);
    padding-top: 12px;
  }

  .pnl-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .pnl-values {
    text-align: right;
  }

  .pnl-usd {
    font-size: 15px;
    line-height: 1.2;
  }

  .pnl-percentage {
    font-size: 12px;
  }

  .close-position-btn {
    padding: 12px;
    font-size: 12px;
  }
}

/* Subtle animations for better UX */
.trading-box > * {
  animation: fadeInUp 0.6s ease forwards;
}

.token-header { animation-delay: 0.1s; }
.chart-section { animation-delay: 0.2s; }
.direction-buttons { animation-delay: 0.3s; }
.input-section { animation-delay: 0.4s; }
.connect-wallet-btn { animation-delay: 0.5s; }
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trading-order {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trading-order.hidden {
  display: none;
}

/* Trading Positions Styles */
.trading-positions {
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.trading-positions.visible {
  display: flex;
}

.trading-positions.hidden {
  display: none;
}

.positions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
}

.positions-title {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00bfff;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  letter-spacing: 2px;
  margin: 0;
}

.positions-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.total-positions {
  font-size: 14px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-pnl {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.total-pnl.profit {
  color: #00ff7f;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.total-pnl.loss {
  color: #ff4500;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.position-item {
  background: rgba(5, 15, 25, 0.8);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.position-item:hover {
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
  transform: translateY(-2px);
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.position-symbol {
  display: flex;
  align-items: center;
  gap: 12px;
}

.position-symbol:hover{
  text-decoration: underline;
  cursor: pointer;
}

.position-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00bfff, #40e0ff);
  border: 2px solid rgba(0, 191, 255, 0.4);
  flex-shrink: 0;
  overflow: hidden;
  transform:scale(1.4);
}

.position-icon img {
  max-width: 100%;
}

.symbol-name {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #40e0ff;
  letter-spacing: 1px;
}

.position-direction {
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.position-direction.long {
  background: rgba(0, 255, 127, 0.2);
  border: 1px solid rgba(0, 255, 127, 0.4);
  color: #00ff7f;
  text-shadow: 0 0 8px rgba(0, 255, 127, 0.4);
}

.position-direction.short {
  background: rgba(255, 69, 0, 0.2);
  border: 1px solid rgba(255, 69, 0, 0.4);
  color: #ff4500;
  text-shadow: 0 0 8px rgba(255, 69, 0, 0.4);
}

.position-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 20px;
}

.position-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  flex: 1;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.info-value {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #e8f4f8;
  letter-spacing:  0.5px;
}

.position-pnl {
  display: flex;
  align-items: flex-end;
}

.pnl-group {
  display: flex;
  flex-direction: column;
    align-items: flex-end;
  gap: 4px;
}

.pnl-label {
  font-size: 12px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.pnl-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pnl-usd {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.pnl-percentage {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pnl-values.profit .pnl-usd,
.pnl-values.profit .pnl-percentage {
  color: #00ff7f;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.pnl-values.loss .pnl-usd,
.pnl-values.loss .pnl-percentage {
  color: #ff4500;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.close-position-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.8), rgba(255, 20, 20, 0.6));
  border: 1px solid rgba(255, 69, 0, 0.4);
  border-radius: 8px;
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.close-position-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.close-position-btn:hover {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.9), rgba(255, 20, 20, 0.7));
  border-color: rgba(255, 69, 0, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

.close-position-btn:hover::before {
  left: 100%;
}

.close-position-btn:active {
  transform: translateY(0);
}

/* Empty State */
.empty-positions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  flex: 1;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.empty-text {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #40e0ff;
  text-shadow: 0 0 15px rgba(64, 224, 255, 0.4);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 14px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trading Hot Panel Styles */
.trading-hot {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.trading-hot.visible {
  display: flex;
}

.hot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
}

.hot-title {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
  letter-spacing: 2px;
  margin: 0;
}

.hot-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hot-subtitle {
  font-size: 14px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hot Tokens Grid */
.hot-tokens-grid {
  width: 100%;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow-x: auto;   /* horizontal scroll only */
  overflow-y: hidden; /* hide vertical scroll */
  white-space: nowrap; /* prevent wrapping if it's inline elements */
  box-shadow: 0 4px 25px rgba(0, 255, 170, 0.05);
}

/* Custom Scrollbar - Webkit browsers (Chrome, Edge, Safari) */
.hot-tokens-grid::-webkit-scrollbar {
  height: 8px; /* scrollbar thickness */
}

.hot-tokens-grid::-webkit-scrollbar-track {
  background: rgba(15, 15, 20, 0.3);
  border-radius: 10px;
}

.hot-tokens-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00ffaa, #00aaff);
  border-radius: 10px;
}

.hot-tokens-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #00ffcc, #00ccff);
}


/* Table Layout */
.hot-tokens-grid table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.hot-tokens-grid th {
  background: rgba(255, 107, 53, 0.08);
  color: #e8f4f8;
  padding: 14px 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
  text-transform: uppercase;
}

.hot-tokens-grid td {
  padding: 12px 10px;
  color: #e8f4f8;
  border-bottom: 1px solid rgba(255, 107, 53, 0.05);
  transition: background 0.25s, transform 0.15s;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

/* Number Colors */
td.price {
  color: #00ffb3;
  font-weight: 700;
}

td.liquidity {
  color: #42e3ff;
  font-weight: 700;
}

td.traders {
  color: #ffffff;
  font-weight: 700;
}

/* Hover Row Effect */
.hot-tokens-grid tbody tr:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: scale(1.005);
}


.hot-token-card {
  background: rgba(5, 15, 25, 0.8);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 16px;
  padding: 20px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hot-token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: left 0.5s ease;
}

.hot-token-card:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
  transform: translateY(-4px);
}

.hot-token-card:hover::before {
  left: 100%;
}

.hot-token-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hot-token-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  border: 2px solid rgba(255, 107, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.hot-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-token-info {
  flex: 1;
  min-width: 0;
}

.hot-token-name {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #e8f4f8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-token-symbol {
  font-size: 12px;
  color: #ff6b35;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hot-token-price {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #35ff9a;
  background: linear-gradient(90deg, rgba(53,255,154,0.08), rgba(66,227,255,0.06));
  border-radius: 8px;
  padding: 10px 0;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(53,255,154,0.08);
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}

.hot-token-price:hover {
  background: linear-gradient(90deg, rgba(53,255,154,0.18), rgba(66,227,255,0.12));
  color: #42e3ff;
}

.hot-token-change {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 4px 0;
  width: 100%;
  display: block;
}

.hot-token-change.positive {
  color: #35ff9a;
  background: rgba(53,255,154,0.08);
}

.hot-token-change.negative {
  color: #ff6b35;
  background: rgba(255,107,53,0.08);
}

.hot-token-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: 8px 0 0 0;
  border-top: 1px solid rgba(255,107,53,0.12);
}

.hot-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 4px;
}

.hot-stat-label {
  font-size: 11px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 2px;
}

.hot-stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #ff8c42;
  background: rgba(255,107,53,0.07);
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 2px;
  transition: background 0.3s, color 0.3s;
}

.hot-stat-value:hover {
  background: rgba(255,107,53,0.15);
  color: #ff6b35;
}

/* Trading Ranking Panel */
.trading-ranking {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.trading-ranking.visible {
  display: flex;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
}

.ranking-title {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
  margin: 0;
}

.ranking-subtitle {
  font-size: 14px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-table-container {
  background: rgba(5, 15, 25, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 191, 255, 0.2);
  overflow: hidden;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Rajdhani', sans-serif;
}

.ranking-table th {
  background: rgba(0, 191, 255, 0.1);
  color: #40e0ff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
  text-align:center;
}

.ranking-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.1);
  font-size: 16px;
  color: #e8f4f8;
  text-align:center;
}

.ranking-table a{
  color:cyan;
}

.ranking-table tr:last-child td {
  border-bottom: none;
}

.ranking-table tr:hover {
  background: rgba(0, 191, 255, 0.05);
}

.rank-cell {
  width: 80px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.wallet-cell {
  font-family: 'Orbitron', monospace;
  color: #40e0ff;
  font-weight: 600;
}

.profits-cell {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

.profits-cell.profit {
  color: #00ff7f;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.profits-cell.loss {
  color: #ff4500;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.trades-cell {
  font-family: 'Orbitron', monospace;
  color: #8a94a6;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trading-ranking {
    padding: 16px;
  }

  .ranking-title {
    font-size: 20px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 12px;
    font-size: 14px;
  }

  .rank-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .trading-ranking {
    padding: 12px;
  }

  .ranking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 10px;
    font-size: 12px;
  }
}

.hot-token-trade-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #35ff9a 60%, #42e3ff 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(53,255,154,0.13), 0 1px 6px rgba(66,227,255,0.09);
  outline: none;
  z-index: 2;
}

.hot-token-trade-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.hot-token-trade-btn:hover {
  background: linear-gradient(135deg, #42e3ff 60%, #35ff9a 100%);
  box-shadow: 0 4px 18px rgba(53,255,154,0.18), 0 2px 12px rgba(66,227,255,0.13);
  transform: translateY(-2px) scale(1.04);
}

.hot-token-trade-btn:hover::before {
  left: 100%;
}

.hot-token-trade-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(53,255,154,0.10);
}

.trading-account{
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.trading-account.visible{
  display: flex;
}

.account-title{
  border-bottom:1px solid rgba(72, 112, 219, 0.658);
}

#leverage-less-bttn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(64, 224, 255, 0.1));
  border: 1px solid rgba(0, 191, 255, 0.4);
  border-radius: 50%;
  color: #40e0ff;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  user-select: none;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

#leverage-more-bttn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(64, 224, 255, 0.1));
  border: 1px solid rgba(0, 191, 255, 0.4);
  border-radius: 50%;
  color: #40e0ff;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  user-select: none;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

#leverage-less-bttn:hover,
#leverage-more-bttn:hover {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.4), rgba(64, 224, 255, 0.2));
  border-color: rgba(0, 191, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
  color: #00bfff;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

#leverage-less-bttn:active,
#leverage-more-bttn:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

#traders-direction-proportion{
  position: relative;
  display:block;
  background-color:black;
  height:7px;
  margin-left:10px;
  margin-right:10px !important;
  
  white-space: nowrap;
  border-radius:10px;
  border:1px solid rgb(0, 174, 255);
  box-shadow:0px 5px 5px rgba(0, 81, 255, 0.562);
  font-size:18px;
}

@keyframes traders-direction-proportion-shadow{
  0% {
    box-shadow: 0px 5px 5px rgba(255, 0, 0, 0.6);
  }
  16% {
    box-shadow: 0px 5px 5px rgba(255, 165, 0, 0.6);
  }
  33% {
    box-shadow: 0px 5px 5px rgba(255, 255, 0, 0.6);
  }
  50% {
    box-shadow: 0px 5px 5px rgba(0, 128, 0, 0.6);
  }
  66% {
    box-shadow: 0px 5px 5px rgba(0, 0, 255, 0.6);
  }
  83% {
    box-shadow: 0px 5px 5px rgba(75, 0, 130, 0.6);
  }
  100% {
    box-shadow: 0px 5px 5px rgba(255, 0, 0, 0.6);
  }
}

#traders-long-proportion{
  display:inline-block;
  width:60%;
  background: #00e5ff;
  background: linear-gradient(100deg, rgba(0, 229, 255, 1) 0%, rgba(0, 255, 4, 1) 100%);
  text-shadow: 0px 0px 2px black, 0px 2px 2px black, 0px 0px 2px black, 0px 4px 2px black;
  font-weight: bolder;
  text-align: right;
  height: inherit;
  vertical-align: top;
  transform:skew(-25deg);

  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#traders-long-proportion p{
  position:relative;
  z-index:7 !important;
  padding-right:25px;
  margin-top:-7.5px;
  transform-origin: left;

  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#traders-short-proportion{
  display:inline-block;
  width:40%;
  background: #ffe500;
  background: linear-gradient(265deg, rgba(255, 229, 0, 1) 0%, rgba(255, 0, 0, 1) 100%);
  text-shadow: 0px 0px 2px black, 0px 2px 2px black, 0px 0px 2px black, 0px 4px 2px black;
  font-weight: bolder;
  text-align: right;
  height: inherit;
  vertical-align: top;
  margin-left:-2.5px;
  transform:skew(-25deg);

  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#traders-short-proportion p{
  position:relative;
  z-index:7;
  padding-left:25px;
  margin-top:-7.5px;
  transform-origin: left;
  text-align:left;
  
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.account-stats{
  display: flex;
  margin-top: 0;
  justify-content: center;
  background: rgba(5, 15, 25, 0.4);
  border-radius: 0;
  border-top: 1px solid rgba(0, 191, 255, 0.15);
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
  overflow: hidden;
}

.account-data {
  padding: 12px 16px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  text-align: center;
  position: relative;
}

.account-data:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(0, 191, 255, 0.25);
}

.account-data:hover {
  background: rgba(5, 15, 25, 0.6);
}

.account-data-label{
  display:block;
  font-weight: bold;
  color: rgb(210, 235, 238);
}

.account-data-value{
  display:block;
  font-weight: bold;
  font-size:32px;
}

#x-trading-disconnected{
  display:block;
}

#x-trading-connected{
  display:none;
}

.x-trading-title{
  padding-left:5px;
  margin-top:10px;
  border-bottom:1px solid rgba(72, 112, 219, 0.658);
}

.x-trading-title img{
  width:24px;
  vertical-align: middle;
  margin-right:10px;
}

#x-trading-container p{
  padding:15px;
}

#connect-x-account{
  margin-left:14px;
  background-color: #00bfff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  vertical-align: middle;
  font-weight: bolder;
}

#connect-x-account img{
  width:16px;
  vertical-align: middle;
}

#connect-x-account:hover{
  background-color: #0091cc;
}

#disconnect-x-account{
  display:none;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#disconnect-x-account:hover{
  background-color: #cc0000;
}

#x-username{
  display:inline-block;
  vertical-align: middle;
  margin-top:10px;
  margin-bottom:10px;
  background-color:#000509;
  text-align:center;
  border-bottom:1px solid cyan;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

#x-username a{
  color:cyan;
  text-decoration: none;
  padding:10px;
  vertical-align: middle;
}

#x-username a:hover{
  text-decoration: underline;
}

#wallet-display {
    display:inline-block;
    background-color: rgba(18, 28, 48, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    word-break: break-all;
    font-family: 'Exo 2', monospace;
    color: var(--cyan-primary);
    font-weight: 600;
    border: var(--tech-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    border:1px solid cyan;
}

#wallet-display::after {
    content: '\f0c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#wallet-display:hover::after {
    opacity: 1;
    cursor:pointer;
}

#wallet-display.copied {
    background-color: rgba(0, 229, 255, 0.2);
    color: white;
    box-shadow: 0 0 20px var(--cyan-glow);
}

#wallet-display:hover {
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-1px);
    cursor:pointer;
}

#wallet-display::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, 
        transparent, 
        rgba(0, 229, 255, 0.2), 
        transparent
    );
    animation: wallet-border-glow 3s linear infinite;
}

@keyframes wallet-border-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-get-x-keys {
    background-color: rgba(18, 28, 48, 0.8);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    align-items: center;
    gap: 8px;
    border:1px solid yellow;
    color:yellow;
}

.btn-get-x-keys i {
    font-size: 14px;
}

.btn-get-x-keys::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 229, 255, 0.1),
        transparent
    );
    left: -100%;
    top: 0;
    transition: all 0.6s ease;
}

.btn-get-x-keys:hover {
    background-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.btn-get-x-keys:hover::before {
    left: 100%;
}

/* Notification for copy actions */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-card));
    color: var(--cyan-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 0 20px var(--cyan-glow);
    border: var(--tech-border);
    z-index: 1000;
    animation: slide-in 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-notification::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-green);
}

.copy-notification.fade-out {
    animation: fade-out 0.3s ease forwards;
}

@keyframes slide-in {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--dark-surface);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px var(--cyan-glow);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--cyan-primary);
}

.modal-content h3 {
    color: var(--cyan-primary);
    margin-bottom: 20px;
}

.warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.warning i {
    color: var(--error-red);
    font-size: 20px;
}

.key-display {
    background-color: var(--dark-card);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}

#private-key-display {
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 10px;
}

.btn-secondary {
    background-color: rgba(18, 28, 48, 0.8);
    color: var(--cyan-primary);
    border: 1px solid var(--cyan-primary);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary i {
    font-size: 14px;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 229, 255, 0.1),
        transparent
    );
    left: -100%;
    top: 0;
    transition: all 0.6s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--neutral-gray);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--error-red);
    color: var(--error-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.2);
}

#x-pnl-value{
  font-size:42px;
  font-weight: bolder;
}

/* Positive and negative values styling */
.positive {
    color: var(--success-green) !important;
}

.negative {
    color: var(--error-red) !important;
}