/* Base */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #0b1220, #020617);
  color: #e5e7eb;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.04;
  pointer-events: none;
}

/* Header */
.site-header {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #14532d, #166534);
  color: #dcfce7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.site-header h1 {
  font-family: "Press Start 2P", monospace;
  font-size: 2.2rem;
  letter-spacing: 2px;
}

.site-header p {
  margin-top: 12px;
  font-size: 1.15rem;
  opacity: 0.9;
}

/* Layout */
.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Cards */
.card {
  background: linear-gradient(180deg, #020617, #020617);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 28px;
  text-align: center;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card {
  animation: fadeUp 0.6s ease forwards;
}

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


.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.6rem;
}

/* Server IP */
.server-ip {
  font-size: 1.3rem;
  font-weight: 700;
  background: #020617;
  border: 1px solid #1e293b;
  padding: 14px 18px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.bad-server-ip {
  font-size: 1.3rem;
  font-weight: 700;
  background: #020617;
  border: 1px solid #1e293b;
  padding: 14px 18px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: 0.5px;
  color: #ff4d4d !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Buttons */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 10px;

  font-weight: 700;
  text-decoration: none;
  color: #052e16;

  background: linear-gradient(135deg, #22c55e, #4ade80);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);

  position: relative;
  overflow: hidden;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.5);
}

/* Secondary button */
.btn.secondary {
  background: linear-gradient(135deg, #38bdf8, #60a5fa);
  color: #020617;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn {
  -webkit-tap-highlight-color: transparent;
}


/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
  opacity: 0.85;
}

.form {
  max-width: 420px;
  margin: 0 auto;
}

.form input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  margin-bottom: 14px;
}

.form input:focus {
  outline: none;
  border-color: #22c55e;
}

.bad-account {
  font-size: 1.3rem;
  font-weight: 700;
  background: #1a0f0f;             /* Dark red/burgundy background */
  border: 1px solid #8b0000;       /* Deep red border */
  padding: 14px 18px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: 0.5px;
  color: #ff5555 !important;        /* Bright red text */
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
/* Container for the three cards */
.main-server-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 1400px; /* more room for wide screens */
    box-sizing: border-box;
}

/* Individual card */
.card {
    flex: 1 1 320px;        /* grow/shrink with base width */
    min-width: 320px;
    max-width: 480px;       /* wider to fit full IP */
    padding: 20px;
    border-radius: 12px;
    background: #020617;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* Server IP + copy wrapper */
.ip-wrapper {
    display: flex;
    justify-content: space-between; /* IP left, button right */
    align-items: center;
    margin: 20px 0;
    gap: 12px;           /* space between IP and button */
    flex-wrap: nowrap;   /* never wrap the button */
    width: 100%;         /* take full width of card */
}

/* Server IP */
.server-ip {
    font-weight: bold;
    color: #ffcc00;
    white-space: nowrap;    /* never wrap IP */
    overflow: visible;      /* allow full width */
    text-overflow: clip;    /* show full text */
    flex: 1;                /* take all available space */
}

/* Small copy button */
.copy-btn {
    flex-shrink: 0;        /* always visible */
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.copy-btn:hover {
    background: #f87171;
}

/* Mobile stacking */
@media screen and (max-width: 960px) {
    .main-server-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 90%;
    }

    .ip-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
}
