/* NERDS - Clean Design with Original Color Palette */
:root {
  /* Original Color Palette */
  --primary-red: #9E1B1E;      /* Deep Candy Red - Brand Power */
  --cream-yellow: #F2F0A1;     /* Muted Pastel Yellow - Background */
  --hoodie-orange: #F28C28;    /* Warm Cartoon Orange - Accent */
  --ink-black: #1E1E1E;        /* Ink Black - Text & Borders */
  --soft-white: #FAFAFA;       /* Soft White - Cards & Contrast */
  --warm-brown: #8B5A2B;       /* Warm Brown - Shadows & Depth */
  --highlight-red: #C62828;    /* Highlight Red - Alerts & Indicators */
  
  /* Semantic Variables */
  --bg-color: #EED5C1;
  --text-color: var(--ink-black);
  --border-color: var(--ink-black);
  --accent-color: var(--hoodie-orange);
  --primary-color: var(--primary-red);
  --card-bg: var(--soft-white);
  --shadow: 4px 4px 0 var(--warm-brown);
  --shadow-hover: 6px 6px 0 var(--warm-brown);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Comic Neue', cursive;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Anton', sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 18px;
  color: var(--primary-color);
  line-height: 1;
}

h2 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  color: var(--text-color);
}

h4 {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 5px;
}

p {
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.8;
}

/* Buttons */
.btn {
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  font-size: 18px;
  padding: 15px 30px;
  border: 3px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: var(--shadow);
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0 var(--warm-brown);
}

.primary-btn {
  background: var(--primary-color);
  color: var(--soft-white);
}

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

.text-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-color);
  opacity: 0.7;
}

.text-btn:hover {
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* Home Screen */
.home-screen {
  text-align: center;
  padding: 30px 20px;
}

.logo {
  margin-bottom: 30px;
}

.logo-sub {
  font-family: 'Comic Neue', cursive;
  font-size: 18px;
  color: var(--text-color);
  opacity: 0.7;
  margin-top: 5px;
}

.banner {
  margin: 30px 0;
  border: 4px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.tagline {
  font-size: 20px;
  color: var(--text-color);
  margin: 30px 0;
  font-weight: 700;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg);
  border: 4px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-color);
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--primary-color);
}

.modal-input {
  width: 100%;
  padding: 15px;
  border: 3px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  margin-bottom: 10px;
  box-shadow: inset 2px 2px 0 var(--border-color);
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.modal-btn {
  width: 100%;
  margin-top: 10px;
}

/* Step Screens */
.step-screen, .success-screen {
  background: var(--card-bg);
  border: 4px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--border-color);
}

.step-number {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--accent-color);
  background: var(--bg-color);
  padding: 5px 15px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
}

/* Form Elements */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 3px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  box-shadow: inset 2px 2px 0 var(--border-color);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-group label {
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

/* Tasks */
.task-list {
  margin: 30px 0;
}

.task {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--bg-color);
}

.task:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.task-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--soft-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  flex-shrink: 0;
}

.task-content {
  flex: 1;
}

.task-content input {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Comic Neue', cursive;
}

/* Step Actions */
.step-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
}

.step-note {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
  text-align: center;
  margin-top: 20px;
}

/* Success Screen */
.success-screen {
  text-align: center;
}

.success-header {
  margin-bottom: 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--soft-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  font-family: 'Anton', sans-serif;
}

.user-status {
  background: var(--bg-color);
  border: 3px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.status-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--border-color);
}

.status-badge.bot {
  background: var(--primary-color);
  color: var(--soft-white);
}

.status-badge.human {
  background: var(--accent-color);
  color: var(--text-color);
}

.progress-container {
  text-align: left;
}

.progress-label {
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.progress-bar {
  height: 20px;
  background: var(--soft-white);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
}

.invite-section {
  background: var(--soft-white);
  border: 3px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.invite-section h4 {
  margin-bottom: 15px;
}

.invite-link {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  font-family: monospace;
  font-size: 14px;
  margin: 15px 0;
  word-break: break-all;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invite-link:hover {
  background: var(--accent-color);
  color: var(--text-color);
}

.invite-note {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 20px;
}

.success-actions {
  margin-top: 30px;
}

/* Result Card */
.result-card {
  background: var(--bg-color);
  border: 3px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  text-align: left;
}

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

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

.result-item .label {
  font-weight: 700;
  color: var(--text-color);
}

.result-item .value {
  font-weight: 900;
  color: var(--text-color);
}

/* Error Messages */
.error-message {
  color: var(--highlight-red);
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
  display: none;
}

/* Loading */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-content {
  text-align: center;
  background: var(--card-bg);
  border: 4px solid var(--border-color);
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.loading-content h3 {
  margin-top: 20px;
  color: var(--primary-color);
}

.spinner {
  border: 4px solid var(--bg-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .step-screen, .success-screen, .modal-content {
    padding: 20px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 16px;
  }
}
