/* === DEMONIC DARK THEME - CSS CORRIGÉ === */
.guild-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.guild-card {
  background: #0B0202;
  border: 2px solid #2A2A2D;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(255,60,30,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: border .18s, box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}
.guild-card.selected, .guild-card:hover, .guild-card:focus {
  border-color: #FF3C1E;
  box-shadow: 0 4px 18px rgba(255,60,30,0.13);
  transform: translateY(-2px) scale(1.025);
}
.guild-banner {
  width: 100%;
  height: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.guild-logo {
  background-color: #1B1B1D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #FF6A1A;
}
.guild-card-content {
  padding: 1rem 1.1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guild-card-title {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  color: #FF3C1E;
  margin-bottom: .3rem;
}
.guild-card-desc {
  color: #9A9A9A;
  font-size: .98rem;
}
.server-list-ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
  display: grid;
  gap: .5rem;
}
.server-item {
  background: #0B0202;
  border: 2px solid #2A2A2D;
  border-radius: 10px;
  padding: .7rem 1.1rem;
  color: #D6D6D6;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: border .18s, background .18s, color .18s;
  outline: none;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.server-item:hover, .server-item:focus {
  border-color: #FF3C1E;
  background: #1B1B1D;
  color: #FF3C1E;
}
.server-item.selected {
  border-color: #FF3C1E;
  background: linear-gradient(90deg, #2A2A2D 0%, #0B0202 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,60,30,0.10);
}
.server-name {
  flex: 1;
}
.tip {
  color: #FF3C1E;
  font-size: .98rem;
  margin-top: .7rem;
  font-weight: 500;
}
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: linear-gradient(135deg, #050505 0%, #0B0202 100%);
  color: #D6D6D6;
  min-height: 100vh;
  overflow-x: hidden;
}
.panel-header {
  background: #0B0202;
  border-bottom: 2px solid #FF3C1E;
  padding: 1rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #FF3C1E;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(255,60,30,0.12);
}
.panel-nav a {
  color: #D6D6D6;
  margin-left: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.panel-nav a:hover {
  color: #FF3C1E;
}
.panel-main {
  max-width: 700px;
  margin: 2.5rem auto 0;
  background: rgba(11,2,2,0.98);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(255,60,30,0.10), 0 2px 16px rgba(0,0,0,.18);
  padding: 2.2rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
#welcome-section {
  text-align: center;
}
#welcome-section h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.3rem;
  margin-bottom: .7rem;
  color: #fff;
  letter-spacing: .08em;
}
#welcome-section p {
  color: #9A9A9A;
  margin-bottom: 2.2rem;
}
.btn-primary {
  background: linear-gradient(90deg, #FF3C1E 60%, #E02814 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .8rem 1.7rem;
  font-size: 1.13rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(255,60,30,0.10);
  transition: background .2s, transform .18s cubic-bezier(.22,.61,.36,1);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #E02814 0%, #FF3C1E 100%);
  transform: scale(1.045);
}
#dashboard h2 {
  margin-top: 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.5rem;
  color: #FF3C1E;
}
#server-list {
  margin: 2rem 0 2.5rem;
}
#bot-generator {
  background: linear-gradient(120deg, #1B1B1D 80%, #0B0202 100%);
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(255,60,30,0.08);
}
#bot-form label {
  display: block;
  margin: 1.1rem 0 .3rem;
  font-weight: 600;
}
#bot-form input {
  width: 100%;
  padding: .6rem;
  border-radius: 7px;
  border: 1px solid #2A2A2D;
  background: #050505;
  color: #D6D6D6;
  font-size: 1rem;
}
#bot-form button {
  margin-top: 1.2rem;
}
#bot-status {
  margin-top: 1.2rem;
  font-weight: 600;
  color: #FF3C1E;
}
.panel-footer {
  text-align: center;
  color: #9A9A9A;
  padding: 1.2rem 0 0;
  margin-top: 2.5rem;
  font-size: .98rem;
  letter-spacing: .04em;
}

/* Animations */
.animate-fadein {
  opacity: 0;
  animation: fadein .8s cubic-bezier(.22,.61,.36,1) .1s forwards;
}
@keyframes fadein {
  to { opacity: 1; }
}
.animate-slideup {
  opacity: 0;
  transform: translateY(32px);
  animation: slideup .7s cubic-bezier(.22,.61,.36,1) .18s forwards;
}
@keyframes slideup {
  to { opacity: 1; transform: none; }
}
.animate-pop {
  transform: scale(.92);
  opacity: 0;
  animation: popin .5s cubic-bezier(.22,.61,.36,1) .32s forwards;
}
@keyframes popin {
  to { opacity: 1; transform: none; }
}

/* Reveal on scroll (JS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .guild-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .guild-card {
    padding: 1.25rem;
  }
}

@media (max-width: 700px) {
  .panel-main { padding: 1.2rem 1rem 2rem; }
  .brand-logo { width: 30px; height: 30px; }
  
  .panel-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .guild-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guild-card {
    padding: 1.5rem;
  }

  .panel-header h1 {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .panel-main { padding: 1rem 0.75rem 1.5rem; }
  
  .panel-header h1 {
    font-size: 1.25rem;
  }

  .guild-card h3 {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
  }
}