/*
Theme Name: Donk on Bonk
Description: A WordPress theme for the Donk on Bonk website featuring swipe game, leaderboard, and dynamic rating system.
Version: 1.0.0
Author: Donk on Bonk Team
License: MIT
Text Domain: donk-on-bonk
Tags: custom-post-types, ajax, responsive
*/

@font-face {
  font-family: "Hansolov3";
  src: url("fonts/hansolov3.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* These are fallbacks; JS will override them on page load. */
  --bg-dark: #f5f0f8;
  --bg-card: #faf5fc;
  --text-primary: #4a2c5a;
  --text-secondary: #8b5a9b;
  --border-color: #e6b3d9;

  --accent-1: #ff1493;
  --accent-2: #ff69b4;
  --accent-3: #ff91a4;
  --accent-4: #ffb3d9;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  margin: 0;
  padding-top: 70px;
  overflow-x: hidden;
  animation: hue-shift 60s infinite linear;
  position: relative;
  line-height: 1.6;
  max-width: 100%;
}

/* Prevent horizontal scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Improved mobile text scaling */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

/* Ensure content doesn't overflow viewport */
.main-content-grid,
.community-container,
.footer-content {
  max-width: 100%;
  box-sizing: border-box;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
  .hero-btn,
  .control-btn,
  .nav-links a,
  .nav-links button,
  .copy-button,
  .twitter-btn,
  .youtube-btn,
  .footer-social-link,
  .footer-links a,
  #chat-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved readability */
  p, li, span {
    line-height: 1.6;
  }
  
  /* Prevent text from being too small */
  .token-card p,
  .stat-description,
  .footer-disclaimer {
    font-size: 0.9rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  letter-spacing: 0.02em;
}

body::before {
  content: "✨";
  position: fixed;
  top: 20%;
  left: 10%;
  font-size: 2em;
  animation: float-sparkle 8s ease-in-out infinite;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

body::after {
  content: "💖";
  position: fixed;
  bottom: 30%;
  right: 15%;
  font-size: 1.5em;
  animation: float-sparkle 10s ease-in-out infinite reverse;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

@keyframes float-sparkle {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes hue-shift {
  0% {
    background-color: #f8e8f0;
  } /* Soft pastel pink */
  33% {
    background-color: #f0e6f7;
  } /* Soft pastel lavender */
  66% {
    background-color: #fce8f3;
  } /* Soft pastel rose */
  100% {
    background-color: #f8e8f0;
  } /* Back to start */
}

@keyframes border-hue-shift {
  0% {
    border-color: var(--accent-3);
  }
  25% {
    border-color: var(--accent-1);
  }
  50% {
    border-color: var(--accent-2);
  }
  75% {
    border-color: var(--accent-4);
  }
  100% {
    border-color: var(--accent-3);
  }
}

@keyframes pink-text-shift {
  0% {
    color: #ff69b4;
    text-shadow: 0 0 10px #ff69b4;
  } /* Hot Pink */
  33% {
    color: #ffb3d9;
    text-shadow: 0 0 12px #ffb3d9;
  } /* Light Pink */
  66% {
    color: #ff1493;
    text-shadow: 0 0 10px #ff1493;
  } /* Deep Pink */
  100% {
    color: #ff69b4;
    text-shadow: 0 0 10px #ff69b4;
  } /* Back to Hot Pink */
}

@keyframes hero-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hero-glow-pulse {
  0% {
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5),
      0 0 40px rgba(255, 105, 180, 0.3), 0 0 60px rgba(255, 182, 193, 0.2);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 20, 147, 0.8),
      0 0 60px rgba(255, 105, 180, 0.6), 0 0 90px rgba(255, 182, 193, 0.4);
  }
}

@keyframes hero-scale-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid #000000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a,
.nav-links button {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  background: none;
  border: none;
  font-size: 1em;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #ff69b4;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

#randomize-btn,
#rave-btn {
  font-size: 1.5em;
  padding: 0 10px;
}

#hero {
  text-align: center;
  padding: 220px 60px 220px 60px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  background-image: url("img/w1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-bottom: 3px solid #000000;
}

#hero h1 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 8em;
  font-weight: 900;
  margin: 0;
  line-height: 0.9;
  background: linear-gradient(
    45deg,
    #ff1493,
    #ff69b4,
    #ffb3d9,
    #ff91a4,
    #ffc0cb,
    #ff1493
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-gradient-shift 4s ease-in-out infinite,
    hero-glow-pulse 2s ease-in-out infinite alternate,
    hero-scale-bounce 6s ease-in-out infinite;
  text-shadow: 0 0 10px #ff1493, 0 0 20px #ff1493, 0 0 40px #ff1493,
    0 0 60px #ff1493, 0 0 80px #ff69b4, 0 0 100px #ff69b4, 0 0 120px #ff69b4,
    1px 1px 2px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.8),
    1px -1px 2px rgba(255, 255, 255, 0.8), -1px 1px 2px rgba(255, 255, 255, 0.8);
  -webkit-text-stroke: 1px #fff;
  text-stroke: 1px #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

#hero p {
  font-size: 1.8em;
  color: #000000;
  max-width: 700px;
  margin: 25px auto 0 auto;
  line-height: 1.5;
  text-shadow: 
    1px 1px 0px #ff69b4,
    -1px -1px 0px #ff69b4,
    -1px 1px 0px #ff69b4,
    1px -1px 0px #ff69b4,
    2px 2px 0px #ff69b4,
    -2px -2px 0px #ff69b4,
    -2px 2px 0px #ff69b4,
    2px -2px 0px #ff69b4;
  font-weight: 600;
  -webkit-text-stroke: 1px #ff69b4;
  text-stroke: 1px #ff69b4;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-btn:hover::before {
  transform: translateX(100%);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-btn i {
  font-size: 1.2em;
}

.buy-btn {
  background: linear-gradient(45deg, #000000, #333333, #666666);
  background-size: 200% 200%;
  animation: hero-gradient-shift 3s ease-in-out infinite;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.buy-btn:hover {
  background-size: 300% 300%;
  border-color: rgba(255, 255, 255, 0.5);
}

.chart-btn {
  background: linear-gradient(45deg, #000000, #333333, #666666);
  background-size: 200% 200%;
  animation: hero-gradient-shift 3s ease-in-out infinite reverse;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chart-btn:hover {
  background-size: 300% 300%;
  border-color: rgba(255, 255, 255, 0.5);
}

.main-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 60px;
  margin: 0 auto;
  max-width: 1440px;
}

.grid-item {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(20, 20, 20, 0.9)
  );
  backdrop-filter: blur(10px);
  border-width: 2px;
  border-style: solid;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  animation: border-hue-shift 10s infinite linear;
  position: relative;
  z-index: 10;
}

.main-content-grid .grid-item:nth-of-type(2) {
  animation-delay: -2.5s;
}

.main-content-grid .grid-item:nth-of-type(3) {
  animation-delay: -5s;
}

.main-content-grid .grid-item:nth-of-type(4) {
  animation-delay: -7.5s;
}

.grid-item:hover {
  animation-play-state: paused;
  border-color: var(--accent-2);
  transform: translateY(-5px) scale(1.02);
}

#chart.grid-item,
#swipe-game.grid-item {
  grid-column: 1 / -1;
}

.section-title {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 2.8em;
  margin: 0 0 25px 0;
  text-align: center;
  font-weight: 900;
  background: linear-gradient(
    45deg,
    var(--accent-3),
    var(--accent-1),
    var(--accent-2),
    var(--accent-4)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-gradient-shift 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.section-title:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
  animation: pink-text-shift 1s ease-in-out infinite;
}

#about p {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  color: var(--text-secondary);
}

.tokenomics-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  flex-grow: 1;
}

.token-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.token-card h3 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.1em;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.token-card p {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--accent-1);
  word-wrap: break-word;
  margin: 0;
}

.copy-button {
  background: none;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.8em;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  flex-grow: 1;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
}

.chart-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#swipe-game {
  justify-content: center;
  align-items: center;
}

#swipe-game p {
  margin: 0 0 25px 0;
  padding: 0;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-width: 400px;
  height: 500px;
  margin-bottom: 20px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 396px;
  min-height: 496px;
  background: linear-gradient(135deg, #f8f2fb, #fce8f3);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  transition: transform 0.3s ease-out;
  user-select: none;
  border: 3px solid #fff;
}

.swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  border-radius: 18px;
}

.swipe-controls {
  display: flex;
  gap: 20px;
}

.control-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.control-btn img {
  width: 40px;
  height: 40px;
}

.control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-4);
}

#bonk-btn img {
  filter: grayscale(80%) opacity(0.7);
}

/* Upload Coming Soon Section */
.upload-coming-soon {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.15));
  border: 2px dashed rgba(255, 105, 180, 0.4);
  border-radius: 15px;
  padding: 30px;
  margin: 25px 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  animation: glow-border 3s ease-in-out infinite alternate;
}

.upload-coming-soon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes glow-border {
  0% {
    border-color: rgba(255, 105, 180, 0.4);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
  }
  100% {
    border-color: rgba(255, 20, 147, 0.6);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.4);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.upload-announcement {
  display: flex;
  align-items: center;
  gap: 25px;
  text-align: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.upload-left-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex: 1;
  text-align: center;
}

.upload-icon {
  font-size: 3em;
  animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.upload-text {
  flex: 1;
  min-width: 300px;
}

.upload-text h3 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.8em;
  margin: 0 0 10px 0;
  background: linear-gradient(45deg, #ff1493, #ff69b4, #ff91a4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
  }
}

.upload-text p {
  color: #ffffff;
  font-size: 1.1em;
  margin: 0 0 15px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.coming-soon-badge {
  position: relative;
  display: inline-block;
  background: linear-gradient(45deg, #ff1493, #ff69b4);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: pulse-badge 1.5s ease-in-out infinite;
}

/* Filter Controls Styles */
.filter-controls {
  padding: 15px 0;
}

.filter-category {
  margin-bottom: 20px;
}

.filter-category h5 {
  color: var(--accent-2);
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.filter-btn {
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border: 1px solid #444;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  justify-content: center;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border-color: #ff1493;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border-color: #ff1493;
  box-shadow: 0 2px 8px rgba(255, 20, 147, 0.4);
}

.filter-btn i {
  font-size: 1.2em;
  margin-bottom: 2px;
}

.filter-btn span {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}



.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.reset-btn, .random-btn {
  flex: 1;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border: 1px solid #444;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reset-btn:hover {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-color: #ff6b6b;
}

.random-btn:hover {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border-color: #4ecdc4;
}

.reset-btn i, .random-btn i {
  font-size: 0.9em;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 20, 147, 0.6);
  border-radius: 25px;
  animation: pulse-ring-anim 2s ease-out infinite;
}

.upload-status {
  font-size: 0.9em;
  padding: 5px 10px;
  border-radius: 5px;
  display: none;
  margin-top: 10px;
}

.upload-status.success {
  background: rgba(0, 163, 42, 0.1);
  color: #00a32a;
  border: 1px solid rgba(0, 163, 42, 0.3);
}

.upload-status.error {
  background: rgba(214, 54, 56, 0.1);
  color: #d63638;
  border: 1px solid rgba(214, 54, 56, 0.3);
}

.upload-status.uploading {
  background: rgba(0, 115, 170, 0.1);
  color: #0073aa;
  border: 1px solid rgba(0, 115, 170, 0.3);
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes pulse-ring-anim {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.upload-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0  20px;
  width: 100%;
}

/* Override the absolute positioning for the upload button specifically */
#upload-btn.coming-soon-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-block;
  margin: 0;
}

.upload-preview {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  position: relative;
}

.fake-upload-box {
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 105, 180, 0.5);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 180px;
  animation: fake-hover 4s ease-in-out infinite;
}

.fake-upload-box:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 105, 180, 0.8);
  transform: translateY(-2px);
}

.fake-upload-box.drag-over {
  background: rgba(255, 105, 180, 0.2);
  border-color: rgba(255, 105, 180, 1);
  color: white;
}

.fake-upload-box i {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
  color: rgba(255, 105, 180, 0.8);
}

.fake-upload-box span {
  font-size: 0.9em;
  font-weight: 500;
}

@keyframes fake-hover {
  0%, 100% {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 105, 180, 0.5);
  }
  50% {
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.8);
  }
}

/* Drop Confirmation Styles */
.drop-confirmation {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.drop-confirmation.show {
  opacity: 1;
  transform: translateY(0);
}

.drop-confirmation-content {
  background: linear-gradient(45deg, #00a32a, #00d084);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 163, 42, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: drop-bounce 0.5s ease-out;
}

.drop-confirmation-content i {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
}

.drop-confirmation-content span {
  font-weight: 600;
  font-size: 0.9em;
}

.drop-confirmation-content small {
  font-size: 0.8em;
  opacity: 0.8;
  margin-left: auto;
}

@keyframes drop-bounce {
  0% {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Upload Confirmation Modal Styles */
.upload-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.upload-confirmation-modal.show {
  opacity: 1;
  pointer-events: all;
}

.upload-confirmation-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid var(--accent-2);
  border-radius: 15px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(-20px);
  transition: all 0.3s ease;
}

.upload-confirmation-modal.show .upload-confirmation-content {
  transform: scale(1) translateY(0);
}

.upload-confirmation-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-confirmation-header i {
  font-size: 1.5em;
  color: var(--accent-2);
}

.upload-confirmation-header h3 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.4em;
  font-weight: 900;
  margin: 0;
  color: var(--accent-1);
}

.upload-confirmation-body {
  margin-bottom: 25px;
}

.upload-confirmation-body p {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: var(--text-secondary);
  line-height: 1.4;
}

.file-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 3px solid var(--accent-2);
  font-size: 0.9em;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.file-info strong {
  color: var(--accent-1);
}

.upload-note {
  font-size: 0.9em;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.8;
}

.twitter-handle-input {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.twitter-handle-input label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--accent-2);
}

.twitter-handle-input input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-family: "Hansolov3", "Poppins", sans-serif;
  transition: border-color 0.3s ease;
}

.twitter-handle-input input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.twitter-handle-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.twitter-handle-input small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
}

.upload-confirmation-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.confirm-upload-btn, .cancel-upload-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirm-upload-btn {
  background: linear-gradient(45deg, var(--accent-2), var(--accent-3));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.confirm-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.cancel-upload-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-upload-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

#community {
  background: linear-gradient(135deg, #050505 0%, #181818 100%);
  backdrop-filter: blur(8px);
  margin: 40px 0 0 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

#community::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 20, 147, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 105, 180, 0.1) 0%,
      transparent 50%
    );
  z-index: 1;
}

.community-container {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 100px 60px;
  text-align: center;
  color: #fff;
}

.community-intro {
  color: #fff;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 105, 180, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.stat-icon {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float-gentle 3s ease-in-out infinite;
}

.stat-card:nth-child(1) .stat-icon {
  animation-delay: 0s;
}

.stat-card:nth-child(2) .stat-icon {
  animation-delay: -1s;
}

.stat-card:nth-child(3) .stat-icon {
  animation-delay: -2s;
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.stat-title {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.twitter-btn {
  background: linear-gradient(45deg, #000000, #333333, #666666) !important;
  background-size: 200% 200% !important;
  animation: hero-gradient-shift 3s ease-in-out infinite !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 47px -5px #1da1f2, 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.youtube-btn {
  background: linear-gradient(45deg, #000000, #333333, #666666) !important;
  background-size: 200% 200% !important;
  animation: hero-gradient-shift 3s ease-in-out infinite reverse !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 47px -5px #ff0000, 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.twitter-btn:hover {
  background-size: 300% 300% !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 47px -5px #1da1f2, 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

.youtube-btn:hover {
  background-size: 300% 300% !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 47px -5px #ff0000, 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

.main-footer {
  background: linear-gradient(135deg, #1a0d1a 0%, #2d1329 50%, #1e0a13 100%);
  background-size: 200% 200%;
  animation: footer-gradient-shift 15s ease-in-out infinite;
  color: var(--text-primary);
  margin-top: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

@keyframes footer-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0.6;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-section {
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid transparent;
}

.footer-section:hover {
  background: rgba(255, 105, 180, 0.05);
  border-color: rgba(255, 105, 180, 0.2);
  transform: translateY(-2px);
}

.footer-section h3 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.8em;
  font-weight: 900;
  margin: 0 0 15px 0;
  background: linear-gradient(
    45deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: hero-gradient-shift 4s ease-in-out infinite;
}

.footer-section h4 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand p {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, var(--accent-3), var(--accent-2));
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.footer-social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0 0 12px 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--accent-2);
}

.footer-links a:hover {
  color: var(--accent-1);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-token-info p {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.token-label {
  font-weight: 600;
  color: var(--accent-2);
  margin-right: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 105, 180, 0.2);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.footer-bottom-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85em;
  color: var(--text-secondary);
}

.footer-disclaimer {
  font-style: italic;
  opacity: 0.8;
}

/* RAVE MODE */
@keyframes rave-background {
  0% {
    background-color: #ffebf0;
  }
  17% {
    background-color: #ffe6f2;
  }
  33% {
    background-color: #ffb3d9;
  }
  50% {
    background-color: #ffc0cb;
  }
  67% {
    background-color: #ffd9e8;
  }
  83% {
    background-color: #f5d0e8;
  }
  100% {
    background-color: #ffebf0;
  }
}

body.rave-mode {
  animation: rave-background 0.5s infinite linear !important;
}

@keyframes rave-pulse {
  to {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 182, 193, 0.8);
  }
}

body.rave-mode .grid-item,
body.rave-mode #hero h1 {
  animation: rave-pulse 0.25s infinite alternate ease-in-out;
}

body.rave-mode .main-nav {
  animation: rave-pulse 0.25s infinite alternate ease-in-out;
  background: linear-gradient(135deg, #ffeef7, #ffe6f2);
}

/* CHATBOT */
#chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-3), var(--accent-4));
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  cursor: pointer;
  z-index: 9990;
  box-shadow: 0 5px 20px rgba(255, 20, 147, 0.3);
  transition: all 0.2s ease-in-out;
}

#chat-window {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95),
    rgba(20, 20, 20, 0.98)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: scale(0) translateY(50px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-out;
  z-index: 10000;
  color: #fff;
}

#chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-align: center;
  color: #fff;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background: transparent;
}

.chat-message {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  max-width: 90%;
}

.chat-message .avatar {
  font-size: 1.5em;
}

.chat-message .text {
  padding: 12px;
  border-radius: 15px;
  line-height: 1.5;
  color: #fff;
}

.chat-message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-message.user .text {
  background-color: #ff69b4;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-message.bot .text {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-left-radius: 2px;
}

.chat-message.typing .text {
  font-style: italic;
  color: var(--text-secondary);
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0 0 18px 18px;
}

#chat-input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 1em;
  box-sizing: border-box;
}

#chat-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* LEADERBOARD STYLES */
#leaderboard.grid-item {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.loading-spinner {
  font-size: 4em;
  animation: bounce-icon 2s ease-in-out infinite;
  margin-bottom: 20px;
}

.error-state {
  color: var(--text-primary);
}

.error-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.error-state p {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.leaderboard-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  border-color: var(--accent-1);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.leaderboard-item {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: leaderboard-entrance 0.6s ease-out forwards;
}

@keyframes leaderboard-entrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.leaderboard-item:nth-child(1) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.3s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.4s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.5s; }
.leaderboard-item:nth-child(6) { animation-delay: 0.6s; }
.leaderboard-item:nth-child(7) { animation-delay: 0.7s; }
.leaderboard-item:nth-child(8) { animation-delay: 0.8s; }
.leaderboard-item:nth-child(9) { animation-delay: 0.9s; }

.rank-badge {
  animation: badge-pop 0.4s ease-out forwards;
  animation-delay: inherit;
}

@keyframes badge-pop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  70% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.rank-badge.rank-1 {
  animation: badge-pop-gold 0.6s ease-out forwards;
}

.rank-badge.rank-2 {
  animation: badge-pop-silver 0.6s ease-out forwards;
}

.rank-badge.rank-3 {
  animation: badge-pop-bronze 0.6s ease-out forwards;
}

@keyframes badge-pop-gold {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  70% {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.4);
  }
}

@keyframes badge-pop-silver {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    box-shadow: 0 0 0 rgba(192, 192, 192, 0);
  }
  70% {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(192, 192, 192, 0.4);
  }
}

@keyframes badge-pop-bronze {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    box-shadow: 0 0 0 rgba(205, 127, 50, 0);
  }
  70% {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(205, 127, 50, 0.4);
  }
}

.leaderboard-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 105, 180, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.leaderboard-item:hover::before {
  left: 100%;
}

.leaderboard-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.leaderboard-item.rank-1 {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.6));
}

.leaderboard-item.rank-2 {
  border-color: #c0c0c0;
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(0, 0, 0, 0.6));
}

.leaderboard-item.rank-3 {
  border-color: #cd7f32;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0.6));
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 100;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.rank-badge.rank-1 {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
}

.rank-badge.rank-2 {
  background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
  color: #000;
}

.rank-badge.rank-3 {
  background: linear-gradient(45deg, #cd7f32, #daa551);
  color: #fff;
}

.leaderboard-image {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin: 25px 0 20px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  background: var(--bg-card);
}

.leaderboard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.3s ease;
}

.leaderboard-item:hover .leaderboard-image img {
  transform: scale(1.05);
}

.leaderboard-image.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2em;
}

.leaderboard-stats {
  width: 100%;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.stat-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9em;
}

.stat-value {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 1em;
}

.positive-percentage {
  font-size: 1.2em;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.twitter-handle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin-top: 8px;
  padding-top: 8px;
}

.twitter-link {
  color: #1da1f2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.twitter-link:hover {
  color: #0d8bd9;
  text-decoration: underline;
}

.leaderboard-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.leaderboard-empty h3 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.8em;
  color: var(--accent-1);
  margin: 0 0 15px 0;
}

.leaderboard-empty p {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* NEWEST DONKS STYLES */
#newest-donks.grid-item {
  grid-column: 1 / -1;
}

.newest-donks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.newest-donks-item {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: newest-donks-entrance 0.6s ease-out forwards;
}

@keyframes newest-donks-entrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.newest-donks-item:nth-child(1) { animation-delay: 0.1s; }
.newest-donks-item:nth-child(2) { animation-delay: 0.2s; }
.newest-donks-item:nth-child(3) { animation-delay: 0.3s; }

.newest-donks-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 105, 180, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.newest-donks-item:hover::before {
  left: 100%;
}

.newest-donks-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.newest-donks-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #00d4aa, #00b894);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 100;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: newest-badge-pop 0.6s ease-out forwards;
}

@keyframes newest-badge-pop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    box-shadow: 0 0 0 rgba(0, 212, 170, 0);
  }
  70% {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 170, 0.4);
  }
}

.newest-donks-image {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin: 25px 0 20px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  background: var(--bg-card);
}

.newest-donks-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.3s ease;
}

.newest-donks-item:hover .newest-donks-image img {
  transform: scale(1.05);
}

.newest-donks-image.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2em;
}

.newest-donks-info {
  width: 100%;
}

.newest-donks-title {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newest-donks-rating {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newest-donks-twitter {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.newest-donks-twitter a {
  color: #1da1f2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.newest-donks-twitter a:hover {
  color: #0d8bd9;
  text-decoration: underline;
}

.newest-donks-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .main-content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }
  .grid-item {
    padding: 35px;
  }
  #chart.grid-item,
  #swipe-game.grid-item {
    grid-column: auto;
  }
  .tokenomics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 25px 30px;
  }
  .footer-bottom-content {
    padding: 25px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  .main-nav {
    padding: 15px 20px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a,
  .nav-links button {
    font-size: 0.8em;
    padding: 8px 12px;
  }
  #randomize-btn,
  #rave-btn {
    font-size: 1em;
    padding: 8px 10px;
  }
  #hero {
    padding: 60px 20px 60px 20px;
    min-height: 50vh;
  }
  #hero h1 {
    font-size: 3.5em;
    line-height: 0.9;
    letter-spacing: 0.01em;
  }
  #hero p {
    font-size: 1.2em;
    max-width: 95%;
    margin: 20px auto 0 auto;
  }
  .hero-buttons {
    margin-top: 30px;
    gap: 15px;
    flex-direction: column;
  }
  .hero-btn {
    padding: 18px 30px;
    font-size: 1.1em;
    min-width: 200px;
  }
  .hero-btn i {
    font-size: 1.2em;
  }
  .main-content-grid {
    gap: 20px;
    padding: 20px 15px;
  }
  .grid-item {
    padding: 25px 20px;
  }
  .section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }
  .tokenomics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .token-card {
    padding: 20px;
  }
  .token-card h3 {
    font-size: 1.1em;
  }
  .token-card p {
    font-size: 1em;
  }
  .copy-button {
    padding: 8px 10px;
    font-size: 0.9em;
  }
  .chart-wrapper {
    height: 400px;
  }
  .chart-wrapper iframe {
    height: 100%;
  }
  .card-stack {
    min-width: 280px;
    max-width: 280px;
    height: 380px;
  }
  .swipe-card {
    min-width: 276px;
    min-height: 376px;
  }
  .swipe-controls {
    margin-top: 20px;
  }
  .control-btn {
    width: 50px;
    height: 50px;
  }
  .upload-announcement {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  .upload-left-section {
    gap: 10px;
  }
  .upload-text h3 {
    font-size: 1.4em;
  }
  .upload-icon {
    font-size: 2.2em;
  }
  .fake-upload-box {
    min-width: 140px;
    padding: 15px 10px;
  }
  .community-container {
    padding: 40px 20px;
  }
  .community-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
  }
  .stat-card {
    padding: 20px 15px;
  }
  .community-actions {
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 15px 30px;
  }
  .footer-section h3 {
    font-size: 1.4em;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom-content {
    padding: 20px 15px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-disclaimer {
    font-size: 0.9em;
  }
  #chat-toggle {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2em;
  }
  #chat-window {
    width: 90%;
    height: 70%;
    bottom: 80px;
    right: 5%;
  }
  .leaderboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .leaderboard-item {
    padding: 20px;
  }
  .leaderboard-image {
    width: 150px;
    height: 150px;
  }
  .newest-donks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .newest-donks-item {
    padding: 20px;
  }
  .newest-donks-image {
    width: 150px;
    height: 150px;
  }
  .leaderboard-filters {
    gap: 10px;
  }
  .filter-btn {
    padding: 10px 18px;
    font-size: 0.8em;
  }
}

@media (max-width: 600px) {
  .leaderboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .newest-donks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 50px;
  }
  .main-nav {
    padding: 10px 15px;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a,
  .nav-links button {
    font-size: 0.75em;
    padding: 6px 8px;
  }
  #randomize-btn,
  #rave-btn {
    font-size: 0.9em;
    padding: 6px 8px;
  }
  #hero {
    padding: 120px 15px 80px 15px;
    min-height: 45vh;
  }
  #hero h1 {
    font-size: 2.8em;
    line-height: 1;
  }
  #hero p {
    font-size: 1.3em;
    max-width: 100%;
    font-weight: 900;
    margin: 15px auto 0 auto;
  }
  .hero-buttons {
    margin-top: 25px;
    gap: 12px;
  }
  .hero-btn {
    padding: 15px 20px;
    font-size: 1em;
    min-width: 170px;
  }
  .main-content-grid {
    padding: 15px 10px;
    gap: 15px;
  }
  .grid-item {
    padding: 20px 15px;
  }
  .section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .tokenomics-grid {
    gap: 12px;
  }
  .token-card {
    padding: 15px;
  }
  .token-card h3 {
    font-size: 1em;
  }
  .token-card p {
    font-size: 0.9em;
  }
  .chart-wrapper {
    height: 350px;
  }
  .card-stack {
    min-width: 250px;
    max-width: 250px;
    height: 340px;
  }
  .swipe-card {
    min-width: 246px;
    min-height: 336px;
  }
  .control-btn {
    width: 45px;
    height: 45px;
  }
  .upload-announcement {
    padding: 15px;
    gap: 15px;
  }
  .upload-text h3 {
    font-size: 1.2em;
  }
  .upload-icon {
    font-size: 2em;
  }
  .fake-upload-box {
    min-width: 120px;
    padding: 12px 8px;
  }
  .community-container {
    padding: 30px 15px;
  }
  .community-stats {
    margin: 25px 0;
  }
  .stat-card {
    padding: 15px 10px;
  }
  .stat-title {
    font-size: 1.1em;
  }
  .stat-description {
    font-size: 0.9em;
  }
  .community-actions {
    margin: 25px 0;
  }
  .footer-content {
    padding: 30px 10px 20px;
  }
  .footer-section h3 {
    font-size: 1.2em;
  }
  .footer-section h4 {
    font-size: 1.1em;
  }
  .footer-bottom-content {
    padding: 15px 10px;
  }
  .footer-disclaimer {
    font-size: 0.8em;
  }
  #chat-toggle {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 1.1em;
  }
  #chat-window {
    width: 95%;
    height: 75%;
    bottom: 70px;
    right: 2.5%;
  }
  .leaderboard-image {
    width: 120px;
    height: 120px;
  }
  .rank-badge {
    font-size: 0.7em;
    padding: 6px 10px;
    top: 8px;
    left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .rank-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before,
  body::after {
    animation: none !important;
  }
}

/* MEME EDITOR STYLES */
.meme-editor-page {
  min-height: 100vh;
  padding: 40px 0;
  background: linear-gradient(135deg, #f8e8f0 0%, #f0e6f7 50%, #fce8f3 100%);
}

.meme-editor-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.meme-editor-header {
  text-align: center;
  margin-bottom: 40px;
}

.meme-editor-header h1 {
  font-size: 3.5em;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-gradient-shift 3s ease-in-out infinite;
}

.editor-subtitle {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 600;
}

.meme-editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  transition: grid-template-columns 0.5s ease;
}

.meme-panel {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(20, 20, 20, 0.9));
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-3);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: border-hue-shift 10s infinite linear;
}

.meme-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  animation-play-state: paused;
  border-color: var(--accent-2);
}

.panel-title {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.5em;
  margin: 0 0 20px 0;
  color: var(--accent-1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.panel-title i {
  font-size: 1.2em;
}

.panel-minimize-btn {
  background: var(--accent-2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.panel-minimize-btn:hover {
  background: var(--accent-1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

/* Minimized panel state */
.image-selection-panel.minimized {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)) !important;
  border: 3px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  animation: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.image-selection-panel.minimized .image-grid-container {
  display: none;
}

.image-selection-panel.minimized .panel-title {
  display: none !important;
}


.image-selection-panel.minimized .panel-minimize-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 50px !important;
  height: 50px !important;
  background: var(--accent-1) !important;
  border: 3px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 50% !important;
  color: white !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5em !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  z-index: 10000 !important;
  margin: 0 !important;
  animation: pulse-icon 2s ease-in-out infinite !important;
  pointer-events: auto !important;
}

.image-selection-panel.minimized .panel-minimize-btn:hover {
  background: var(--accent-2) !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.5) !important;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

.image-selection-panel.minimized:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.8), 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Adjust layout when panel is minimized */
.meme-editor-layout.panel-minimized {
  grid-template-columns: 60px 2fr 1fr;
}

.meme-editor-layout.panel-minimized .canvas-editor-panel {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.meme-editor-layout.panel-minimized .canvas-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meme-editor-layout.panel-minimized .canvas-wrapper {
  width: 600px !important;
  height: 750px !important;
  max-width: 100% !important;
}

.meme-editor-layout.panel-minimized #meme-canvas {
  width: 600px !important;
  height: 750px !important;
  max-width: 100% !important;
}

/* Image Selection Panel */
.image-selection-panel {
  height: 750px;
  display: flex;
  flex-direction: column;
}

.image-grid-container {
  flex: 1;
  overflow-y: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.bonk-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.bonk-image-item {
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.bonk-image-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-2);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.bonk-image-item.selected {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
  transform: scale(1.1);
}

.bonk-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.loading-spinner,
.error-icon {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
  animation: bounce-icon 2s ease-in-out infinite;
}

/* Canvas Editor Panel */
.canvas-editor-panel {
  min-height: 500px;
  height: auto;
}

.canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.canvas-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0);
  border-radius: 10px;
  border: 2px dashed rgba(255, 105, 180, 0.4);
  z-index: 1;
}

.placeholder-content {
  text-align: center;
  color: var(--text-secondary);
}

.placeholder-content i {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
  color: var(--accent-2);
  animation: float-gentle 3s ease-in-out infinite;
}

.placeholder-content h4 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.3em;
  margin: 0 0 10px 0;
  color: var(--accent-1);
}

.placeholder-content p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.8;
}

.canvas-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: inline-block;
  overflow: visible;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  max-height: 100%;
}

#meme-canvas {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  display: block;
  width: 600px;
  height: 750px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

/* Delete Tools - Compact Icon Style */
.delete-tools-compact {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-icon-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  position: relative;
  overflow: hidden;
}

.delete-icon-btn:first-child {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.delete-icon-btn:first-child:hover {
  background: linear-gradient(135deg, #ff3742, #ff2737);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.delete-icon-btn:last-child {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.delete-icon-btn:last-child:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.delete-icon-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.delete-icon-btn:hover::before {
  opacity: 1;
}

/* Legacy Delete Tools (keeping for backward compatibility) */
.delete-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.delete-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.delete-selected {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.delete-selected:hover {
  background: linear-gradient(135deg, #ff3742, #ff2737);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.delete-all {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.delete-all:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.delete-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-btn i {
  font-size: 1em;
}

/* Tools Panel */
.tools-coming-soon {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-section {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.tool-section:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--accent-3);
  transform: translateY(-2px);
}

.tool-section h4 {
  font-family: "Hansolov3", "Poppins", sans-serif;
  font-size: 1.2em;
  margin: 0 0 10px 0;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-description {
  margin: 0;
  font-size: 0.9em;
  color: var(--text-secondary);
  opacity: 0.8;
}

.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  color: white;
  padding: 8px 20px;
  border-radius: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out infinite;
}

/* Emoji Sticker Grid */
.emoji-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 8px;
  margin-top: 15px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.emoji-sticker-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 45px;
  text-decoration: none;
}

.emoji-sticker-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

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

.text-sticker-btn {
  background: linear-gradient(45deg, #ff1493, #9370db);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  color: white;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-family: 'Impact', 'Arial', sans-serif;
}

.text-sticker-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
  background: linear-gradient(45deg, #ff1493, #8a2be2);
}

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

/* Twemoji images in sticker grid */
.emoji-sticker-btn img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
}

/* Custom scrollbar for emoji grid */
.emoji-sticker-grid::-webkit-scrollbar {
  width: 6px;
}

.emoji-sticker-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.emoji-sticker-grid::-webkit-scrollbar-thumb {
  background: var(--accent-2);
  border-radius: 3px;
}

.emoji-sticker-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-1);
}

.text-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 15px;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.text-sticker-grid::-webkit-scrollbar {
  width: 6px;
}

.text-sticker-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.text-sticker-grid::-webkit-scrollbar-thumb {
  background: var(--accent-2);
  border-radius: 3px;
}

.text-sticker-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-1);
}

/* Responsive Design for Meme Editor */
@media (max-width: 1200px) {
  .meme-editor-layout {
    grid-template-columns: 3fr 2fr;
    gap: 25px;
  }
  
  .meme-editor-layout.panel-minimized {
    grid-template-columns: 60px 1fr;
  }
  
  .tools-coming-soon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Panel reordering for tablet and below - image selection goes to bottom */
  .image-selection-panel {
    order: 3;
    grid-column: 1 / -1; /* Image selection spans full width when at bottom */
  }
  
  .canvas-editor-panel {
    order: 1;
  }
  
  .tools-panel {
    order: 2;
  }
}

@media (max-width: 768px) {
  .meme-editor-container {
    padding: 0 15px;
  }
  
  .meme-editor-header h1 {
    font-size: 2.5em;
  }
  
  .editor-subtitle {
    font-size: 1.1em;
  }
  
  .meme-editor-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .meme-editor-layout.panel-minimized {
    grid-template-columns: 1fr;
  }
  
  /* Reduce image panel height on mobile */
  .image-selection-panel {
    height: 300px; /* Reduced from 750px for mobile */
  }
  
  .image-selection-panel.minimized {
    width: auto;
    min-width: auto;
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1000;
    height: 60px;
    width: 60px;
  }
  
  .image-selection-panel.minimized .panel-title {
    writing-mode: initial;
    text-orientation: initial;
    height: auto;
    justify-content: center;
    margin: 0;
    font-size: 0;
  }
  
  .image-selection-panel.minimized .panel-title i {
    font-size: 1.5em;
  }
  
  .meme-panel {
    padding: 20px;
  }
  
  .panel-title {
    font-size: 1.3em;
  }
  
  .bonk-image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .image-grid-container {
    max-height: 300px;
    padding: 10px;
  }
  
  .canvas-wrapper {
    max-width: calc(100% - 40px);
    margin: 0 20px;
  }
  
  #meme-canvas {
    max-width: 100%;
    width: 300px;
    height: auto;
    aspect-ratio: 600/750;
  }
  
  .tools-coming-soon {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .tool-section {
    padding: 15px;
  }
  
  .tool-section h4 {
    font-size: 1.1em;
  }
  
  /* Filter controls mobile styles */
  .filter-buttons {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .filter-btn {
    padding: 6px 8px;
    min-height: 40px;
    font-size: 0.75em;
  }
  

  
  .filter-actions {
    flex-direction: column;
  }
  
  .coming-soon-badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .meme-editor-page {
    padding: 20px 0;
  }
  
  .meme-editor-header h1 {
    font-size: 2em;
  }
  
  .editor-subtitle {
    font-size: 1em;
  }
  
  .meme-panel {
    padding: 15px;
  }
  
  .panel-title {
    font-size: 1.2em;
  }
  
  .bonk-image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .canvas-wrapper {
    max-width: calc(100% - 20px);
    margin: 0 10px;
  }
  
  #meme-canvas {
    width: 250px;
    height: auto;
    aspect-ratio: 600/750;
  }
  
  .placeholder-content i {
    font-size: 2em;
  }
  
  .placeholder-content h4 {
    font-size: 1.1em;
  }
  
  .placeholder-content p {
    font-size: 0.8em;
  }
}

/* --- Responsive fix for meme editor below 960px --- */
@media (max-width: 960px) {
  .meme-editor-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .image-selection-panel,
  .canvas-editor-panel,
  .tools-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* --- Canvas resizes only below 500px --- */
@media (max-width: 500px) {
  .canvas-wrapper {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 250px);
    margin: 0 10px;
    width: fit-content;
    height: fit-content;
  }
  
  #meme-canvas {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 250px);
    aspect-ratio: 600/750;
  }
}

/* --- Even smaller screens --- */
@media (max-width: 350px) {
  .canvas-wrapper {
    max-width: calc(100vw - 10px);
    max-height: calc(100vh - 280px);
    margin: 0 5px;
  }
  
  #meme-canvas {
    max-width: calc(100vw - 10px);
    max-height: calc(100vh - 280px);
  }
}

@media (max-width: 1200px) {
  .image-selection-panel {
    height: 400px;
    max-height: 45vh;
  }
}

/* --- Navigation Brand and Hamburger --- */
.nav-brand a {
  font-family: 'Hansolov3', 'Poppins', sans-serif;
  font-size: 2em;
  color: #ff69b4;
  font-weight: bold;
  letter-spacing: 2px;
  margin-right: 32px;
  user-select: none;
}

.nav-hamburger {
  display: none;
  background: rgba(255, 105, 180, 0.2);
  border: 2px solid #ff69b4;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  z-index: 10001;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-hamburger:hover {
  background: #ff69b4;
  color: #000;
  transform: scale(1.05);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .nav-hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    max-height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    border-bottom: 3px solid #ff69b4;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.nav-open .nav-links {
    display: flex;
  }
  .nav-links a, .nav-links button {
    width: 100%;
    text-align: left;
    padding: 20px 32px;
    border-radius: 0;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: none;
    border-left: 4px solid transparent;
  }
  .nav-links a:hover, .nav-links button:hover {
    background: rgba(255, 105, 180, 0.1);
    border-left-color: #ff69b4;
    transform: translateX(8px);
  }
  .nav-brand a {
    font-size: 1.5em;
    margin-right: 0.5em;
    margin-left: 16px;
  }
} 