@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-primary: #07030f;
  --bg-secondary: #120924;
  --solana-purple: #9945FF;
  --solana-green: #14F195;
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007a;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(18, 9, 36, 0.6);
  --glass-border: rgba(153, 69, 255, 0.2);
  --font-display: 'Orbitron', sans-serif;
  --font-sans: 'Rajdhani', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cyberpunk Background Grid and Scanlines */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 80%);
  overflow: hidden;
}

.cyber-grid {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 60%;
  background-image: 
    linear-gradient(rgba(153, 69, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 69, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: top center;
  animation: grid-scroll 20s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, black);
}

@keyframes grid-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.cyber-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.4;
}

/* Background Buildings */
.city-skyline {
  position: fixed;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 35vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* Glassmorphism Header */
header {
  height: 70px;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(153, 69, 255, 0.1);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--solana-green);
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.5);
  animation: logo-pulse 3s infinite ease-in-out;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--solana-purple), var(--neon-cyan), var(--solana-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(153, 69, 255, 0.3);
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(20, 241, 149, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(153, 69, 255, 0.8); border-color: var(--solana-purple); }
}

nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  font-family: var(--font-display);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--solana-purple), var(--solana-green));
  transition: width 0.3s ease;
}

.nav-link:hover::before, .nav-link.active::before {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Page Layout */
.main-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  height: calc(100vh - 120px);
}

/* Cyber Container (Base Glassmorphic Panel) */
.cyber-container {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Set specific widths for the different page panels on desktop */
.cyber-container.home-panel {
  max-width: 650px;
  gap: 1.2rem;
}

.cyber-container.chart-panel {
  max-width: 1200px;
  height: 100%;
  gap: 1rem;
}

/* Decorative corner lines */
.cyber-container::before, .cyber-container::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.cyber-container::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--solana-green);
  border-left: 3px solid var(--solana-green);
}

.cyber-container::after {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid var(--solana-purple);
  border-right: 3px solid var(--solana-purple);
}

/* Home Section Layout */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.big-logo-container {
  position: relative;
}

.big-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--solana-purple);
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.4);
  animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(3deg); box-shadow: 0 0 25px rgba(20, 241, 149, 0.5); }
}

.glow-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(20, 241, 149, 0.3);
  animation: rotate-ring 20s linear infinite;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #ffffff, #d946ef, var(--solana-purple), var(--neon-cyan), #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 6s linear infinite;
}

@keyframes text-shine {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--solana-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -0.5rem;
}

.hero-desc {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 1rem;
}

/* Copy Contract Area */
.contract-box {
  width: 100%;
  max-width: 500px;
}

.contract-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.contract-label span.highlight {
  color: var(--solana-purple);
}

.contract-input-group {
  display: flex;
  background: rgba(8, 3, 18, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  height: 45px;
}

.contract-address {
  flex-grow: 1;
  padding: 0 0.8rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #fff;
  border: none;
  background: transparent;
  outline: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.btn-copy {
  background: linear-gradient(135deg, var(--solana-purple), var(--bg-secondary));
  color: #fff;
  border: none;
  padding: 0 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-left: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-copy:hover {
  background: linear-gradient(135deg, var(--solana-green), var(--solana-purple));
  color: #000;
  box-shadow: -5px 0 15px rgba(20, 241, 149, 0.4);
}

/* Social Buttons Grid */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  width: 100%;
  max-width: 500px;
}

.btn-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  background: rgba(26, 11, 56, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-social.tg:hover {
  background: rgba(0, 136, 204, 0.15);
  border-color: #0088cc;
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.4);
  color: #0088cc;
}

.btn-social.x:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-social.chart:hover {
  background: rgba(20, 241, 149, 0.15);
  border-color: var(--solana-green);
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.4);
  color: var(--solana-green);
}

/* CTA Area */
.cta-container {
  margin-top: 0.5rem;
}

.btn-cta {
  display: inline-block;
  background: transparent;
  color: var(--solana-green);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border: 2px solid var(--solana-green);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.2);
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(20, 241, 149, 0.4), transparent);
  transition: all 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  background: var(--solana-green);
  color: #000;
  box-shadow: 0 0 20px rgba(20, 241, 149, 0.6);
  transform: scale(1.03);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(20, 241, 149, 0.95);
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(20, 241, 149, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Chart Page Styling Elements */
.chart-header-widget {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.chart-header-widget h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--solana-purple), var(--solana-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Iframe Container */
.iframe-container {
  flex-grow: 1;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(8, 3, 18, 0.9);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.small-btn-group {
  display: flex;
  gap: 0.6rem;
}

.btn-small {
  padding: 0.3rem 0.6rem;
  background: rgba(26, 11, 56, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: var(--solana-purple);
  border-color: var(--solana-purple);
  box-shadow: 0 0 8px rgba(153, 69, 255, 0.5);
}

/* Footer Section */
footer {
  height: 50px;
  width: 100%;
  background: rgba(7, 3, 15, 0.9);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Responsive Design for smaller screens/Mobile */
@media (max-width: 991px) {
  body {
    overflow-y: auto;
    height: auto;
  }
  .main-wrapper {
    height: auto;
    padding: 1rem 0.5rem;
  }
  .cyber-container.chart-panel {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .chart-header-widget {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .chart-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }
  .small-btn-group {
    width: 100%;
    justify-content: space-between;
  }
}
