* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fg: #cfc3c3;
  --muted: #9a9099;
  --bg0: #0e0d12;
  --bg1: #2a2830;
  --bg2: #4d4a51;
  --success: #7dff9b;
}

body {
  min-height: 100vh;
  background: #1a1820;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  color: var(--fg);
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, var(--bg2) 0%, var(--bg1) 40%, var(--bg0) 100%);
  z-index: 0;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0;
  filter: blur(.2px);
  mix-blend-mode: screen;
  animation: float linear infinite;
}

@keyframes float {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.18; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hills {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 10;
  text-align: center;
  width: min(600px, 95vw);
  padding: 40px 20px;
  animation: fadeIn 900ms cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.title {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 12px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #cfc3c3 0%, #fff 50%, #a89e9e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.subtitle {
  font-size: 0.85rem;
  letter-spacing: 6px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: .8;
}

.players-label {
  font-size: 0.75rem;
  color: #7a7480;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.players-count {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--fg);
  line-height: 1;
  animation: countGlow 2s ease-in-out infinite alternate;
}

@keyframes countGlow {
  from { text-shadow: 0 0 10px rgba(207,195,195,.15); }
  to   { text-shadow: 0 0 35px rgba(207,195,195,.5), 0 0 60px rgba(207,195,195,.15); }
}

.players-online {
  font-size: 0.75rem;
  color: #6a6470;
  letter-spacing: 2px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(125,255,155,.9);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207,195,195,.2), transparent);
  margin: 35px auto;
}

/* Actions Container */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.copy-btn, .discord-icon-btn {
  position: relative;
  /* گرادیانت اصلی دکمه */
  background: linear-gradient(135deg, #3d3a41, #4d4a51);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 14px;
}

.discord-icon-btn {
  width: 56px;
  height: 56px; /* اندازه ثابت */
  flex-shrink: 0;
}

.copy-btn {
  height: 56px;
  width: 240px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex-grow: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-btn .btn-text {
  display: inline-block;
  white-space: nowrap;
}

.copy-btn:hover, .discord-icon-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #4d4a51, #5d5a61);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
  color: #fff;
}

.copy-btn:active, .discord-icon-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* استایل برای حالت 'copied' */
.copy-btn.copied,
.discord-icon-btn.copied { /* این کلاس رو برای دیسکورد هم اضافه می‌کنیم */
  /* حفظ گرادیانت اصلی دکمه */
  background: linear-gradient(135deg, #3d3a41, #4d4a51); /* گرادیانت حالت عادی */
  border-color: var(--success); /* رنگ حاشیه سبز */
  color: var(--success) !important; /* رنگ متن سبز */

  /* اضافه کردن گرادیانت سبز روی گرادیانت اصلی */
  background-image: linear-gradient(135deg, rgba(125,255,155,0.12), rgba(125,255,155,0.05)), linear-gradient(135deg, #3d3a41, #4d4a51);
  background-blend-mode: overlay, normal; /* ترکیب گرادیانت سبز با گرادیانت اصلی */
}

.discord-svg {
  width: 26px;
  height: 26px;
}

/* این هُور برای دیسکورد فعلا لازم نیست چون نمیخوایم تغییر کنه */
/* .discord-icon-btn:hover {
  border-color: rgba(88, 101, 242, 0.4);
  color: #5865F2;
} */

@media (max-width: 480px) {
  .title { font-size: 2.8rem; letter-spacing: 8px; }
  .actions { width: 100%; padding: 0 10px; }
  .copy-btn {
      height: 56px; /* این هم در مدیا کوئری ثابت بمونه */
      flex-grow: 1;
  }
}