:root {
  --bg: #030304;
  --bg2: #0a0508;
  --card: rgba(10, 6, 10, 0.62);
  --card-strong: rgba(12, 6, 12, 0.86);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2f8;
  --muted: #c9c2d1;
  --muted-2: #8a8291;
  --accent1: #7c1fd6;
  --accent2: #b1023f;
  --accent3: #ff2952;
  --accent4: #9333ea;
  --gold: #c9a24b;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 120px rgba(124, 31, 214, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 31, 214, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(177, 2, 63, 0.22), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 41, 82, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124, 31, 214, 0.10), transparent 32%),
    linear-gradient(160deg, #000000, var(--bg2) 55%, #050103);
}

body::selection {
  background: rgba(177, 2, 63, 0.4);
}

.bg-glow {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.6;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(124, 31, 214, 0.28), transparent 22%),
    radial-gradient(circle at 82% 28%, rgba(177, 2, 63, 0.26), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(255, 41, 82, 0.14), transparent 26%);
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1%, 0) scale(1.08); }
}

canvas#sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 24px 56px;
}

.card {
  width: 100%;
  max-width: 920px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--card);
  border: 1px solid transparent;
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(124, 31, 214, 0.10),
    0 0 40px rgba(124, 31, 214, 0.18),
    0 0 80px rgba(255, 41, 82, 0.10);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.9), rgba(124, 31, 214, 0.25) 40%, rgba(255, 41, 82, 0.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}



.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 18%, transparent 36%);
  transform: translateX(-120%);
  animation: shine 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes shine {
  0%, 55% { transform: translateX(-120%); opacity: 0; }
  62% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 41, 82, 0.10);
  border: 1px solid rgba(255, 41, 82, 0.28);
  color: #ff6b85;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2952;
  box-shadow: 0 0 18px rgba(255, 41, 82, 0.95);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.small-note {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.small-note a,
.small-note a:visited {
  color: #c084fc !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.small-note a:hover {
  color: #ff6b85 !important;
  text-shadow: 0 0 14px rgba(255, 41, 82, 0.5);
  text-decoration: none !important;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  position: relative;
  z-index: 1;
}

.gradient {
  background: linear-gradient(90deg, #7c1fd6, #b1023f, #ff2952, #9333ea);
  background-size: 300% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 7s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(124, 31, 214, 0.25));
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text {
  max-width: 64ch;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted);
  position: relative;
  z-index: 1;
  margin: 0;
}

.grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.panel {
  padding: 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(124, 31, 214, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-title {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: white;
}

.server-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 41, 82, 0.10);
}

code {
  font-size: 1.02rem;
  color: #e9c7ff;
  word-break: break-word;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent1), var(--accent3));
  box-shadow: 0 14px 34px rgba(177, 2, 63, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(124, 31, 214, 0.14);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 41, 82, 0.35);
  background: rgba(20, 4, 12, 0.5);
}

.static-card {
  cursor: default;
}

.link-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-title {
  font-weight: 800;
  font-size: 0.98rem;
}

.link-subtitle {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.link-arrow,
.link-dot {
  flex: 0 0 auto;
}

.links {
  display: grid;
  gap: 10px;
}

.footer {
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 14px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer span {
  opacity: 0.95;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(124, 31, 214, 0.18);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(6, 2, 6, 0.95);
  border: 1px solid rgba(255, 41, 82, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #f5f2f8;
  font-weight: 600;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .small-note {
    text-align: left;
  }

  .server-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
