@font-face {
    font-family: 'Open Sans';
    src: url('./fonts/gotham.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


        :root {
            --bg-0: #0a1a24;
            --bg-1: #0e2230;
            --bg-2: #0b1e2a;
            --text: #d8e7ee;
            --muted: #8aa6b4;
            --accent: #32e6ff;
            --surface: rgba(255, 255, 255, .05);
            --stroke: rgba(255, 255, 255, .1);
            --shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
            --radius-xl: 24px;
            --base: 15px;
        }




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
            margin: 0;
            background:
                radial-gradient(1100px 750px at 15% -10%, #11344a 0%, transparent 60%),
                radial-gradient(1200px 800px at 85% 110%, #0f2a3a 0%, transparent 62%),
                var(--bg-0);
            background-attachment: fixed;
            color: var(--text);
            font: var(--base)/1.45 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial;
}

#app-loading-overlay{
  margin-top:250px;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
}

#complete-nav{
  display:block;
  background-color:rgba(0, 0, 0, 0.534);
  border-bottom: 1px solid rgba(0, 191, 255, 0.3);
  margin-top:-80px;
  height:65;

  transition: 0.2s all ease-in-out;
  -webkit-transition: 0.2s all ease-in-out;
}

#complete-nav-logo {
  display:inline-block;
}

#complete-nav-logo img{
  display:inline-block;
  height:50px;
  margin-left:15px;
  margin-top:7px;
  filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.3));
  vertical-align: middle;
  border-radius:20px;

  transition: 0.2s all ease-in-out;
  -webkit-transition: 0.2s all ease-in-out;
}

#complete-nav-logo img:hover{
  filter: drop-shadow(0 0 12px rgba(0, 191, 255, 0.5));
  cursor:pointer;
}

#complete-nav-logo p{
  display:inline-block;
  vertical-align: middle;
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  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;
  padding-top:7px;
}

#login-overlay{
  position:absolute;
  display:none;
  top:0px;
  left:0px;
  width:100%;
  height:100%;
}

#login-wrapper{
  display:block;
  margin-top:calc(50% - 40%);
}

.login-box {
            max-width:450px;
            margin:0px auto;
            margin-top: clamp(14px, 5vh, 48px);
            background: var(--bg-2);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-xl);
            padding: clamp(16px, 2.6vh, 22px);
            box-shadow: var(--shadow);
        }

        .login-box h2 {
            margin: 0 0 14px;
            font-size: 18px;
            font-weight: 700;
            text-align: center;
            color: var(--text);
        }

        .logo-wrap {
            margin-top: clamp(16px, 8vh, 56px);
            display: grid;
            place-items: center;
        }

        .logo-wrap img {
            width: clamp(120px, 20vh, 170px);
            height: auto;
            filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
            border-radius:20px;
            margin-bottom:25px;
        }

        .login-box a{
          color:#a6c2cf;
        }

        .login-box a:hover{
          color:var(--accent);
        }


.btn {
            width: 100%;
            padding: 14px 16px;
            border-radius: 14px;
            border: 1px solid var(--stroke);
            background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
            color: var(--text);
            font-weight: 600;
            letter-spacing: .01em;
            cursor: pointer;
            transition: .2s ease;
            box-shadow: var(--shadow);
        }

        .btn:hover {
            border: 1px solid var(--accent);
            border-top:none;
        }

        .btn:active {
            transform: scale(0.9);
        }

        .btn-primary {
            background: linear-gradient(180deg, rgba(50, 230, 255, .22), rgba(50, 230, 255, .12));
            border-color: rgba(50, 230, 255, .45);
            box-shadow: 0 8px 20px rgba(50, 230, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .15);
            color: #eaffff;
        }

        .btn-outline {
            background: transparent
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--muted);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: .12em;
            margin: 16px 0;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: var(--stroke)
        }

        .social {
            display: block;
            gap: 10px
        }

        .social .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px
        }

        .muted {
            color: var(--muted);
            text-align: center;
            font-size: 13px;
            margin-top: clamp(10px, 2vh, 18px)
        }


@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* 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:none;
  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% - 555px);
  top: 167px;
  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: 'Open Sans', 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: 'Open Sans', 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: 100px;
  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-link {
  text-decoration: none;
  color: inherit;
}

.social-links {
  position:relative;
  float:right;
  margin-top:10px;
  margin-right:25px;;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding:9px;
  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: 'Open Sans', sans-serif;
  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:0px;
}

.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: 'Open Sans', 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 {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 191, 255, 0.5) transparent;
  height:93%;
}

.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: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 191, 255, 0.3);
  overflow:hidden;
}

.token-icon img{
  overflow:hidden;
  width:100%;
  height:auto;
  max-height:42px;
}

.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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  text-shadow: 0 0 15px rgba(64, 224, 255, 0.4);
  background: transparent;
  padding: 10px;
  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: 'Open Sans', 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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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-top:10px;
  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: 'Open Sans', 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 */
.fee-label {
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  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;
}

.fee-label:hover {
  border-color: rgba(0, 191, 255, 0.3);
  background: rgba(5, 15, 25, 0.8);
}

.fee-label span:first-child {
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fee-label span:last-child {
  color: #8a94a6;
  font-family: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', 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: 'Open Sans', sans-serif;
  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: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
  -webkit-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 {
  display:inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 191, 255, 0.3);
  border-top: 3px solid #00bfff;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  display:inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #00bfff;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@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: 'Open Sans', sans-serif;
  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% - 555px);
    top: 77px;
  }
  
  .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: 0px !important;
    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: 0px !important;
    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: 0px !important;
    padding-top: 20px;
    padding-bottom: 80px;
    min-height: auto;
  }

  .mobile-nav .nav-btn{
    font-size:10px;
  }
  
  .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: center;
  }

  .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%;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  word-break: break-all;
}

.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 {
  align-items: center;
  gap: 12px;
}

.position-symbol:hover{
  cursor: pointer;
  background:rgba(255, 255, 255, 0.315);
  color:black;
}

.position-icon {
  display:inline-block;
}

.position-icon img {
  max-width: 100%;
}

.symbol-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.position-direction {
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.pnl-percentage {
  font-family: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', 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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', 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: 'Open Sans', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.wallet-cell {
  font-family: 'Open Sans', sans-serif;
  color: #40e0ff;
  font-weight: 600;
}

.profits-cell {
  font-family: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  color: #8a94a6;
  font-weight: 600;
}

/* Tournament Header */
.tournament-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.tournament-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  margin: 0 0 16px 0;
  animation: tournament-glow 2s ease-in-out infinite alternate;
}

@keyframes tournament-glow {
  from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
  to { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

.tournament-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #8a94a6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-timer {
  display: flex;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #00bfff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.countdown-timer span {
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 40px;
  text-align: center;
}

/* Podium Styles */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 32px 0;
  padding: 20px;
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.podium-step:hover {
  transform: translateY(-5px);
}

.podium-trophy {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  animation: trophy-float 3s ease-in-out infinite;
}

@keyframes trophy-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.podium-info {
  text-align: center;
  margin-bottom: 12px;
  z-index: 2;
  position: relative;
}

.podium-rank {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #00bfff;
  margin-bottom: 4px;
}

.podium-wallet {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #8a94a6;
  font-weight: 600;
  margin-bottom: 4px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-profit {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #35ff9a;
  text-shadow: 0 0 8px rgba(53, 255, 154, 0.4);
}

.podium-base {
  width: 80px;
  border-radius: 8px 8px 0 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.podium-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
}

.podium-base.first {
  height: 80px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: 2px solid #ffd700;
}

.podium-base.first::before {
  background: linear-gradient(90deg, #fff700, #ffd700);
}

.podium-base.second {
  height: 60px;
  background: linear-gradient(135deg, #c0c0c0, #e6e6e6);
  border: 2px solid #c0c0c0;
}

.podium-base.second::before {
  background: linear-gradient(90deg, #e6e6e6, #c0c0c0);
}

.podium-base.third {
  height: 40px;
  background: linear-gradient(135deg, #cd7f32, #e6a85c);
  border: 2px solid #cd7f32;
}

.podium-base.third::before {
  background: linear-gradient(90deg, #e6a85c, #cd7f32);
}

/* First place special effects */
.first-place .podium-trophy {
  animation: trophy-float 2s ease-in-out infinite, trophy-glow 3s ease-in-out infinite alternate;
}

@keyframes trophy-glow {
  from { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tournament-title {
    font-size: 24px;
  }
  
  .countdown-timer {
    font-size: 20px;
  }
  
  .podium-container {
    gap: 12px;
    padding: 16px;
  }
  
  .podium-trophy {
    font-size: 32px;
  }
  
  .podium-base {
    width: 60px;
  }
  
  .podium-base.first {
    height: 60px;
  }
  
  .podium-base.second {
    height: 45px;
  }
  
  .podium-base.third {
    height: 30px;
  }

  .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) {
  .tournament-title {
    font-size: 20px;
  }
  
  .tournament-countdown {
    padding: 12px;
  }
  
  .countdown-timer {
    font-size: 16px;
    gap: 4px;
  }
  
  .countdown-timer span {
    padding: 6px 8px;
    min-width: 32px;
    font-size: 14px;
  }
  
  .podium-container {
    gap: 8px;
    padding: 12px;
  }
  
  .podium-trophy {
    font-size: 28px;
  }
  
  .podium-base {
    width: 50px;
  }
  
  .podium-base.first {
    height: 50px;
  }
  
  .podium-base.second {
    height: 38px;
  }
  
  .podium-base.third {
    height: 25px;
  }
  
  .podium-wallet {
    font-size: 10px;
    max-width: 60px;
  }
  
  .podium-profit {
    font-size: 12px;
  }

  .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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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: 'Open Sans', sans-serif;
  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;

  -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:-10px;
  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;

  -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:-10px;
  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;
  font-family: 'Open Sans', sans-serif;
}

.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:24px;
  vertical-align: middle;
}

#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:hover {
    border-color: var(--error-red);
    color: var(--accent);
    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;
}

.orders-history{
  margin-top:20px;
  margin-bottom:20px;
}

.orders-history-title{
  border-bottom:1px solid rgba(72, 112, 219, 0.658);
}

#orders-history-more-recent{
  float:right;
  margin-top:-40px;
  margin-right:45px;
  border:none;
  background-color:#000509;
  color:white;
  padding:10px 15px;
  font-weight:bolder;
  border-radius:5px;
  border:1px solid #18656e;
}

#orders-history-more-recent:hover{
  cursor:pointer;
  border:1px solid cyan;
}

#orders-history-more-recent:active{
  cursor:pointer;
  border:1px solid gray;
  color:gray;
}

#orders-history-less-recent{
  float:right;
  margin-top:-40px;
  border:none;
  background-color:#000509;
  color:white;
  padding:10px 15px;
  font-weight:bolder;
  border-radius:5px;
  border:1px solid #18656e;
}

#orders-history-less-recent:hover{
  cursor:pointer;
  border:1px solid cyan;
}

#orders-history-less-recent:active{
  cursor:pointer;
  border:1px solid gray;
  color:gray;
}

#orders-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  text-align: center;
  overflow:scroll;
}

#orders-history-table th,
#orders-history-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(72, 112, 219, 0.658);
  text-align: center;
}

#orders-history-table th {
  background-color: rgba(72, 112, 219, 0.1);
}

#orders-history-table tr:nth-child(odd) {
  background-color: rgba(72, 112, 219, 0.05);
}

#orders-history-table a{
  color:cyan;
  font-weight:bolder;
  text-decoration: none;
}

#orders-history-table a:hover {
  text-decoration: underline;
}

#orders-history-table .pnl{
  font-weight: bolder;
}

#account-referral-code-value {
  font-family: 'Exo 2', monospace;
  background-color: rgba(18, 28, 48, 0.8);
  padding: 8px 20px;
  border-radius: 20px;
  word-break: break-all;
  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;
  vertical-align: middle;
  display:inline-block !important;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  margin-top:15px;
}

#generate-referral-button{
  background-color: #00bfff;
  color: white;
  border: none;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  vertical-align: middle;
  font-weight: bolder;
  display:inline-block;
  margin-left:-10px;
  z-index:7777 !important;
  position:relative;
  margin-top:15px;
}

#generate-referral-button:hover{
  background-color: #0091cc;
}

#generate-referral-button::after {
    content: '\f044';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    margin-left:8px;
    vertical-align: middle;
}

.animated-referral-advice{
  font-size:14px;
  color:white;
  margin-top:10px;
  text-align:center;
}

.animated-referral-advice a{
  color:cyan;
  text-decoration: none;
  font-weight: bolder;
}

.animated-referral-advice a:hover{
  text-decoration: underline;
}

@keyframes referral-advice-animation {
  0% {
    transform:translateY(-2px);
  }
  50% {
    transform:translateY(2px);
  }
  100% {
    transform:translateY(-2px);
  }
}

#account-referral-vault-share-value{
  display:inline-block !important;
  vertical-align:middle;
}

#claim-referral-rewards-button{
  background-color: #32cd32;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  vertical-align: middle;
  font-weight: bolder;
  display:block;
  margin:0px auto;
  margin-top:10px;
}

#claim-referral-rewards-button:hover{
  background-color: #228b22;
  cursor: not-allowed;
}

#referral-last-date-claimed{
  display:block;
  text-align:center;
  margin-top:10px;
  color:cyan;
  font-size:10px;
}

#leverage-lock-overlay{
  position: absolute;
  top: 0;
  width:400px;
  left:calc(50% - 200px);
  top:1000px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  padding:25px;
  box-shadow:0px 2px 100px black, 0px 2px 100px black;
}

#leverage-lock-overlay h2{
  color: white;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
}

#leverage-lock-overlay p{
  color: white;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

#leverage-lock-overlay a{
  color: cyan;
  text-decoration: none;
  font-weight: bolder;
}

#leverage-lock-overlay a:hover{
  text-decoration: underline;
}

#leverage-lock-close-bttn{
  position:absolute;
  right:5px;
  top:5px;
  background-color: rgba(72, 112, 219, 0.658);
  color: white;
  border: none;
  border-radius: 12px;
  font-size:24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding:5px 10px !important;
}

#leverage-lock-close-bttn:hover{
  background-color: rgba(72, 112, 219, 0.8);
}

#hot-tokens-categories-wrapper{
  width:100%;
  text-align:center;
  margin-top:10px;
}

.hot-token-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  margin-right: 8px;
  margin-bottom: 8px;
  border: 1px solid #2a3441;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hot-token-category:hover {
  color: #fff;
  border-color: #42e3ff;
  background: rgba(66, 227, 255, 0.1);
}

.hot-token-category.active {
  color: #42e3ff;
  border-color: #42e3ff;
  background: rgba(66, 227, 255, 0.15);
}

.hot-token-category:active {
  transform: scale(0.98);
}

.hot-token-category.trending::before {
  content: "🔥 ";
  display: inline-block;
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0px 0px 5px rgba(255, 69, 0, 0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.25) rotateZ(25deg);
    text-shadow: 0px 0px 15px rgba(255, 69, 0, 1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0px 0px 5px rgba(255, 69, 0, 0.8);
  }
}

#help-button{
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 100px;
  height:85px;
  background-image:url('./img/icon-help.png');
  background-size: cover;
  z-index:77777 !important;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor:pointer;
}

#help-button:hover{
  transform: scale(1.1);
}

#help-button p{
  position:absolute;
  left:32px;
  top:20px;
  font-weight:bolder;
  text-align:center;
  color:black;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor:pointer;
}

#help-button:hover p{
  transform: scale(1.2) rotateZ(5deg);
  border-bottom:2px solid black;
}

#help-button:active{
  transform: scale(0.95);
  -webkit-transiton: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

#help-button:active p{
  transform: scale(0.95);
}

#help-popup{
  position:absolute;
  z-index:777777 !important;
  top:0px;
  left:0px;
  width:100%;
  height:100%;
  background-color: rgba(0, 0, 0, 0.8);
  display:none;
}

#help-close-button{
  position:absolute;
  right:15px;
  top:15px;
  color: white;
  border-radius: 12px;
  font-size:24px;
  cursor: pointer;
  background-color:transparent;
  transition: background-color 0.3s ease;
  padding:5px 10px !important;
  border:2px solid white;
}

#help-popup h1{
  color: white;
  text-align: center;
  margin-top:50px;
}

#help-popup h2{
  color: white;
  text-align: center;
  margin-top:20px;
}

#help-popup p{
  color: white;
  text-align: center;
  font-size:18px;
}

#help-popup textarea{
  width:70%;
  height:300px;
  margin:0 auto;
  display:block;
  background-color: rgba(18, 28, 48, 1);
  color:white;
  border:1px solid cyan;
  border-radius:12px;
  padding:15px;
  font-size:16px;
  font-family: 'Open Sans', sans-serif;
}

#help-submit-button{
  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;
  display:block;
  margin:20px auto;
}

#help-submit-button:hover{
  background-color: #0091cc;
}

/* App layout: header (fixed height) + page (scrolls) + nav (fixed height) */
.app {
    flex: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Header */
.ua-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-1);
    border-bottom: 1px solid var(--stroke);
    flex-shrink: 0;
    /* never compress */
}

.ua-header .title {
    font-weight: 700;
}

.ua-header .side {
    position: absolute;
    inset: auto;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ua-header .left {
    left: 12px;
}

.ua-header .right {
    right: 12px;
}

.icon {
    width: 22px;
    height: 22px;
}

.icon-btn {
    background: none;
    border: none;
    color: #cfe9f5;
    opacity: .9;
    cursor: pointer;
}

/* Page (scrolls internally between header and nav) */
.page {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth iOS */
    padding: 12px;
    overscroll-behavior: contain;
}

.content {
    max-width: 420px;
    margin: 0 auto;
}

/* Chart placeholder */
.chart {
    height: 180px;
    border-radius: 12px;
    margin: 0 0 12px;
    background:
        radial-gradient(120% 120% at 20% 10%, rgba(88, 230, 255, .12) 0%, transparent 60%),
        radial-gradient(140% 100% at 90% 120%, rgba(24, 110, 150, .10) 0%, transparent 55%),
        #0f2330;
    border: 1px dashed rgba(200, 230, 255, .15);
    display: grid;
    place-items: center;
    color: #a8c7d6;
    letter-spacing: .18em;
    font-weight: 700;
}

/* Buttons row */
.row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    border: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-long {
    background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 100%);
    color: #fff;
}

.btn-short {
    background: linear-gradient(180deg, var(--red) 0%, var(--red-2) 100%);
    color: #fff;
}

/* Section titles */
.section-title {
    font-weight: 800;
    font-size: 12px;
    color: #cfe9f5;
    margin: 14px 0 8px 2px;
}

/* Fields */
.field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px 10px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.coin {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    flex: 0 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(200, 230, 255, .16);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.field .center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.field input {
    width: 100%;
    max-width: 180px;
    text-align: center;
    background: transparent;
    border: 0;
    outline: none;
    font-weight: 700;
    color: #e0f3ff;
    letter-spacing: .01em;
}

/* remove number spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* ticker pill */
.ticker {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    color: #bff6ff;
    background: linear-gradient(180deg, rgba(88, 230, 255, .20), rgba(88, 230, 255, .10));
    border: 1px solid rgba(88, 230, 255, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Leverage */
.box {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px;
}

.lever-wrap {
    position: relative;
}

.track {
    position: relative;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, .10);
    border-radius: 999px;
}

.thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #7aa7ff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(120, 180, 255, .18);
    pointer-events: none;
}

.stops {
    display: flex;
    justify-content: space-between;
    opacity: .9;
    font-size: 12px;
    color: #cfe3ef;
    margin-top: 10px;
}

.stops button {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
}

.stops button.active {
    color: #eaffff;
    font-weight: 800;
}

/* Fee */
.fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 12px;
}

.pill {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: transparent;
    font-weight: 800;
    color: #cfe9f5;
}

.fee .value {
    color: #73eaff;
    font-weight: 900;
}

/* Bottom nav (sticky) */
.ua-nav {
    position: sticky;
    bottom: 0;
    z-index: 10;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: linear-gradient(180deg, rgba(10, 22, 32, .80), rgba(10, 22, 32, .92));
    border-top: 1px solid var(--stroke);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    /* never compress */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #90a9b6;
    text-decoration: none;
    font-size: 11px;
}

.nav-item .icon {
    width: 22px;
    height: 22px;
}

.nav-item.active {
    color: #eaffff;
}

.nav-item.active .icon {
    color: var(--accent);
}

/* Scrollbar (optional, subtle) */
.page::-webkit-scrollbar {
    width: 10px;
}

.page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

/* Small-height devices: tighten chart a bit */
@media (max-height: 720px) {
    .chart {
        height: 160px;
    }
}

@media (max-height: 640px) {
    .chart {
        height: 140px;
    }
}

/* Respect iOS safe areas for header & nav */
@supports (padding: env(safe-area-inset-top)) {
    .ua-header {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--header-h) + env(safe-area-inset-top));
    }

    .ua-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    }
}

#iphone-popup{
  display:none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 77777777;
    pointer-events: none;
}

#iphone-popup img{
  display:block;
  width:100%;
  height:auto;
  margin:0px auto;
}