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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Particules d'arrière-plan */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(88, 101, 242, 0.3);
  border-radius: 50%;
  animation: float 20s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Header */
header {
  position: relative;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 35, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(88, 101, 242, 0.2);
  z-index: 100;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #5865f2, #eb459e);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 60px;
  z-index: 10;
}

.hero h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #b8b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero > div {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Buttons */
.button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  position: relative;
  overflow: hidden;
}

.button::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.6s ease;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.6);
}

.button:active {
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
  animation: fadeInUp 1s ease 0.4s backwards;
  position: relative;
  overflow: hidden;
}

.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.6s ease;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.6);
}

/* Auth Section */
#login-signup {
  position: relative;
  padding: 80px 20px;
  z-index: 10;
}

.auth-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.auth-box {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-box:hover {
  transform: translateY(-10px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
}

.auth-box h4 {
  font-size: 28px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-box button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}


/* Panel Section */
#panel {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  z-index: 10;
}

#panel h3 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #b8b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#panel > p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.panel {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s ease;
}

.panel:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
}

.panel img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.panel p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

/* Panel Content */
#panel-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  z-index: 10;
}

#panel-content h3 {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #b8b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#panel-content > p {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  margin-bottom: 40px;
}

#panel-content > ul {
  list-style: none;
  display: grid;
  gap: 25px;
}

#panel-content > ul > li {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#panel-content > ul > li:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 15px 50px rgba(88, 101, 242, 0.3);
}

#panel-content > ul > li > strong {
  display: block;
  font-size: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#panel-content > ul > li > ul {
  list-style: none;
  margin: 20px 0;
  padding-left: 0;
}

#panel-content > ul > li > ul > li {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#panel-content > ul > li > ul > li:last-child {
  border-bottom: none;
}

.token-container {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.token-text {
  font-family: "Courier New", monospace;
  background: rgba(30, 30, 47, 0.8);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #5865f2;
  font-size: 14px;
  word-break: break-all;
}

.token-container > div {
  display: flex;
  gap: 10px;
}

.token-container .button {
  padding: 8px 16px;
  font-size: 14px;
}

#panel-content > ul > li > a {
  text-decoration: none;
  margin-right: 10px;
  display: inline-block;
  margin-top: 15px;
}

/* Popup */
#addBotPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#addBotPopup .popup-content {
  background: rgba(47, 47, 62, 0.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#addBotPopup h3 {
  font-size: 28px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#addBotPopup input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  background: rgba(30, 30, 47, 0.8);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

#addBotPopup input:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

#addBotPopup .popup-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

#addBotPopup .popup-buttons button {
  flex: 1;
}

/* Footer */
footer {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  background: rgba(15, 15, 35, 0.8);
  border-top: 1px solid rgba(88, 101, 242, 0.2);
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  header {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }

  nav {
    gap: 15px;
  }

  #panel-content h3 {
    font-size: 28px;
  }

  #addBotPopup .popup-content {
    padding: 30px 20px;
  }
}
