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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  padding: 40px 20px;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
  font-size: 1.2em;
  opacity: 0.9;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card h2 {
  margin-bottom: 10px;
  color: #667eea;
}

.card h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  color: #555;
}

.card > p {
  color: #666;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e0e0e0;
  color: #555;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #f44336;
  color: white;
}

.btn-danger:hover {
  background: #d32f2f;
}

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  position: relative;
  color: #999;
  font-size: 14px;
  font-weight: 600;
}

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #333;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-social:hover {
  border-color: #ccc;
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-social svg {
  flex-shrink: 0;
}

.btn-google:hover {
  border-color: #4285F4;
}

.btn-apple {
  color: #000;
}

.btn-apple:hover {
  border-color: #000;
}

.links {
  margin-top: 15px;
  text-align: center;
}

.links a {
  color: #667eea;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #f44336;
}

.success-message {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #4caf50;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.user-info {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.user-info p {
  margin-bottom: 8px;
}

.info-box {
  background: #e3f2fd;
  border: 2px solid #2196f3;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.info-box-primary {
  background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
  border: 2px solid #667eea;
}

.info-box h4 {
  color: #1976d2;
  margin-bottom: 10px;
}

.info-box-primary h4 {
  color: #667eea;
}

.info-box p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* VR Linking Banner */
.vr-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: slideDown 0.3s ease-out;
}

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

.vr-banner-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.vr-banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.vr-banner-text {
  flex: 1;
  min-width: 200px;
}

.vr-banner-text strong {
  display: block;
  margin-bottom: 4px;
}

.vr-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9em;
}

.btn-text {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Welcome Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

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

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.modal-header h2 {
  color: white;
  margin: 0;
  font-size: 1.8em;
}

.modal-body {
  padding: 24px;
}

.modal-body > p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
}

.checklist {
  margin: 20px 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border-radius: 8px;
  transition: background 0.2s;
}

.checklist-item:hover {
  background: #e8e8e8;
}

.checklist-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.modal-video-placeholder {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-footer .btn {
  flex: 1;
  min-width: 120px;
}

hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 30px 0;
}

.preference-item {
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

.help-text {
  color: #888;
  font-size: 14px;
  margin-top: 5px;
  margin-left: 30px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  margin: 20px;
}

.modal-content h2 {
  color: #f44336;
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 10px;
  color: #555;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

footer {
  text-align: center;
  color: white;
  padding: 30px 20px;
  opacity: 0.9;
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Discord Integration Styles */
.btn-discord {
  background: #5865F2;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

.discord-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f0f3ff;
  border-color: #5865F2;
}

.discord-info h4 {
  color: #5865F2;
}

.discord-logo {
  flex-shrink: 0;
  margin-top: 4px;
}

.discord-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f3ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.discord-avatar {
  font-size: 20px;
}

#discord-username {
  flex: 1;
  font-weight: 600;
  color: #5865F2;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }

  .card {
    padding: 20px;
  }

  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-header button {
    margin-top: 10px;
  }

  .discord-info {
    flex-direction: column;
  }

  .discord-status {
    flex-wrap: wrap;
  }
}
