body {
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  overflow: hidden;
  position: relative;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content-container {
  backdrop-filter: blur(8px);
  background: rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  animation: fadeIn 0.5s ease-out forwards;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#discord-invite-icon {
  position: fixed;
  bottom: 38px;
  right: 44px;
  width: 54px;
  height: 54px;
  background: #23243bdd;
  border-radius: 50%;
  box-shadow: 0 4px 32px #6d7cfb33, 0 1px 4px #23243b44;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1234;
  transition: transform 0.14s, box-shadow 0.16s;
}
#discord-invite-icon:hover {
  transform: scale(1.07);
  box-shadow: 0 2px 32px #6366f166, 0 1px 8px #23243b55;
  filter: brightness(1.14);
}
#discord-invite-icon:hover {
  box-shadow: 0 8px 24px #818cf860;
  background: #5865f2;
}
#discord-invite-icon svg {
  width: 36px;
  height: 36px;
  display: block;
  pointer-events: none;
}

#discord-invite-popup {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998 !important;
  pointer-events: all !important;
}

.discord-invite-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 36, 58, 0.62);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

.discord-invite-card {
  background: rgba(30, 32, 56, 0.83);
  color: #e3eaff;
  border-radius: 2.1rem;
  box-shadow: 0 4px 36px 0 #6366f140, 0 1.5px 0 0 #38387333, 0 0 24px 0 #6366f155;
  padding: 2.2rem 1.6rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 410px;
  width: 96vw;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 9999;
  border: 1.7px solid #5255e4a0;
  backdrop-filter: blur(6px) brightness(1.08) saturate(1.1);
  overflow: hidden;
  transition: box-shadow .23s;
  animation: popUpCard 0.29s cubic-bezier(.41,.8,.33,1.2);
}
@keyframes popUpCard {
  from { opacity:0; transform:scale(0.93) translate(-50%,-50%);}
  to   { opacity:1; transform:scale(1) translate(-50%,-50%);}
}
.discord-invite-close {
  background: none;
  border: none;
  color: #a3a5bb;
  font-size: 1.36rem;
  font-weight: 600;
  position: absolute;
  top: 1.18rem;
  right: 1.23rem;
  cursor: pointer;
  z-index: 10;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .16s;
}
.discord-invite-close:hover {
  background: #2d355b;
  color: #a8b5ff;
}

.discord-card-particles-bg {
  position: absolute;
  inset: 0;
  border-radius: 2.1rem;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.discord-invite-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.invite-banner {
  width: 100%;
  height: 90px;
  border-radius: 1.3rem;
  object-fit: cover;
  margin-bottom: 0.5rem;
  opacity: 0.98;
  filter: blur(0.3px);
  z-index: 2;
  box-shadow: 0 2px 28px 0 #8a7ef333;
}
.guild-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  object-fit: cover;
  background: transparent;
  margin: -38px 0 0 0;
  display: block;
  z-index: 2;
  position: relative;
  animation: popInIcon 0.34s cubic-bezier(.51,.3,.34,1.35);
}
@keyframes popInIcon {
  from { opacity:0; transform:scale(0.84);}
  to   { opacity:1; transform:scale(1);}
}
.guild-name {
  font-size: 1.23rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  text-align: center;
  color: #fff;
  letter-spacing: .04em;
}
.guild-desc {
  font-size: 1.02rem;
  color: #d1d8fd;
  text-align: center;
  margin-bottom: .53rem;
}
.stats {
  display: flex;
  gap: 1.22rem;
  justify-content: center;
  margin-bottom: 0.58rem;
  color: #b6baff;
  font-weight: 600;
  font-size: 1.03rem;
}
.stats span {
  display: flex;
  align-items: center;
  gap: 5.5px;
  color: #b6baff;
}
.stats span:last-child { color: #4ad0ff;}
.inviter {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 1.11rem;
  color: #98a4db;
  font-size: 0.98rem;
}
.inviter-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.1px solid #4e7aff;
  background: #222948;
}
.invite-btn {
  background: linear-gradient(90deg,#6366f1 20%,#818cf8 100%);
  color: #fff !important;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  border-radius: 1.2rem;
  width: 100%;
  padding: 0.95rem 0;
  margin-top: 0.4rem;
  margin-bottom: 0.15rem;
  box-shadow: 0 4px 16px rgba(99,102,241,0.18);
  cursor: pointer;
  transition: background 0.13s, transform 0.09s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.invite-btn:hover {
  background: linear-gradient(90deg,#7c80ff 20%,#4f46e5 100%);
  transform: scale(0.981);
  color: #e6e7ff;
}

@media (max-width: 600px) {
  .discord-invite-card { padding: 1.1rem 0.2rem 0.6rem 0.2rem; }
  .invite-banner { height: 64px; }
  .guild-icon { width: 67px; height: 67px; margin-top: -28px;}
  .invite-btn { font-size: 1rem; }
}
