@font-face {
  font-family: 'KrabbyPatty';
  src: url('Krabby Patty.ttf') format('truetype');
}

:root {
  --primary-color: #ff6b00;
  --secondary-color: #ff8533;
  --accent-color: #ffb380;
  --background-color: #000924;
  --text-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'KrabbyPatty', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--background-color), #000);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  backdrop-filter: blur(10px);
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

main {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo-container {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.logo-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.roblox-logo {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.glow-text {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px var(--primary-color);
  margin-bottom: 0.5rem;
}

.glow-text, .notification, .top-banner {
  font-size: 1.1em;
}

.glow-text ⭐, .notification ⭐, .top-banner ⭐ {
  font-size: 1.2em;
  display: inline-block;
  animation: starBounce 2s infinite;
}

@keyframes starBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(10deg); }
}

.step-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin-top: 2rem;
  border: 1px solid rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
  transform: perspective(1000px) rotateX(0deg);
  transition: transform 0.3s ease;
}

.step-content:hover {
  transform: perspective(1000px) rotateX(2deg);
}

.platform-button, .robux-option {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  margin: 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.platform-button::before, .robux-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.platform-button:hover::before, .robux-option:hover::before {
  left: 100%;
}

.platform-button:hover, .robux-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
}

.input-container {
  position: relative;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--accent-color);
  font-size: 1.2rem;
  opacity: 0.7;
}

.input-field {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid var(--primary-color);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 15px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding-left: 45px; 
}

.input-field:focus {
  outline: none;
  box-shadow: 0 0 15px var(--primary-color);
  transform: scale(1.02);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-field:invalid {
  border-color: #ff3333;
}

.input-field:valid {
  border-color: var(--primary-color);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid rgba(255, 107, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.icon-bounce {
  display: inline-block;
  animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.1); }
}

.icon-pulse {
  display: inline-block;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.loading-text {
  font-size: 1.4rem;
  margin: 1rem 0;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-text i {
  margin-right: 8px;
  color: var(--accent-color);
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.2rem;
  border-radius: 15px;
  z-index: 1000;
  animation: slideIn 0.5s ease-out;
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

@keyframes slideIn {
  from { transform: translateX(-100%) scale(0.8); }
  to { transform: translateX(0) scale(1); }
}

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.8rem;
  text-align: center;
  z-index: 100;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: translateY(-50%) scale(1.2);
}

.robux-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.robux-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.dancing-noob {
  width: 150px;
  height: auto;
  margin-top: 2rem;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.next-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  margin: 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.next-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.next-button:hover::before {
  left: 100%;
}

.next-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
}

.hidden {
  display: none !important; 
}

.admin-panel {
  position: fixed;  
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 10px;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .admin-panel {
    width: 95%;
    padding: 0.8rem;
  }
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-section, .entries-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  border-radius: 5px;
}

.entries-section {
  max-height: 50vh;
  overflow-y: auto;
}

.entry {
  background: rgba(255, 107, 0, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  font-size: 0.9rem;
}

.entry-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
  gap: 0.3rem;
}

.entry-username {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.entry-time {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.8;
}

.entry-details {
  padding: 0.3rem 0;
}

.entry-details p {
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.entry-status {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.completion-screen {
  text-align: center;
  padding: 2rem;
}

.completion-screen h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--primary-color);
}

.completion-screen p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.star-emoji {
  font-size: 1.5em;
  display: inline-block;
  margin-left: 0.5rem;
}

.completion-status {
  margin-top: 1rem;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.counter-update {
  animation: counterPulse 1s ease-out;
}

@keyframes counterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: var(--primary-color); }
  100% { transform: scale(1); }
}

.membership-text {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-top: 1rem;
  text-shadow: 0 0 10px var(--primary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--accent-color);
  color: white;
  font-size: 0.8rem;
}

.error-message {
  color: #ff3333;
  background: rgba(255, 51, 51, 0.1);
  padding: 0.5rem;
  border-radius: 5px;
  margin: 0.5rem 0;
  display: none;
}

.error-message.visible {
  display: block;
}

.loading-state {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

@media (max-width: 480px) {
  .platform-button, .robux-option {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin: 0.5rem;
  }

  .glow-text {
    font-size: 2rem;
  }

  .input-field {
    font-size: 1rem;
    padding: 1rem;
  }

  .admin-panel {
    width: 95%;
    max-height: 90vh;
    padding: 0.8rem;
  }

  .entries-section {
    max-height: 40vh;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}