* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --discord-blue: #5865f2;
  --discord-dark: #2c2f33;
  --discord-darker: #23272a;
  --steam-blue: #1b2838;
  --steam-light: #2a475e;
  --success-green: #43b581;
  --error-red: #f04747;
  --text-primary: #ffffff;
  --text-secondary: #b9bbbe;
  --background: #36393f;
  --card-bg: #2f3136;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(
    135deg,
    var(--discord-darker) 0%,
    var(--steam-blue) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

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

.header {
  background: linear-gradient(
    135deg,
    var(--discord-blue) 0%,
    var(--steam-light) 100%
  );
  padding: 40px 30px;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  color: var(--text-primary);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.content {
  padding: 30px;
}

.info-box {
  background: var(--background);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  border-left: 4px solid var(--discord-blue);
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-text h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.info-text p,
.info-text ol,
.info-text ul {
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-text ol {
  padding-left: 20px;
}

.info-text li {
  margin-bottom: 8px;
}

code {
  background: var(--discord-darker);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.9em;
  color: #7289da;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.feature {
  background: var(--background);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.commands {
  background: var(--background);
  padding: 20px;
  border-radius: 12px;
}

.commands h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.command {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 3px solid var(--discord-blue);
}

.command code {
  font-size: 1rem;
  font-weight: 600;
}

.command span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer {
  background: var(--discord-darker);
  padding: 20px 30px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Success Page Styles */
.success-card {
  border-top: 4px solid var(--success-green);
}

.success-header {
  background: linear-gradient(135deg, var(--success-green) 0%, #3ba55d 100%);
}

.success-animation {
  display: flex;
  justify-content: center;
  padding: 30px 0 0 0;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  stroke-width: 3;
  stroke: #fff;
  stroke-miterlimit: 10;
  animation:
    fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle-bg {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #fff;
  }
}

.success-info {
  background: var(--background);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-bg);
}

.info-item:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: var(--text-secondary);
}

.value {
  font-family: "Consolas", monospace;
  color: var(--discord-blue);
  font-weight: 600;
}

.profile-link {
  color: var(--discord-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.profile-link:hover {
  color: #7289da;
  text-decoration: underline;
}

.success-box {
  border-left-color: var(--success-green);
}

.next-steps h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.next-steps li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Error Page Styles */
.error-card {
  border-top: 4px solid var(--error-red);
}

.error-header {
  background: linear-gradient(135deg, var(--error-red) 0%, #c33c3c 100%);
}

.error-animation {
  display: flex;
  justify-content: center;
  padding: 30px 0 0 0;
}

.error-circle {
  width: 80px;
  height: 80px;
}

.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  stroke-width: 3;
  stroke: #fff;
  stroke-miterlimit: 10;
  animation:
    fillError 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.error-circle-bg {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.error-x {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes fillError {
  100% {
    box-shadow: inset 0px 0px 0px 30px #fff;
  }
}

.error-info {
  background: rgba(240, 71, 71, 0.1);
  border: 1px solid var(--error-red);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.error-message {
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
}

.error-box {
  border-left-color: var(--error-red);
}

.error-details {
  background: var(--background);
  padding: 20px;
  border-radius: 12px;
}

.error-details h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--card-bg);
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item strong {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 5px;
}

.btn-primary {
  background: var(--discord-blue);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
  background: var(--background);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--discord-darker);
  transform: translateY(-2px);
}

.countdown {
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .command {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .content {
    padding: 20px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
