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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  min-height: 100vh;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.join-header {
  text-align: center;
  margin-bottom: 2rem;
}

.join-header h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.join-header p {
  color: #6b7280;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.5rem;
  color: white;
}

.card-header2 {
  padding: 1.5rem;
  color: black;
}


.pink-gradient {
  background: linear-gradient(to right, #db2777, #be185d);
}

.orange-gradient {
  background: linear-gradient(to right, #f97316, #ea580c);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-description {
  opacity: 0.9;
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-width: 2px;
}

.pink-focus:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

.orange-focus:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

.info-alert {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.orange-alert {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.schedule-info {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.schedule-info h4 {
  color: #c2410c;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-info ul {
  list-style: none;
  color: #c2410c;
}

.schedule-info li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-primary {
  color: white;
}

.pink-btn {
  background-color: #db2777;
}

.pink-btn:hover:not(:disabled) {
  background-color: #be185d;
}

.orange-btn {
  background-color: #f97316;
}

.orange-btn:hover:not(:disabled) {
  background-color: #ea580c;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pink-icon {
  color: #db2777;
}

.orange-icon {
  color: #f97316;
}

.green-icon {
  color: #10b981;
}

.league-toggle {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #6b7280;
}

.toggle-btn.active {
  background-color: #db2777;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toggle-btn:hover:not(.active) {
  color: #1f2937;
}

.league-info {
  background: linear-gradient(to right, #f9fafb, #f3f4f6);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.league-info.sponsored {
  background: linear-gradient(to right, #eff6ff, #f0f9ff);
}

.league-info h4 {
  font-weight: 600;
  color: #1f2937;
}

.league-info p {
  font-size: 0.875rem;
  color: #6b7280;
}

.reward-table {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.reward-header {
  background-color: #f9fafb;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.reward-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}

.reward-row:last-child {
  border-bottom: none;
}

.reward-amount {
  font-weight: 600;
  color: #059669;
}

.reward-total {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-top: 1px solid #e5e7eb;
}

.total-amount {
  color: #047857;
  font-weight: 600;
}

.total-prize {
  background: linear-gradient(to right, #10b981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-prize span:first-child {
  font-size: 1.125rem;
  font-weight: 600;
}

.total-prize span:last-child {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 500px;
  animation: slideIn 0.3s ease-out;
}

.modal-header {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  background-color: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-icon i {
  color: #16a34a;
  font-size: 1.5rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.highlight {
  font-weight: 500;
  color: #db2777;
}

.modal-body {
  background-color: #eff6ff;
  padding: 1rem;
  margin: 0 1rem;
  border-radius: 0.5rem;
}

.modal-body h4 {
  font-weight: 500;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-body ul {
  list-style: none;
  color: #1e40af;
}

.modal-body li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
}

.modal-footer .btn {
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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