body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f4f8;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #0052cc;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.project-name {
  font-size: 20px;
  font-weight: bold;
}

main {
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}

form {
  margin-top: 20px;
}

input[type="text"] {
  padding: 10px;
  margin: 8px;
  width: 250px;
  max-width: 90%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 10px 20px;
  background: #0052cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #003f99;
}

.referral-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 20px 0;
}

.referral-container input {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 250px;
  max-width: 80vw;
}

.referral-container button {
  padding: 10px 14px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.referral-container button:hover {
  background-color: #0056b3;
}

.links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.links a {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: 0.2s;
}

.links a:first-child {
  background-color: #1DA1F2;
}

.links a:last-child {
  background-color: #5865F2;
}

.links a:hover {
  opacity: 0.9;
}

footer {
  background-color: #f9f9f9;
  text-align: center;
  padding: 1rem;
  font-size: 14px;
  color: #666;
  margin-top: auto;
}

/* Mobile tweak */
@media (max-width: 480px) {
  .referral-container {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .referral-container input {
    flex: 1;
  }

  .referral-container button {
    flex-shrink: 0;
  }

  .links {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .links a {
    font-size: 12px;
    padding: 7px 12px;
  }
}