/* ── Auth Modal & Login Button Styles ─────────────────── */
.login-btn {
  background: linear-gradient(135deg, rgba(135,206,235,0.15), rgba(88,101,242,0.1));
  border: 1px solid rgba(135,206,235,0.25);
  border-radius: 8px;
  color: #87CEEB;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.login-btn:hover {
  background: linear-gradient(135deg, rgba(135,206,235,0.25), rgba(88,101,242,0.2));
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(135,206,235,0.15);
}
.user-info {
  display: none;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(135,206,235,0.2);
  object-fit: cover;
}
.user-name {
  color: #87CEEB;
  font-size: 12px;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-btn {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 6px;
  color: #f87171;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.logout-btn:hover {
  background: rgba(239,68,68,0.2);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,8,32,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.auth-modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}
.auth-modal-overlay.active .auth-modal {
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-modal {
  background: linear-gradient(160deg, #0d1117 0%, #0a0e1a 100%);
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 90%;
  max-width: 380px;
  border: 1px solid rgba(135,206,235,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(135,206,235,0.05);
  position: relative;
}
.auth-modal h2 {
  color: #87CEEB;
  margin-bottom: 24px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}
.auth-modal .auth-field,
.auth-modal input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(135,206,235,0.04);
  border: 1px solid rgba(135,206,235,0.15);
  border-radius: 10px;
  color: #e0e7ff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-modal .auth-field::placeholder,
.auth-modal input::placeholder { color: rgba(135,206,235,0.35); }
.auth-modal .auth-field:focus,
.auth-modal input:focus {
  outline: none;
  border-color: rgba(135,206,235,0.5);
  box-shadow: 0 0 0 3px rgba(135,206,235,0.08);
}
.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
  min-height: 18px;
}
.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, rgba(135,206,235,0.2), rgba(88,101,242,0.15));
  border: 1px solid rgba(135,206,235,0.25);
  border-radius: 10px;
  color: #87CEEB;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}
.auth-submit:hover {
  background: linear-gradient(135deg, rgba(135,206,235,0.3), rgba(88,101,242,0.25));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(135,206,235,0.15);
}
.auth-submit:active { transform: translateY(0); }
.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: rgba(135,206,235,0.4);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(135,206,235,0.2);
}
.auth-divider span { padding: 0 12px; }
.discord-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(135,206,235,0.7);
  font-size: 13px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(88,101,242,0.08);
  border-radius: 10px;
  border: 1px solid rgba(88,101,242,0.18);
}
.discord-info svg { flex-shrink: 0; }
.existing-user-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(135,206,235,0.5);
  font-size: 13px;
  margin-top: 14px;
}
.existing-user-toggle .toggle-link {
  color: #87CEEB;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}
.existing-user-toggle .toggle-link:hover { color: #fff; }
.auth-toggle {
  text-align: center;
  color: rgba(135,206,235,0.5);
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.15s ease;
}
.auth-toggle:hover { color: #87CEEB; }
.auth-skip {
  text-align: center;
  color: rgba(135,206,235,0.35);
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
  transition: color 0.15s ease;
}
.auth-skip:hover { color: rgba(135,206,235,0.6); }
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(135,206,235,0.06);
  border: 1px solid rgba(135,206,235,0.1);
  border-radius: 8px;
  color: rgba(135,206,235,0.4);
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.auth-close:hover {
  color: #87CEEB;
  background: rgba(135,206,235,0.12);
  border-color: rgba(135,206,235,0.25);
}
